!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2462)}([function(e,t,n){"use strict";e.exports=n(1496)},function(e,t,n){e.exports=n(1500)()},function(e,t,n){var r;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(i.apply(null,r));else if("object"===o)for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}e.exports?e.exports=i:void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports=n(1648)},function(e,t,n){e.exports=n(1638)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(464),i=n.n(r);function o(e,t,n){return t in e?i()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(23),i=n(853);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(464),i=n.n(r);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i()(e,r.key,r)}}function a(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return t[e]})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(583),i=n.n(r),o=n(469),a=n.n(o);function s(e){return(s=a.a?i.a:function(e){return e.__proto__||i()(e)})(e)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(582),i=n(13);function o(e,t){return!t||"object"!==Object(r.a)(t)&&"function"!=typeof t?Object(i.a)(e):t}},function(e,t,n){"use strict";var r=n(721),i=n.n(r),o=n(469),a=n.n(o);function s(e,t){return(s=a.a||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=i()(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}n.d(t,"a",function(){return l})},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(129),i=n(40);e.exports=r(function(e,t,n){return i(t,n[e])})},function(e,t,n){e.exports=n(1679)},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(69))},function(e,t,n){var r=n(860),i=n(34);e.exports=i(function(e,t){return r({},e,t)})},function(e,t,n){var r=n(87);e.exports=r(function(e){return function(){return e}})},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r})},function(e,t,n){t.action=n(879),t.also=n(1731),t.error=n(1732),t.handle=n(1733),t.logError=n(1734),t.onSuccess=n(1735),t.sideEffect=n(1736)},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"c",function(){return m}),n.d(t,"b",function(){return g});var r=n(406),i=n(6),o=n.n(i),a=n(1145),s=n.n(a),l=n(136),c=n.n(l),u=n(23),d=n.n(u),f=n(720),p=n.n(f),h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.a.apply(void 0,Object(r.a)(s()(1,t)))(c()(t))},m=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return d.a.apply(void 0,n)(e)},g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return p.a.apply(void 0,n)(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"h",function(){return A}),n.d(t,"k",function(){return N}),n.d(t,"l",function(){return I}),n.d(t,"i",function(){return M}),n.d(t,"j",function(){return j}),n.d(t,"b",function(){return L}),n.d(t,"c",function(){return D}),n.d(t,"d",function(){return R}),n.d(t,"e",function(){return F}),n.d(t,"f",function(){return B}),n.d(t,"g",function(){return U});var r=n(228),i=n.n(r),o=n(37),a=n.n(o),s=n(83),l=n.n(s),c=n(136),u=n.n(c),d=n(55),f=n.n(d),p=n(18),h=n.n(p),m=n(94),g=n.n(m),v=n(161),y=n.n(v),b=n(51),_=n.n(b),w=n(213),E=n(27),k=n(85),x=n(50),S=n(198),T=function(){return document.getElementById("focus-ring-style")||C()},C=function(){var e=document.createElement("style");return e.id="focus-ring-style",document.head.appendChild(e),e},O=0,A=-1,N=function(){var e=T();document.addEventListener("mousedown",function(){a()(function(){e.innerHTML=":focus{outline: none}"},0),Object(x.a)(Object(S.c)(!1))}),window.addEventListener("keydown",function(t){var n=t.target;(Object(E.k)(t)||Object(E.d)(t)&&!n.classList.contains("ignore-prefers"))&&(e.innerHTML="",Object(x.a)(Object(S.c)(!0)))})},I=function(e){return e?O:A},M=function(e,t){var n=t!==O;(e||{}).tabIndex=t,Object(k.e)({element:e,isHidden:n})},j=function(e){var t=e.element,n=e.selector,r=e.tabIndex,o=Object(w.b)(t.querySelectorAll(n));i()(o).call(o,function(e){M(e,r)})},L=function(e){var t=Object(w.b)(e.getElementsByTagName("*"));i()(t).call(t,function(e){M(e,A)})},P=function(e){return function(t){var n,r,i=t.querySelectorAll('[tabindex = "0"]');return!!i.length&&(n=h()(e),r=i,f()(n,l.a,u.a)(r).focus(),!0)}},D=P(!0),R=P(!1),F=function(e){var t=e.list,n=e.index;n>=0&&n<_()(t)&&t[n].focus()},B=function(e){var t=e.list,n=e.currentIndex,r=g()(n||0),i=r<_()(t)?r:0;return F({list:t,index:i}),i},U=function(e){var t=e.list,n=e.currentIndex,r=y()(n||_()(t));return F({list:t,index:r}),r}},function(e,t,n){var r=n(348),i=n(1597),o=n(82),a=n(568);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){var r=n(74),i=n(174).f,o=n(163),a=n(189),s=n(620),l=n(766),c=n(431);e.exports=function(e,t){var n,u,d,f,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=i(n,u))&&p.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,u,f,e)}}},function(e,t,n){var r=n(129),i=n(150),o=n(26);e.exports=r(function(e,t,n){return i(e,o(t,n))})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n})},function(e,t,n){"use strict";n.d(t,"c",function(){return T}),n.d(t,"k",function(){return C}),n.d(t,"j",function(){return O}),n.d(t,"e",function(){return A}),n.d(t,"l",function(){return N}),n.d(t,"b",function(){return I}),n.d(t,"f",function(){return M}),n.d(t,"h",function(){return j}),n.d(t,"d",function(){return L}),n.d(t,"i",function(){return P}),n.d(t,"g",function(){return D}),n.d(t,"m",function(){return R}),n.d(t,"a",function(){return F}),n.d(t,"o",function(){return B}),n.d(t,"n",function(){return U}),n.d(t,"p",function(){return q});var r=n(394),i=n.n(r),o=n(306),a=n.n(o),s=n(44),l=n.n(s),c=n(79),u=n.n(c),d=n(120),f=n.n(d),p=n(32),h=n.n(p),m=n(124),g=n.n(m),v={keys:["Enter"],keyCode:a.a.KEY_RETURN},y={keys:["Tab"],keyCode:a.a.KEY_TAB},b={keys:[" "],keyCode:a.a.KEY_SPACE},_={keys:["Escape","Esc"],keyCode:a.a.KEY_ESCAPE},w={keys:["ArrowUp"],keyCode:a.a.KEY_UP},E={keys:["ArrowDown"],keyCode:a.a.KEY_DOWN},k={keys:["ArrowLeft"],keyCode:a.a.KEY_LEFT},x={keys:["ArrowRight"],keyCode:a.a.KEY_RIGHT},S=function(e){var t=e.keyCode,n=i()(e);return function(e){return e.keyCode?e.keyCode===t:u()(e.key,n)}},T=S(v),C=S(y),O=S(b),A=S(_),N=S(w),I=S(E),M=S(k),j=S(x),L=g()(O,T),P=(g()(C,T),g()(j,N)),D=g()(M,I),R=g()(N,I),F=h()(L),B=f()(function(e,t){0!==e.scrollTop&&(t.preventDefault(),e.scrollTop-=25)}),U=f()(function(e,t,n){t&&(n.preventDefault(),e.scrollTop+=25)}),q=function(e,t){return function(n){var r=U(e,t),i=B(e);l()([[I,r],[N,i]])(n)}}},function(e,t,n){var r=n(34),i=n(352),o=n(529),a=n(449),s=n(674);e.exports=r(function(e,t){if(i(e)){if(i(t))return e.concat(t);throw new TypeError(s(t)+" is not an array")}if(a(e)){if(a(t))return e+t;throw new TypeError(s(t)+" is not a string")}if(null!=e&&o(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&o(e.concat))return e.concat(t);throw new TypeError(s(e)+' does not have a method named "concat" or "fantasy-land/concat"')})},function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"a",function(){return g}),n.d(t,"g",function(){return v}),n.d(t,"f",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"d",function(){return _}),n.d(t,"h",function(){return w});var r=n(4),i=n.n(r),o=n(141),a=n.n(o),s=n(128),l=n(48),c=n.n(l),u=n(8),d=n.n(u),f=window.Runtime,p=c()(d.a)(window.env||{}),h=!1,m=function(e){return(f||s.a)[e]},g="Rise 360";function v(e){var t=e||"";return m("resolvePath")?a()(t).call(t,"http")||a()(t).call(t,"data:")||a()(t).call(t,"//")?t:(f||s.a).resolvePath(t):a()(t).call(t,"data:")||a()(t).call(t,"http")||a()(t).call(t,"//")?t:"/".concat(t)}function y(e){var t;if(m("resolveFontPath"))return f.resolveFontPath(e);var n=e.default?p("CDN_URI"):p("CDN_USER_CONTENT_URI");return i()(t="".concat(n,"/")).call(t,e.key)}function b(){m("exit")&&f.exit()}function _(){return!!m("isExport")&&f.isExport()}function w(){if(m("sendTouch"))return f.sendTouch()}},function(e,t,n){e.exports=n(1805)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(146),i=n.n(r);function o(){return(o=i.a||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){return e(n)?t(n):n})},function(e,t,n){var r=n(34);e.exports=r(function e(t,n){var r,i,o,a={};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a})},function(e,t,n){var r=n(87),i=n(521);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){var r=n(34),i=n(248),o=n(668),a=n(351),s=n(1603),l=n(60),c=n(106);e.exports=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},c(t));default:return o(e,t)}}))},function(e,t,n){var r=n(87);e.exports=r(function(e){return null==e})},function(e,t,n){e.exports=n(1706)},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},o=n(2096);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r}).call(this,n(69))},function(e,t,n){var r=n(34),i=n(248),o=n(1802);e.exports=r(i(["find"],o,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))},function(e,t,n){var r=n(34),i=n(1604);e.exports=r(function(e,t){return i(e,t,[],[])})},function(e,t,n){var r=n(129),i=n(250);e.exports=r(function(e,t,n){return null!=n&&i(t,n)?n[t]:e})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(130),i=n(313),o=n(673);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("assign: Objects required for both arguments");return o.assign(e,t)})},function(e,t,n){var r=n(348),i=n(87),o=n(35),a=n(319),s=n(82);e.exports=i(function(e){var t=s(a,0,o(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})})},function(e,t,n){var r=n(87),i=n(1531);e.exports=r(i)},function(e,t,n){var r=n(34),i=n(248),o=n(1600),a=n(667),s=n(351),l=n(1601),c=n(106);e.exports=r(i(["filter"],l,function(e,t){return a(t)?s(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},c(t)):o(e,t)}))},function(e,t,n){"use strict";n(2109),n(964),n(965);var r=n(966),i=(n(967),n(968),n(969),n(970),n(971),n(569)),o=(n(972),n(973),n(974),n(975),n(976)),a=n(2),s=n.n(a),l=n(0),c=n.n(l),u=(n(977),function(e){var t=e.title,n=void 0===t?"Check mark":t,r=e.desc,i=void 0===r?"Check mark":r,o=e.width,a=void 0===o?"11":o,l=e.height,u=void 0===l?"8":l,d=e.className,f=e.focusable,p=void 0===f?"false":f;return c.a.createElement("svg",{viewBox:"0 0 11 8",width:a,height:u,className:s()("i i-checkMark",d),focusable:p},c.a.createElement("title",null,n),c.a.createElement("desc",null,i),c.a.createElement("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"}))}),d=n(978),f=function(e){var t=e.title,n=void 0===t?"More":t,r=e.desc,i=void 0===r?"Caret pointing down":r,o=e.width,a=void 0===o?"7":o,l=e.height,u=void 0===l?"5":l,d=e.className,f=e.focusable,p=void 0===f?"false":f;return c.a.createElement("svg",{viewBox:"0 0 7 5",width:a,height:u,className:s()("i i-chevronDown",d),focusable:p},c.a.createElement("title",null,n),c.a.createElement("desc",null,i),c.a.createElement("g",{transform:"translate(-15 -14)"},c.a.createElement("path",{d:"M18.1042026,17.8957974 C18.2994647,18.0910596 18.6160472,18.0910596 18.8113094,17.8957974 L21.3535534,15.3535534 C21.5488155,15.1582912 21.5488155,14.8417088 21.3535534,14.6464466 C21.1582912,14.4511845 20.8417088,14.4511845 20.6464466,14.6464466 L18.4734187,16.8508 L16.3535534,14.7309347 C16.1582912,14.5356725 15.8417088,14.5356725 15.6464466,14.7309347 C15.4511845,14.9261968 15.4511845,15.2427793 15.6464466,15.4380415 L18.1042026,17.8957974 Z"})))},p=(n(979),n(980),n(570)),h=(n(981),n(982),n(983),n(984),n(985),n(986)),m=(n(987),n(988),n(989)),g=(n(990),n(991),n(992)),v=(n(993),n(994),n(995),n(996),n(997),n(998)),y=(n(999),n(1e3)),b=n(1001),_=(n(1002),n(1003)),w=n(1004),E=n(1005),k=n(1006),x=n(1007),S=n(1008),T=n(1009),C=(n(1010),n(1011),n(1012),n(1013),n(1014),n(1015),n(1016),n(1017),n(1018)),O=(n(1019),n(1020),n(1021),n(1022),n(1023),n(1024),n(1025),n(1026)),A=(n(1027),n(1028)),N=(n(1029),n(1030)),I=n(1031),M=(n(1032),n(1033),n(1034),n(1035)),j=(n(1036),n(1037),n(1038),n(1039),n(4)),L=n.n(j),P=n(10),D=n(7),R=n(11),F=n(9),B=n(12),U=n(483),q=n.n(U),z=function(e){function t(){var e,n,r;Object(P.a)(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=Object(R.a)(this,(e=Object(F.a)(t)).call.apply(e,L()(n=[this]).call(n,o)))).maskId="person-unknown-mask-".concat(q()()),r.pathId="person-unknown-path-".concat(q()()),r}return Object(B.a)(t,e),Object(D.a)(t,[{key:"render",value:function(){var e=this.props,t=e.title,n=void 0===t?"Person Unknown":t,r=e.desc,i=e.width,o=void 0===i?"38":i,a=e.height,l=void 0===a?"38":a,u=e.className,d=e.decorative,f=e.focusable,p=void 0===f?"false":f;return c.a.createElement("svg",{"aria-hidden":d,viewBox:"0 0 38 38",width:o,height:l,className:s()("i i-person-unknown",u),focusable:p},n&&c.a.createElement("title",null,n),r&&c.a.createElement("desc",null,r),c.a.createElement("defs",null,c.a.createElement("circle",{id:this.pathId,cx:"19",cy:"19",r:"19"})),c.a.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},c.a.createElement("mask",{id:this.maskId,fill:"#fff"},c.a.createElement("use",{href:"#".concat(this.pathId)})),c.a.createElement("use",{fill:"#D8D8D8",href:"#".concat(this.pathId)}),c.a.createElement("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:"url(#".concat(this.maskId,")")})))}}]),t}(l.Component),H=n(1040),W=(n(1041),n(1042),n(1043)),$=(n(1044),n(1045),n(1046),n(470),n(1047),n(1048),n(1049)),Y=(n(1050),n(1051),n(1052),n(1053),n(1054),n(1055),n(1056),n(1057),n(1058),n(1059)),V=(n(1060),n(1061),n(1062),n(1063),n(1064),n(1065),n(1066)),K=(n(1067),n(1068),n(1069));n.d(t,"a",function(){return r.a}),n.d(t,"b",function(){return i.a}),n.d(t,"c",function(){return o.a}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d.a}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return p.a}),n.d(t,"h",function(){return h.a}),n.d(t,"i",function(){return m.a}),n.d(t,"j",function(){return g.a}),n.d(t,"k",function(){return v.a}),n.d(t,"l",function(){return y.a}),n.d(t,"m",function(){return b.a}),n.d(t,"n",function(){return _.a}),n.d(t,"o",function(){return w.a}),n.d(t,"p",function(){return E.a}),n.d(t,"q",function(){return k.a}),n.d(t,"r",function(){return x.a}),n.d(t,"s",function(){return S.a}),n.d(t,"t",function(){return T.a}),n.d(t,"u",function(){return C.a}),n.d(t,"v",function(){return O.a}),n.d(t,"w",function(){return A.a}),n.d(t,"x",function(){return N.a}),n.d(t,"y",function(){return I.a}),n.d(t,"z",function(){return M.a}),n.d(t,"A",function(){return z}),n.d(t,"B",function(){return H.a}),n.d(t,"C",function(){return W.a}),n.d(t,"D",function(){return $.a}),n.d(t,"E",function(){return Y.a}),n.d(t,"F",function(){return V.a}),n.d(t,"G",function(){return K.a})},function(e,t,n){var r=n(87),i=n(120);e.exports=r(function(e){return i(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})})},function(e,t,n){"use strict";var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=n(387),c=function(e){function t(){return Object(r.a)(this,t),Object(o.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"pause",value:function(){this.isPlaying=!1}},{key:"mute",value:function(){this.isMuted=!1}},{key:"addChangeListener",value:function(e){this.on("change",e)}},{key:"removeChangeListener",value:function(e){this.removeListener("change",e)}},{key:"isPlaying",get:function(){return this._isPlaying},set:function(e){this._isPlaying=e,this.emit("change")}},{key:"playerId",set:function(e){this._playerId=e},get:function(){return this._playerId}},{key:"isMuted",get:function(){return this._isMuted},set:function(e){this._isMuted=e,this.emit("change")}}]),t}(l.EventEmitter);t.a=new c},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return v}),n.d(t,"a",function(){return y});var r=n(234),i=n(6),o=n.n(i),a=n(577),s=n.n(a),l=n(578),c=n.n(l),u=n(579),d=n.n(u),f=n(580),p=n.n(f),h=(n(81),n(64)),m=n(1297),g=(e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,o.a),v=Object(r.d)(Object(r.c)(m.a),g(Object(r.a)(p.a,d.a,c()("run"),s.a,h.b))),y=v.dispatch}).call(this,n(69))},function(e,t,n){var r=n(87),i=n(861);e.exports=r(function(e){return null!=e&&i(e.length)?e.length:NaN})},function(e,t,n){"use strict";n(2041);var r=n(0),i=n.n(r),o=n(95),a=n(22),s=function(e){var t=e.allowTabNavigation,n=e.className,s=void 0===n?"":n,l=e.tagName,c=e.value,u=Object(r.useRef)(null);return Object(r.useEffect)(function(){return Object(a.j)({element:u.current,selector:"div.fr-view a",tabIndex:Object(a.l)(t)})}),i.a.createElement("div",{"aria-hidden":!t,className:"".concat(s," brand--linkColor"),ref:u},Object(r.createElement)(l,{className:"fr-view",dangerouslySetInnerHTML:{__html:Object(o.b)(c)}}))};s.defaultProps={allowTabNavigation:!0,tagName:"div"},t.a=s},function(e,t,n){var r,i=n(129);e.exports=(r=function(e){return{value:e,map:function(t){return r(t(e))}}},i(function(e,t,n){return e(function(e){return r(t(e))})(n).value}))},function(e,t,n){var r;
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,l=o.slice,c=o.concat,u=o.push,d=o.indexOf,f={},p=f.toString,h=f.hasOwnProperty,m=h.toString,g=m.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||a).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function E(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.4.1",constructor:k,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(k.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||k.isPlainObject(n)?n:{},i=!1,a[t]=k.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&m.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){w(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(S(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(x,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(S(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var T=
/*!
 * Sizzle CSS Selector Engine v2.3.4
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2019-04-08
 */
function(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,_="sizzle"+1*new Date,w=e.document,E=0,k=0,x=le(),S=le(),T=le(),C=le(),O=function(e,t){return e===t&&(d=!0),0},A={}.hasOwnProperty,N=[],I=N.pop,M=N.push,j=N.push,L=N.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",B="\\["+R+"*("+F+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+R+"*\\]",U=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",q=new RegExp(R+"+","g"),z=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),H=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),$=new RegExp(R+"|>"),Y=new RegExp(U),V=new RegExp("^"+F+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=_e(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(N=L.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){j={apply:N.length?function(e,t){M.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,c,u,d,h,v,y=t&&t.ownerDocument,E=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,m)){if(11!==E&&(d=J.exec(e)))if(o=d[1]){if(9===E){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&b(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return j.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!C[e+" "]&&(!g||!g.test(e))&&(1!==E||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===E&&$.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=_),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+be(h[s]);v=h.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return j.apply(r,y.querySelectorAll(v)),r}catch(t){C(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ce(e){return e[_]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce(function(t){return t=+t,ce(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,m=!o(p),w!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Z.test(p.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+D+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",U)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(h.compareDocumentPosition),b=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&b(w,e)?-1:t===p||t.ownerDocument===w&&b(w,t)?1:u?P(u,e)-P(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===p?-1:t===p?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),n.matchesSelector&&m&&!C[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(O),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&x(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(b=(p=(c=(u=(d=(f=g)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===E&&c[1])&&c[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){u[e]=[E,p,b];break}}else if(y&&(b=p=(c=(u=(d=(f=t)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===E&&c[1]),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((u=(d=f[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[E,b]),f!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ce(function(e){var t=[],n=[],r=s(e.replace(z,"$1"));return r[_]?ce(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return se(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}}),lang:ce(function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ge(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,f=[E,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[o])&&c[0]===E&&c[1]===s)return f[2]=c[2];if(u[o]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ee(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function ke(e,t,n,r,i,o){return r&&!r[_]&&(r=ke(r)),i&&!i[_]&&(i=ke(i,o)),ce(function(o,a,s,l){var c,u,d,f=[],p=[],h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:Ee(m,f,e,s,l),v=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,v,s,l),r)for(c=Ee(v,p),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[p[u]]=!(g[p[u]]=d));if(o){if(i||e){if(i){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);i(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=i?P(o,d):f[u])>-1&&(o[c]=!(a[c]=d))}}else v=Ee(v===a?v.splice(h,v.length):v),i?i(null,a,v,l):j.apply(a,v)})}function xe(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=_e(function(e){return e===t},s,!0),d=_e(function(e){return P(t,e)>-1},s,!0),f=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])f=[_e(we(f),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return ke(l>1&&we(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<i&&xe(e.slice(l,i)),i<o&&xe(e=e.slice(i)),i<o&&be(e))}f.push(n)}return we(f)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),r.filter)!(i=K[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=xe(t[n]))[_]?i.push(s):o.push(s);(s=T(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,u){var d,h,g,v=0,y="0",b=o&&[],_=[],w=c,k=o||i&&r.find.TAG("*",u),x=E+=null==w?1:Math.random()||.1,S=k.length;for(u&&(c=a===p||a||u);y!==S&&null!=(d=k[y]);y++){if(i&&d){for(h=0,a||d.ownerDocument===p||(f(d),s=!m);g=e[h++];)if(g(d,a||p,s)){l.push(d);break}u&&(E=x)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,_,a,s);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=I.call(l));_=Ee(_)}j.apply(l,_),u&&!o&&_.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(E=x,c=w),b};return n?ce(o):o}(o,i))).selector=e}return s},l=se.select=function(e,t,n,i){var o,l,c,u,d,f="function"==typeof e&&e,p=!i&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=K.needsContext.test(e)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((d=r.find[u])&&(i=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return j.apply(n,i),n;break}}return(f||s(e,p))(i,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(O).join("")===_,n.detectDuplicates=!!d,f(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(D,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(n);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var C=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=k.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function M(e,t,n){return y(t)?k.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?k.grep(e,function(e){return e===t!==n}):"string"!=typeof t?k.grep(e,function(e){return d.call(t,e)>-1!==n}):k.filter(t,e,n)}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return r>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(M(this,e||[],!1))},not:function(e){return this.pushStack(M(this,e||[],!0))},is:function(e){return!!M(this,"string"==typeof e&&A.test(e)?k(e):e||[],!1).length}});var j,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),I.test(r[1])&&k.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,j=k(a);var P=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!A.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(k(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return C(e,"parentNode")},parentsUntil:function(e,t,n){return C(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return C(e,"nextSibling")},prevAll:function(e){return C(e,"previousSibling")},nextUntil:function(e,t,n){return C(e,"nextSibling",n)},prevUntil:function(e,t,n){return C(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(N(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(e,t){k.fn[e]=function(n,r){var i=k.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=k.filter(r,i)),this.length>1&&(D[e]||k.uniqueSort(i),P.test(e)&&i.reverse()),this.pushStack(i)}});var F=/[^\x20\t\r\n\f]+/g;function B(e){return e}function U(e){throw e}function q(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(F)||[],function(e,n){t[n]=!0}),t}(e):k.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){k.each(n,function(n,r){y(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==E(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;(n=k.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?k.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return k.Deferred(function(n){k.each(t,function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?i?c.call(n,a(o,t,B,i),a(o,t,U,i)):(o++,c.call(n,a(o,t,B,i),a(o,t,U,i),a(o,t,B,t.notifyWith))):(r!==B&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==U&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(k.Deferred.getStackHook&&(u.stackTrace=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred(function(n){t[0][3].add(a(0,n,y(i)?i:B,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:B)),t[2][3].add(a(0,n,y(r)?r:U))}).promise()},promise:function(e){return null!=e?k.extend(e,i):i}},o={};return k.each(t,function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),o=k.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(q(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)q(i[n],a(n),o.reject);return o.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&z.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout(function(){throw e})};var H=k.Deferred();function W(){a.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),k.ready()}k.fn.ready=function(e){return H.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||H.resolveWith(a,[k]))}}),k.ready.then=H.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(k.ready):(a.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var $=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===E(n))for(s in i=!0,n)$(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,y(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},Y=/^-ms-/,V=/-([a-z])/g;function K(e,t){return t.toUpperCase()}function G(e){return e.replace(Y,"ms-").replace(V,K)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=k.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[G(t)]=n;else for(r in t)i[G(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in r?[t]:t.match(F)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var Z=new Q,J=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=J.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),ne(o,r,i[r]));Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){J.set(this,e)}):$(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))?n:void 0!==(n=ne(o,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:k.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each(function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=a.documentElement,se=function(e){return k.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===k.css(e,"display")},ue=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function de(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&ie.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)k.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var fe={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,i=fe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=k.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),fe[r]=i,i)}function he(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Z.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=pe(r))):"none"!==n&&(i[o]="none",Z.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ce(this)?k(this).show():k(this).hide()})}});var me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?k.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var we,Ee,ke=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===E(o))k.merge(f,o.nodeType?[o]:o);else if(ke.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ge.exec(o)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+k.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;k.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",p=0;o=f[p++];)if(r&&k.inArray(o,r)>-1)i&&i.push(o);else if(c=se(o),a=be(d.appendChild(o),"script"),c&&_e(a),n)for(u=0;o=a[u++];)ve.test(o.type||"")&&n.push(o);return d}we=a.createDocumentFragment().appendChild(a.createElement("div")),(Ee=a.createElement("input")).setAttribute("type","radio"),Ee.setAttribute("checked","checked"),Ee.setAttribute("name","t"),we.appendChild(Ee),v.checkClone=we.cloneNode(!0).cloneNode(!0).lastChild.checked,we.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!we.cloneNode(!0).lastChild.defaultValue;var Se=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Ae(){return!1}function Ne(e,t){return e===function(){try{return a.activeElement}catch(e){}}()==("focus"===t)}function Ie(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ie(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}function Me(e,t,n){n?(Z.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),Z.set(this,t,o),r=n(this,t),this[t](),o!==(i=Z.get(this,t))||r?Z.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(Z.set(this,t,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&k.event.add(e,t,Oe)}k.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,m,g=Z.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(ae,i),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)p=m=(s=Ce.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=k.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=k.event.special[p]||{},u=k.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),k.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,f,p,h,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(F)||[""]).length;c--;)if(p=m=(s=Ce.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=k.event.special[p]||{},f=l[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[c],n,r,!0);k.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),l=new Array(arguments.length),c=(Z.get(this,"events")||{})[s.type]||[],u=k.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,c),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==o.namespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?k(i,this).index(c)>-1:k.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Me(t,"click",Oe),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&N(t,"input")&&Me(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&N(t,"input")&&Z.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Oe:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Se.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return Me(this,e,Ne),!1},trigger:function(){return Me(this,e),!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||k.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),k.fn.extend({on:function(e,t,n,r){return Ie(this,e,t,n,r)},one:function(e,t,n,r){return Ie(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each(function(){k.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Le=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Re(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ue(e,t){var n,r,i,o,a,s,l,c;if(1===t.nodeType){if(Z.hasData(e)&&(o=Z.access(e),a=Z.set(t,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n<r;n++)k.event.add(t,i,c[i][n]);J.hasData(e)&&(s=J.access(e),l=k.extend({},s),J.set(t,l))}}function qe(e,t,n,r){t=c.apply([],t);var i,o,a,s,l,u,d=0,f=e.length,p=f-1,h=t[0],m=y(h);if(m||f>1&&"string"==typeof h&&!v.checkClone&&Pe.test(h))return e.each(function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),qe(o,t,n,r)});if(f&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=k.map(be(i,"script"),Fe)).length;d<f;d++)l=i,d!==p&&(l=k.clone(l,!0,!0),s&&k.merge(a,be(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,Be),d=0;d<s;d++)l=a[d],ve.test(l.type||"")&&!Z.access(l,"globalEval")&&k.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):w(l.textContent.replace(De,""),l,u))}return e}function ze(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(be(r)),r.parentNode&&(n&&se(r)&&_e(be(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,c,u=e.cloneNode(!0),d=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=be(u),r=0,i=(o=be(e)).length;r<i;r++)s=o[r],l=a[r],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&me.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||be(e),a=a||be(u),r=0,i=o.length;r<i;r++)Ue(o[r],a[r]);else Ue(e,u);return(a=be(u,"script")).length>0&&_e(a,!d&&be(e,"script")),u},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(e){return ze(this,e,!0)},remove:function(e){return ze(this,e)},text:function(e){return $(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return qe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return qe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){k.fn[e]=function(e){for(var n,r=[],i=k(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),k(i[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var He=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},$e=new RegExp(oe.join("|"),"i");function Ye(e,t,n){var r,i,o,a,s=e.style;return(n=n||We(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=k.style(e,t)),!v.pixelBoxStyles()&&He.test(a)&&$e.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,s,l,c=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o}}))}();var Ke=["Webkit","Moz","ms"],Ge=a.createElement("div").style,Xe={};function Qe(e){var t=k.cssProps[e]||Xe[e];return t||(e in Ge?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ke.length;n--;)if((e=Ke[n]+t)in Ge)return e}(e)||e)}var Ze=/^(none|table(?!-c[ea]).+)/,Je=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(e,n+oe[a],!0,i)),r?("content"===n&&(l-=k.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(l-=k.css(e,"border"+oe[a]+"Width",!0,i))):(l+=k.css(e,"padding"+oe[a],!0,i),"padding"!==n?l+=k.css(e,"border"+oe[a]+"Width",!0,i):s+=k.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function it(e,t,n){var r=We(e),i=(!v.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i,a=Ye(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(He.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===k.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),l=Je.test(t),c=e.style;if(l||(t=Qe(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=de(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=G(t);return Je.test(t)||(t=Qe(s)),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ye(e,t,r)),"normal"===i&&t in tt&&(i=tt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,t){k.cssHooks[t]={get:function(e,n,r){if(n)return!Ze.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):ue(e,et,function(){return it(e,t,r)})},set:function(e,n,r){var i,o=We(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===k.css(e,"boxSizing",!1,o),l=r?rt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),nt(0,n,l)}}}),k.cssHooks.marginLeft=Ve(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(e,t){k.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(k.cssHooks[e+t].set=nt)}),k.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=We(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,arguments.length>1)}}),k.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ot.prototype.init,k.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ut):n.setTimeout(ut,k.fx.interval),k.fx.tick())}function dt(){return n.setTimeout(function(){at=void 0}),at=Date.now()}function ft(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function pt(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,a=ht.prefilters.length,s=k.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=at||dt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=G(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<a;o++)if(r=ht.prefilters[o].call(c,e,u,c.opts))return y(r.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return k.map(u,pt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(F);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,m=e.nodeType&&ce(e),g=Z.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always(function(){f.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],lt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||k.style(e,r)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=g&&g.display)&&(c=Z.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(he([e],!0),c=e.style.display||c,u=k.css(e,"display"),he([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(f.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=Z.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&he([e],!0),f.done(function(){for(r in m||he([e]),Z.remove(e,"fxshow"),p)k.style(e,r,p[r])})),l=pt(m?g[r]:0,r,f),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=k.isEmptyObject(e),o=k.speed(t,n,r),a=function(){var t=ht(this,k.extend({},e),o);(i||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=k.timers,a=Z.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ct.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||k.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Z.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=k.timers,a=r?r.length:0;for(n.finish=!0,k.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),k.each(["toggle","show","hide"],function(e,t){var n=k.fn[t];k.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,r,i)}}),k.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){k.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),at=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){st||(st=!0,ut())},k.fx.stop=function(){st=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var mt,gt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return $(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(F);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var n=gt[t]||k.find.attr;gt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=gt[a],gt[a]=i,i=null!=n(e,t,r)?a:null,gt[a]=o),i}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(F)||[]).join(" ")}function _t(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}k.fn.extend({prop:function(e,t){return $(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(y(e))return this.each(function(t){k(this).addClass(e.call(this,t,_t(this)))});if((t=wt(e)).length)for(;n=this[l++];)if(i=_t(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(y(e))return this.each(function(t){k(this).removeClass(e.call(this,t,_t(this)))});if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(i=_t(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){k(this).toggleClass(e.call(this,n,_t(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=k(this),a=wt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=_t(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(_t(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;k.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,k(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=k.map(i,function(e){return null==e?"":e+""})),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=k.valHooks[i.type]||k.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Et,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:bt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=k.inArray(k.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var kt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,r,i){var o,s,l,c,u,d,f,p,m=[r||a],g=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(s=p=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!kt.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),u=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:k.makeArray(t,[e]),f=k.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!b(r)){for(c=f.delegateType||g,kt.test(c+g)||(s=s.parentNode);s;s=s.parentNode)m.push(s),l=s;l===(r.ownerDocument||a)&&m.push(l.defaultView||l.parentWindow||n)}for(o=0;(s=m[o++])&&!e.isPropagationStopped();)p=s,e.type=o>1?c:f.bindType||g,(d=(Z.get(s,"events")||{})[e.type]&&Z.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&X(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(m.pop(),t)||!X(r)||u&&y(r[g])&&!b(r)&&((l=r[u])&&(r[u]=null),k.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,xt),r[g](),e.isPropagationStopped()&&p.removeEventListener(g,xt),k.event.triggered=void 0,l&&(r[u]=l)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}});var St=n.location,Tt=Date.now(),Ct=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var Ot=/\[\]$/,At=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function Mt(e,t,n,r){var i;if(Array.isArray(t))k.each(t,function(t,i){n||Ot.test(e)?r(e,i):Mt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==E(t))r(e,t);else for(i in t)Mt(e+"["+i+"]",t[i],n,r)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)Mt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&It.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!me.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(At,"\r\n")}}):{name:t.name,value:n.replace(At,"\r\n")}}).get()}});var jt=/%20/g,Lt=/#.*$/,Pt=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Ft=/^\/\//,Bt={},Ut={},qt="*/".concat("*"),zt=a.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(F)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Wt(e,t,n,r){var i={},o=e===Ut;function a(s){var l;return i[s]=!0,k.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function $t(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}zt.href=St.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,k.ajaxSettings),t):$t(k.ajaxSettings,e)},ajaxPrefilter:Ht(Bt),ajaxTransport:Ht(Ut),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,l,c,u,d,f,p,h=k.ajaxSetup({},t),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,v=k.Deferred(),y=k.Callbacks("once memory"),b=h.statusCode||{},_={},w={},E="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Dt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),S(0,t),this}};if(v.promise(x),h.url=((e||h.url||St.href)+"").replace(Ft,St.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){c=a.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=zt.protocol+"//"+zt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),Wt(Bt,h,t,x),u)return x;for(f in(d=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),i=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(p=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ct.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Pt,"$1"),p=(Ct.test(i)?"&":"?")+"_="+Tt+++p),h.url=i+p),h.ifModified&&(k.lastModified[i]&&x.setRequestHeader("If-Modified-Since",k.lastModified[i]),k.etag[i]&&x.setRequestHeader("If-None-Match",k.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+qt+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(m,x,h)||u))return x.abort();if(E="abort",y.add(h.complete),x.done(h.success),x.fail(h.error),r=Wt(Ut,h,t,x)){if(x.readyState=1,d&&g.trigger("ajaxSend",[x,h]),u)return x;h.async&&h.timeout>0&&(l=n.setTimeout(function(){x.abort("timeout")},h.timeout));try{u=!1,r.send(_,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,s){var c,f,p,_,w,E=t;u||(u=!0,l&&n.clearTimeout(l),r=void 0,o=s||"",x.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,x,a)),_=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,_,x,c),c?(h.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(k.lastModified[i]=w),(w=x.getResponseHeader("etag"))&&(k.etag[i]=w)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=_.state,f=_.data,c=!(p=_.error))):(p=E,!e&&E||(E="error",e<0&&(e=0))),x.status=e,x.statusText=(t||E)+"",c?v.resolveWith(m,[f,E,x]):v.rejectWith(m,[x,E,p]),x.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[x,h,c?f:p]),y.fireWith(m,[x,E]),d&&(g.trigger("ajaxComplete",[x,h]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,t){k[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:i,data:n,success:r},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e,t){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){k(this).wrapInner(e.call(this,t))}):this.each(function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){k(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Vt=k.ajaxSettings.xhr();v.cors=!!Vt&&"withCredentials"in Vt,v.ajax=Vt=!!Vt,k.ajaxTransport(function(e){var t,r;if(v.cors||Vt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Yt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var Kt,Gt=[],Xt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+Tt++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||k.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?k(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),a&&y(o)&&o(a[0]),a=o=void 0}),"script"}),v.createHTMLDocument=((Kt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(r)):t=a),o=!n&&[],(i=I.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("<div>").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),y(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===k.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),i.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-k.css(r,"marginTop",!0),left:t.left-i.left-k.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ae})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;k.fn[e]=function(r){return $(this,function(e,r,i){var o;if(b(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),k.each(["top","left"],function(e,t){k.cssHooks[t]=Ve(v.pixelPosition,function(e,n){if(n)return n=Ye(e,t),He.test(n)?k(e).position()[t]+"px":n})}),k.each({Height:"height",Width:"width"},function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){k.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return $(this,function(t,n,i){var o;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?k.css(t,n,s):k.style(t,n,i,s)},t,a?i:void 0,a)}})}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=l.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(l.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=N,k.isFunction=y,k.isWindow=b,k.camelCase=G,k.type=E,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return k}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Zt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Zt),e&&n.jQuery===k&&(n.jQuery=Qt),k},i||(n.jQuery=n.$=k),k})},function(e,t,n){var r=n(129),i=n(60);e.exports=r(function(e,t,n){return i(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})})},function(e,t,n){"use strict";(function(e){var r=n(226),i=n.n(r),o=(n(2042),n(1184)),a=n.n(o),s=function(t){var n=t.afterAnimatedIn,r=t.animateBlockEntrance,o=t.animateIn,s=t.animateOnce,l=t.children,c=t.className,u=t.duration,d=t.initiallyVisible,f=t.isLearner,p=t.offset,h=t.siblingDelay;return f&&r?e.createElement(a.a,{afterAnimatedIn:n,animateIn:o,animateOnce:s,className:c,duration:u,initiallyVisible:d,scrollableParentSelector:"#page-wrap",siblingDelay:h,offset:p},l):i()(l)?e.createElement("div",null,l):l};s.defaultProps={animateOnce:!0,duration:.75,offset:200,siblingDelay:0},t.a=s}).call(this,n(0))},function(e,t,n){"use strict";var r,i,o,a,s,l=n(15),c=n.n(l),u=n(5),d=n(20),f=n(227),p=n.n(f),h=(n(294),n(18)),m=n.n(h),g=n(108),v=n.n(g),y=n(43),b=n.n(y),_=n(19),w=n.n(_),E=n(177),k=n.n(E),x=n(6),S=n.n(x),T=(n(120),n(60)),C=n.n(T),O=n(415),A=n.n(O),N=n(33),I=n.n(N),M=n(46),j=n.n(M),L=n(39),P=n.n(L),D=n(115),R=n.n(D),F=n(45),B=n.n(F),U=n(55),q=n.n(U),z=n(335),H=n.n(z),W=(n(72),n(733)),$=n.n(W),Y=n(36),V=n.n(Y),K=n(51),G=n.n(K),X=(n(75),n(231)),Q=n.n(X),Z=n(35),J=n.n(Z),ee=n(17),te=n.n(ee),ne=n(77),re=n.n(ne),ie=n(214),oe=n.n(ie),ae=n(62),se=n.n(ae),le=(n(53),n(26)),ce=n.n(le),ue=n(42),de=n.n(ue),fe=n(23),pe=n.n(fe),he=n(197),me=n.n(he),ge=n(8),ve=n.n(ge),ye=n(14),be=n.n(ye),_e=(n(112),n(67)),we=n.n(_e),Ee=n(32),ke=n.n(Ee),xe=n(66),Se=n(152),Te=C()(3,function(e,t,n){var r=(t=t.split("/")).shift();t.length&&(e=Te(e,t.join("/")));var i=r.split(":"),o=Object(xe.a)(i,2),a=o[0],s=o[1];return I()(Object(u.a)({},a,s?Object(Se.a)(e,s):e),n)}),Ce=Te,Oe=(n(273),n(21)),Ae=n(107),Ne=n(269),Ie=n.n(Ne),Me=n(4),je=n.n(Me),Le=n(59),Pe=n.n(Le),De=n(274),Re=Ie.a,Fe=n(40),Be=n.n(Fe),Ue=(n(61),n(132),n(1175),n(131)),qe=n(179),ze=n.n(qe),He=(n(166),n(169)),We=n(167),$e=n(586),Ye=n.n($e),Ve=(r={},Object(u.a)(r,Ue.a.FILL_IN_THE_BLANK,function(){return{answers:[{id:Re(),title:"Answer 1"}],title:"Enter a question title here..."}}),Object(u.a)(r,Ue.a.MATCHING,function(){return{answers:[{id:Re(),matchTitle:"First match",title:"First choice"},{id:Re(),matchTitle:"Second match",title:"Second choice"},{id:Re(),matchTitle:"Third match",title:"Third choice"}],title:"Enter a question title here..."}}),Object(u.a)(r,Ue.a.MULTIPLE_CHOICE,function(){var e=Re();return{answers:[{feedback:"",id:e,title:"Choice 1"},{feedback:"",id:Re(),title:"Choice 2"}],correct:e,corrects:[e],title:"Enter a question title here..."}}),Object(u.a)(r,Ue.a.MULTIPLE_RESPONSE,function(){var e=Re(),t=Re();return{answers:[{feedback:"",id:e,title:"Choice 1"},{feedback:"",id:Re(),title:"Choice 2"},{feedback:"",id:Re(),title:"Choice 3"},{feedback:"",id:t,title:"Choice 4"}],correct:e,corrects:[e,t],title:"Enter a question title here..."}}),r),Ke=function(e){var t=e.id,n=e.type;return Object(Oe.c)(Ve,ve()(n),Ye.a,b()({feedback:"",id:t,type:n}))},Ge=n(44),Xe=n.n(Ge),Qe=n(76),Ze=n.n(Qe),Je=He.a.ANY,et=He.a.CHOICE,tt=He.a.CORRECT_INCORRECT,nt={label:"Any Response",prop:"feedback"},rt=(Xe()([[Be()(Je),m()(nt)],[Be()(et),m()({label:"By Choice",prop:"choice"})],[Be()(tt),m()({correctProp:"feedbackCorrect",incorrectProp:"feedbackIncorrect",label:"Correct / Incorrect",type:"CORRECT_INCORRECT"})],[Ze.a,m()(nt)]]),Object(Ae.d)("CDN_USER_CONTENT_URI")),it="assets/rise/assets/block-defaults",ot=De.a.ARTICLE,at=De.a.INTERACTION,st=De.a.QUIZ,lt=De.a.VIDEO;Re(),je()(i="".concat(rt,"/")).call(i,it,"/beach_rocks_thumb.jpg"),je()(o="".concat(rt,"/")).call(o,it,"/beach_rocks.jpg"),"".concat(it,"/beach_rocks.jpg"),Re(),je()(a="".concat(rt,"/")).call(a,it,"/sky_mountains_thumb.jpg"),je()(s="".concat(rt,"/")).call(s,it,"/sky_mountains.jpg"),"".concat(it,"/sky_mountains.jpg"),Re(),Re(),"".concat(Object(Ae.d)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/map-balloon.jpg"),Ke({id:Re(),type:Ue.a.MULTIPLE_CHOICE}),Ke({id:Re(),type:Ue.a.MULTIPLE_RESPONSE});n(319),n(146);var ct,ut,dt,ft,pt,ht,mt,gt,vt,yt,bt,_t,wt,Et,kt,xt,St,Tt,Ct,Ot,At,Nt,It,Mt,jt,Lt,Pt,Dt,Rt,Ft,Bt,Ut,qt,zt,Ht,Wt,$t,Yt,Vt,Kt,Gt,Xt,Qt,Zt,Jt,en,tn,nn,rn,on,an,sn,ln,cn,un,dn,fn,pn,hn,mn,gn,vn,yn,bn,_n,wn,En,kn,xn,Sn,Tn,Cn,On,An,Nn,In,Mn,jn,Ln,Pn,Dn,Rn,Fn=n(30),Bn=n.n(Fn),Un=n(259),qn="".concat(Object(Ae.d)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/blocks"),zn=("".concat(qn,"/text_paragraph@2x.png"),"".concat(qn,"/text_paragraph_heading@2x.png"),"".concat(qn,"/text_paragraph_subheading@2x.png"),"".concat(qn,"/text_heading@2x.png"),"".concat(qn,"/text_subheading@2x.png"),"".concat(qn,"/text_2column@2x.png"),"".concat(qn,"/table@2x.png"),"".concat(qn,"/statement_A@2x.png"),"".concat(qn,"/statement_B@2x.png"),"".concat(qn,"/statement_C@2x.png"),"".concat(qn,"/statement_D@2x.png"),"".concat(qn,"/statement_note@2x.png"),"".concat(qn,"/quote_A@2x.png"),"".concat(qn,"/quote_B@2x.png"),"".concat(qn,"/quote_C@2x.png"),"".concat(qn,"/quote_D@2x.png"),"".concat(qn,"/quote_on_image@2x.png"),"".concat(qn,"/quote_carousel@2x.png"),"".concat(qn,"/list_numbered@2x.png"),"".concat(qn,"/list_checkbox@2x.png"),"".concat(qn,"/list_bulleted@2x.png"),"".concat(qn,"/image_centered@2x.png"),"".concat(qn,"/image_full_width@2x.png"),"".concat(qn,"/image_image_and_text@2x.png"),"".concat(qn,"/image_text_on_image@2x.png"),"".concat(qn,"/gallery_carousel@2x.png"),"".concat(qn,"/gallery_two_column_grid@2x.png"),"".concat(qn,"/gallery_three_column_grid@2x.png"),"".concat(qn,"/gallery_four_column_grid@2x.png"),"".concat(qn,"/multimedia_audio@2x.png"),"".concat(qn,"/multimedia_video@2x.png"),"".concat(qn,"/multimedia_video@2x.png"),"".concat(qn,"/multimedia_embed_v2@2x.png"),"".concat(qn,"/multimedia_attachment@2x.png"),"".concat(qn,"/text_code_snippet@2x.png"),"".concat(qn,"/interactive_accordion@2x.png"),"".concat(qn,"/interactive_tabs@2x.png"),"".concat(qn,"/interactive_labeledgraphic@2x.png"),"".concat(qn,"/interactive_process@2x.png"),"".concat(qn,"/interactive_scenario@2x.png"),"".concat(qn,"/interactive_sorting_activity@2x.png"),"".concat(qn,"/interactive_timeline@2x.png"),"".concat(qn,"/interactive_card_grid@2x.png"),"".concat(qn,"/interactive_card@2x.png"),"".concat(qn,"/interactive_text_button@2x.png"),"".concat(qn,"/interactive_text_button_stack@2x.png"),"".concat(qn,"/interactive_storyline@2x.png"),"".concat(qn,"/chart_bar@2x.png"),"".concat(qn,"/chart_line@2x.png"),"".concat(qn,"/chart_pie@2x.png"),"".concat(qn,"/interactive_continue@2x.png"),"".concat(qn,"/divider@2x.png"),"".concat(qn,"/divider_numbered@2x.png"),"".concat(qn,"/spacer@2x.png"),"".concat(qn,"/multiple-choice-thumb@2x.png"),"".concat(qn,"/multiple-response-thumb@2x.png"),"".concat(qn,"/fill-in-the-blank-thumb@2x.png"),"".concat(qn,"/matching-thumb@2x.png"),n(28)),Hn=n.n(zn),Wn=n(29),$n=Hn()("".concat(Object(Wn.c)("IPC_URI"))),Yn=Hn()("https://help.".concat(Object(Wn.c)("RISE_DOMAIN"))),Vn=["#ff6602","#eb524d","#730300","#9764ae","#730676","#3c003e","#4399ea","#1360aa","#003465","#21a689","#006a53","#00392d"],Kn=Vn.length,Gn=function(e,t){return te()(e,{color:(n=t,Vn[n%Kn]),id:Re()});var n},Xn=function(e){var t,n;return"pie"===e?c()(n=[{type:"Item 1",value:"70"},{type:"Item 2",value:"30"}]).call(n,Gn):c()(t=[{type:"Item 1",value:"42"},{type:"Item 2",value:"81"},{type:"Item 3",value:"17"},{type:"Item 4",value:"64"},{type:"Item 5",value:"82"}]).call(t,Gn)},Qn=n(178),Zn=n.n(Qn),Jn=n(41),er=n.n(Jn)()("",Zn.a,{bar:"Bar Chart Title",line:"Line Chart Title",pie:"Pie Chart Title"}),tr=ze()({items:Xn,itemsLabel:"",title:er,valuesLabel:""}),nr=Object(Ae.d)("CDN_USER_CONTENT_URI"),rr="assets/rise/assets/block-defaults",ir=[{id:Re(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"paraglide.jpg",thumbnail:je()(ct="".concat(nr,"/")).call(ct,rr,"/paraglide_thumb.jpg"),src:je()(ut="".concat(nr,"/")).call(ut,rr,"/paraglide.jpg"),key:"".concat(rr,"/paraglide.jpg"),type:"image"}}},{id:Re(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:Re(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],or=[{id:Re()}],ar=[{id:Re(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"golden_gate.jpg",thumbnail:je()(dt="".concat(nr,"/")).call(dt,rr,"/golden_gate_thumb.jpg"),src:je()(ft="".concat(nr,"/")).call(ft,rr,"/golden_gate.jpg"),key:"".concat(rr,"/golden_gate.jpg"),type:"image"}}},{id:Re(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:Re(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],sr=[{id:Re(),title:"Embracing Discovery",description:"<p>Every creative endeavor requires that you take risks. If you try and don't succeed,\n      you've still learned something. It took Thomas Edison more than 10,000 tries to invent a viable\n      lightbulb. You're not failing. You're discovering what doesn't work.</p>",media:{image:{originalUrl:"paraglide.jpg",thumbnail:je()(pt="".concat(nr,"/")).call(pt,rr,"/paraglide_thumb.jpg"),src:je()(ht="".concat(nr,"/")).call(ht,rr,"/paraglide.jpg"),key:"".concat(rr,"/paraglide.jpg"),type:"image"}}},{id:Re(),title:"Gaining Insight",description:"<p>To spark creativity, feed your brain material like you're cramming for a tough test.\n      Then stop thinking about the problem you want to solve. Go surfing or take a leisurely walk.\n      Research shows that letting your mind wander fosters creativity.</p><br>\n      <p>It’s also found that meditation helps you spot and solve problems in creative ways. It promotes\n      divergent thinking that gets novel ideas flowing. According to these studies, meditation also makes\n      you more open to considering new solutions. Time to breathe.</p>"},{id:Re(),title:"Making It Real",description:"<p>No creative process is truly complete until it manifests a tangible reality. Whether your\n      idea is an action or a physical creation, bringing it to life will likely involve the hard work of\n      iteration, testing, and refinement.</p><br>\n      <p>Just be wary of perfectionism. Push yourself to share your creations with others. By maintaining an\n      open stance, you’ll be able to learn from their feedback. Consider their responses new material that you\n      can draw from the next time you’re embarking on a creative endeavor.</p>"}],lr=[{id:Re(),front:{type:"description",description:"Front of card 1",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(mt="".concat(nr,"/")).call(mt,rr,"/mountains_thumb.jpg"),src:je()(gt="".concat(nr,"/")).call(gt,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card 1",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(vt="".concat(nr,"/")).call(vt,rr,"/mountains_thumb.jpg"),src:je()(yt="".concat(nr,"/")).call(yt,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}}},{id:Re(),front:{type:"description",description:"Front of card 2",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(bt="".concat(nr,"/")).call(bt,rr,"/mountains_thumb.jpg"),src:je()(_t="".concat(nr,"/")).call(_t,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}},back:{type:"fullimage",description:"Back of card 2",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(wt="".concat(nr,"/")).call(wt,rr,"/mountains_thumb.jpg"),src:je()(Et="".concat(nr,"/")).call(Et,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}}},{id:Re(),front:{type:"description",description:"Front of card 3",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(kt="".concat(nr,"/")).call(kt,rr,"/mountains_thumb.jpg"),src:je()(xt="".concat(nr,"/")).call(xt,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card 3",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(St="".concat(nr,"/")).call(St,rr,"/mountains_thumb.jpg"),src:je()(Tt="".concat(nr,"/")).call(Tt,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}}}],cr=[{id:Re(),type:"",label:"Go to location 1",destination:"",description:"<p><b>Location 1</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},{id:Re(),label:"Go to location 2",type:"",destination:"",description:"<p><b>Location 2</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},{id:Re(),type:"",label:"Go to location 3",destination:"",description:"<p><b>Location 3</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"}],ur=[{id:Re(),media:{audio:{duration:178,originalUrl:"sample_audio.mp3",src:je()(Ct="".concat(nr,"/")).call(Ct,rr,"/sample_audio.mp3"),key:"".concat(rr,"/sample_audio.mp3"),type:"audio"}},caption:""}],dr=[{id:Re(),media:{video:{duration:20,originalUrl:"Coastline.mp4",thumbnail:je()(Ot="".concat(nr,"/")).call(Ot,rr,"/coastline_thumb.png"),poster:je()(At="".concat(nr,"/")).call(At,rr,"/coastline_poster.png"),src:je()(Nt="".concat(nr,"/")).call(Nt,rr,"/coastline.mp4"),key:"".concat(rr,"/coastline.mp4"),type:"video"}},caption:""}],fr=[{caption:"",id:Re(),media:{customVideo:{poster:null,src:null,subtitle:null,thumbnail:null}}}],pr=[{id:Re(),media:{embed:{originalUrl:"https://vimeo.com/113569548",title:"Elk Mountains",thumbnail:"https://i.vimeocdn.com/video/516824684_1280.jpg",favicon:"https://f.vimeocdn.com/images_v6/favicon.ico",provider:"Vimeo",providerUrl:"https://vimeo.com/",description:"There is a small window in the Colorado high country when the trail conditions are perfect. Some would call it fall, but nature is fickle here -- often the warm days of summer push up against the sting of winter. In the high country, cold winds blow and snow dusts the peaks.",embedType:"video",src:"//cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F113569548%3Fapp_id%3D122963&dntp=1&display_name=Vimeo&url=https%3A%2F%2Fvimeo.com%2F113569548&image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F516824684_1280.jpg&key=5cbac80a25df462a99e58eccd801acc0&type=text%2Fhtml&schema=vimeo",type:"embed"}}}],hr=[{id:Re(),media:{attachment:{originalUrl:"",size:0,src:"",type:"attachment"}}}],mr=[{id:Re(),title:"Enter a question title here ...",type:"MULTIPLE_CHOICE",answers:[{id:Re(),title:"Correct choice",correct:!0},{id:Re(),title:"Incorrect choice",correct:!1}],feedback:""}],gr=[{id:Re(),title:"CONTINUE",type:"",buttonColor:"brand",completeHint:"Complete the content above before moving on."}];function vr(){var e;return c()(e=Bn()(gr).call(gr,0,1)).call(e,Pe.a)}function yr(e,t){var n,r,i,o,a,s,l,u,d;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return function(e){return Pe()(Pr[e]||{})}(e);var f=t||3;switch(e){case"accordion":return c()(n=Bn()(ir).call(ir,0,f)).call(n,Pe.a);case"storyline":return c()(r=Bn()(or).call(or,0,1)).call(r,Pe.a);case"slider":return c()(i=Bn()(ar).call(ar,0,f)).call(i,Pe.a);case"tabs":return c()(o=Bn()(sr).call(sr,0,f)).call(o,Pe.a);case"flashcard":return c()(a=Bn()(lr).call(lr,0,f)).call(a,Pe.a);case"stack":return c()(s=Bn()(lr).call(lr,0,f)).call(s,Pe.a);case"button":return c()(l=Bn()(cr).call(cr,0,1)).call(l,Pe.a);case"button stack":return c()(u=Bn()(cr).call(cr,0,f)).call(u,Pe.a);case"knowledge":return c()(d=Bn()(mr).call(mr,0,f)).call(d,Pe.a);default:return[]}}var br=[{id:Re(),title:"Enter a question title here...",type:"MULTIPLE_CHOICE",answers:[{id:Re(),title:"Choice 1",correct:!0},{id:Re(),title:"Choice 2",correct:!1}],feedback:""},{id:Re(),title:"Enter a question title here...",type:"MULTIPLE_RESPONSE",answers:[{id:Re(),title:"Choice 1",correct:!0},{id:Re(),title:"Choice 2",correct:!1},{id:Re(),title:"Choice 3",correct:!1},{id:Re(),title:"Choice 4",correct:!0}],feedback:""},{id:Re(),title:"Enter a question title here...",type:"FILL_IN_THE_BLANK",answers:[{id:Re(),title:"Answer 1",correct:!0}]},{id:Re(),title:"Enter a question title here...",type:"MATCHING",answers:[{id:Re(),title:"First Choice",matchTitle:"First Match",correct:!0},{id:Re(),title:"Second Choice",matchTitle:"Second Match",correct:!0},{id:Re(),title:"Third Choice",matchTitle:"Third Match",correct:!0}],feedback:""}];var _r=[{id:Re(),title:"Item 1",isActive:!1,description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit. Nunc vitae neque mattis elit ullamcorper euismod vel eu quam. Vivamus et dolor sit amet justo tempus faucibus. Integer quis nulla laoreet, consectetur felis in, ullamcorper ligula.",x:51,y:34,icon:"01"},{id:Re(),title:"Item 2",isActive:!1,description:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit. Nunc vitae neque mattis elit ullamcorper euismod vel eu quam. Vivamus et dolor sit amet justo tempus faucibus. Integer quis nulla laoreet, consectetur felis in, ullamcorper ligula.",x:83,y:31,icon:"01"}],wr=[{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit.</p>",id:Re(),isHidden:!1,title:"Introduction",type:"intro"},{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. In purus velit, tincidunt ac nibh quis, sollicitudin varius libero. Nullam at mi felis. Donec a scelerisque augue, sit amet porttitor nibh. Suspendisse at lorem ut elit placerat blandit.</p>",id:Re(),isHidden:!1,title:"Summary",type:"summary"},{description:"<p>Lorem ipsum excepteur sint occaecat cupidatat non proident, in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium.</p>",id:Re(),isHidden:!1,media:{image:{originalUrl:"beach_rocks.jpg",thumbnail:je()(It="".concat(nr,"/")).call(It,rr,"/beach_rocks_thumb.jpg"),src:je()(Mt="".concat(nr,"/")).call(Mt,rr,"/beach_rocks.jpg"),key:"".concat(rr,"/beach_rocks.jpg"),type:"image"}},title:"Step 1 Title",type:"step"},{description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>",id:Re(),isHidden:!1,media:{image:{originalUrl:"sky_mountains.jpg",thumbnail:je()(jt="".concat(nr,"/")).call(jt,rr,"/sky_mountains_thumb.jpg"),src:je()(Lt="".concat(nr,"/")).call(Lt,rr,"/sky_mountains.jpg"),key:"".concat(rr,"/sky_mountains.jpg"),type:"image"}},title:"Step 2 Title",type:"step"}],Er={scene:Re(),slide:Re()},kr=[{background:{media:{image:{originalUrl:"hotel.jpg",thumbnail:je()(Pt="".concat(nr,"/")).call(Pt,rr,"/backgrounds/hotel_thumb.jpg"),src:je()(Dt="".concat(nr,"/")).call(Dt,rr,"/backgrounds/hotel.jpg"),key:"".concat(rr,"/backgrounds/hotel.jpg"),type:"image"}}},character:{id:"prod"===Object(Ae.d)("SERVICE_ENV")?"photo-female-00021":"0CAviWa3pH4-a6LU"},id:Er.scene,slides:[{description:"<p>Add text to explain the situation your scenario will address.</p>",emotion:"neutral",goTo:"next",hasCharacter:!0,id:Er.slide,nextSlide:null,responses:[],title:"Scenario Title",type:"text"},{description:"<p>Add dialogue text here to ask your learners to make a choice, then choose your character's expression. You can create different feedback and follow-up actions for each learner response.</p>",emotion:"neutral",goTo:"next",hasCharacter:!0,id:Re(),nextSlide:null,responses:[{action:"continue",description:"<p>Learners who choose this response will continue on.</p>",emotion:"happy",feedback:"<p>Add feedback here to let learners know they got it right.</p>",goTo:"next",id:Re(),nextSlide:null},{action:"tryAgain",description:"<p>Learners who choose this incorrect response will be able to try again.</p>",emotion:"disappointed",feedback:"<p>Add helpful feedback here and let learners try again.</p>",goTo:"next",id:Re(),nextSlide:null}],title:null,type:"dialogue"},{description:"<p>Add another question to your scenario here. There are many ways to branch learners based on their responses.</p>",emotion:"happy",goTo:"next",hasCharacter:!0,id:Re(),nextSlide:null,responses:[{action:"continue",description:"<p>End this scenario.</p>",emotion:"happy",feedback:null,goTo:"next",id:Re(),nextSlide:null},{action:"continue",description:"<p>I want to do the scenario again.</p>",emotion:"thinking",feedback:null,goTo:"slide",id:Re(),nextSlide:Er}],title:null,type:"dialogue"},{description:'<p>Add text here to let learners know your scenario is over.  View <a href="'.concat(Wn.e?Yn("/en/articles/3120661-how-to-use-scenario-blocks"):$n("/rs/360/en/scenario-block"),'" rel="noopener noreferrer" target="_blank">this tutorial</a> to learn how to create branching scenarios.</p>'),emotion:"happy",goTo:"end",hasCharacter:!0,id:Re(),nextSlide:null,responses:[],title:"Scenario End",type:"text"}],title:"Scene 1"}],xr={items:[{id:Re(),title:"Item 1",pileId:1},{id:Re(),title:"Item 2",pileId:2}],piles:[{id:1,title:"Category 1"},{id:2,title:"Category 2"}]},Sr=[{id:Re(),date:"Date 1",title:"Event 1 Title",description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>"},{id:Re(),date:"Date 2",title:"Event 2 Title",description:"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>"}];var Tr=[{id:Re(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{key:"".concat(rr,"/avatar.jpg"),src:je()(Rt="".concat(nr,"/")).call(Rt,rr,"/avatar.jpg"),thumbnail:je()(Ft="".concat(nr,"/")).call(Ft,rr,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:je()(Bt="".concat(nr,"/")).call(Bt,rr,"/quote_background.jpg"),thumbnail:je()(Ut="".concat(nr,"/")).call(Ut,rr,"/quote_background_thumb.jpg"),key:"".concat(rr,"/quote_background.jpg"),type:"image"}}}},{id:Re(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{src:je()(qt="".concat(nr,"/")).call(qt,rr,"/avatar.jpg"),thumbnail:je()(zt="".concat(nr,"/")).call(zt,rr,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",key:"".concat(rr,"/avatar.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:je()(Ht="".concat(nr,"/")).call(Ht,rr,"/quote_background.jpg"),thumbnail:je()(Wt="".concat(nr,"/")).call(Wt,rr,"/quote_background_thumb.jpg"),key:"".concat(rr,"/quote_background.jpg"),type:"image"}}}},{id:Re(),paragraph:"<p>My secret power is actually a practice. I tell myself every morning that I'm on a once-in-a-lifetime adventure. So when things go wacky, I actually feel thankful that I'm experiencing something new.</p>",name:"<p>Avani Sadana</p>",avatar:{media:{image:{src:je()($t="".concat(nr,"/")).call($t,rr,"/avatar.jpg"),thumbnail:je()(Yt="".concat(nr,"/")).call(Yt,rr,"/avatar_thumb.jpg"),originalUrl:"avatar.jpg",key:"".concat(rr,"/avatar.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:je()(Vt="".concat(nr,"/")).call(Vt,rr,"/quote_background.jpg"),thumbnail:je()(Kt="".concat(nr,"/")).call(Kt,rr,"/quote_background_thumb.jpg"),key:"".concat(rr,"/quote_background.jpg"),type:"image"}}}}];var Cr=[{id:Re(),paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy.  The pains of the past are behind us.  The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:Re(),paragraph:'<p>By all means, write your to-do list. Make careful arrangements. Choose your\n    traveling companions. Pack up your talismans. And then scrap your well-thought out plan when\n    your intuition whispers, "This way."</p>'},{id:Re(),paragraph:"<p>We open ourselves to discovery by following our deepest questions. If we take\n    them seriously, they teach us everything we want to know. If we abandon them, we forfeit a\n    powerful chance to become someone new.</p>"},{id:Re(),heading:"<strong>Heading</strong>",paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy. The pains of the past are behind us. The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:Re(),heading:"<strong>Subheading</strong>",paragraph:"<p>When we show up to the present moment with all of our senses, we invite the world\n    to fill us with joy. The pains of the past are behind us. The future has yet to unfold. But\n    the now is full of beauty simply waiting for our attention.</p>"},{id:Re(),heading:"<strong>Heading</strong>"},{id:Re(),heading:"<strong>Subheading</strong>"}],Or=[{id:Re(),code:Object(Un.htmlEncode)("<!DOCTYPE html>\n<html lang=”en”>\n\t<head>\n\t\t<meta charset=”utf-8”>\n\t\t<title>title</title>\n\t\t<link rel=”stylesheet” href=”style.css”>\n\t\t<script src=”script.js”><\/script>\n\t</head>\n\t<body>\n\t\t\x3c!-- page content --\x3e\n\t</body>\n</html>"),caption:""}],Ar=function(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,_=e.color,w=["width: 20%",_?"background-color: ".concat(_):""].join(";"),E=["color: rgb(255, 255, 255)","font-weight: bold"].join(";"),k="text-align: center;";return{id:Re(),paragraph:je()(t=je()(n=je()(r=je()(i=je()(o=je()(a=je()(s=je()(l=je()(c=je()(u=je()(d=je()(f=je()(p=je()(h=je()(m=je()(g=je()(v=je()(y=je()(b='\n  <table style="width: 100%;">\n    <thead>\n    <tr>\n      <th style="'.concat(w,'">\n        <span style="')).call(b,E,'">Column 1</span>\n      </th>\n      <th style="')).call(y,w,'">\n        <span style="')).call(v,E,'">Column 2</span>\n      </th>\n      <th style="')).call(g,w,'">\n        <span style="')).call(m,E,'">Column 3</span>\n      </th>\n      <th style="')).call(h,w,'">\n        <span style="')).call(p,E,'">Column 4</span>\n      </th>\n      <th style="')).call(f,w,'">\n        <span style="')).call(d,E,'">Column 5</span>\n      </th>\n    </tr>\n    </thead\n    <tbody>\n      <tr>\n        <td style="')).call(u,k,'">\n          <span>Cell 1</span>\n        </td>\n        <td style="')).call(c,k,'">\n          <span>Cell 2</span>\n        </td>\n        <td style="')).call(l,k,'">\n          <span>Cell 3</span>\n        </td>\n        <td style="')).call(s,k,'">\n          <span>Cell 4</span>\n        </td>\n        <td style="')).call(a,k,'">\n          <span>Cell 5</span>\n        </td>\n      </tr>\n      <tr>\n        <td style="')).call(o,k,'">\n          <span>Cell 6</span>\n        </td>\n        <td style="')).call(i,k,'">\n          <span>Cell 7</span>\n        </td>\n        <td style="')).call(r,k,'">\n          <span>Cell 8</span>\n        </td>\n        <td style="')).call(n,k,'">\n          <span>Cell 9</span>\n        </td>\n        <td style="')).call(t,k,'">\n          <span>Cell 10</span>\n        </td>\n      </tr>\n    </tbody>\n  </table>\n    ')}};var Nr=[{id:Re(),paragraph:"<p><strong>You're the master of your life, the captain of your ship. Steer it with\n      intention. Will you skirt the coast from one safe harbor to the next? Or will you sail\n      into the vast open blue? Every day you get to decide anew what course to chart.</strong></p>"},{id:Re(),paragraph:"<p>Stop chasing <strong>your thoughts</strong> in circles. <strong>Open your eyes</strong>, breathe deeply,\n    and then <strong>pay attention</strong>. The air is sweet. <strong>The sun is warm</strong>. There's a path ahead.</p>"},{id:Re(),paragraph:"<p>You're the master of your life, the captain of your ship. Steer it with\n      intention. Will you skirt the coast from one safe harbor to the next? Or will you sail\n      into the vast open blue? Every day you get to decide anew what course to chart.</p>"}],Ir=[{id:Re(),paragraph:"<p><strong>When you’re on a new path but aren't sure where it leads, keep putting\n    one foot in front of the other. It's the only way you'll arrive.</strong></p>"}];var Mr=[{id:Re(),paragraph:"<p>Say yes more. Yes opens doors. No closes them. Yes pushes us. No keeps us safe at home. Imagine all the opportunities waiting for a yes.</p>"},{id:Re(),paragraph:"<p>Let go of expectation. You’ve done your best to prepare. Now, let go. There’s no one way your life should unfold. Enjoy the journey.</p>"},{id:Re(),paragraph:"<p>Welcome diversions. The most rewarding adventures often start with an unexpected detour. Perhaps that distraction will guide you onward.</p>"}];var jr=[{id:Re(),paragraph:"",caption:"",media:{image:{originalUrl:"bike.jpg",thumbnail:je()(Gt="".concat(nr,"/")).call(Gt,rr,"/bike_thumb.jpg"),src:je()(Xt="".concat(nr,"/")).call(Xt,rr,"/bike.jpg"),key:"".concat(rr,"/bike.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"ocean.jpg",thumbnail:je()(Qt="".concat(nr,"/")).call(Qt,rr,"/ocean_thumb.jpg"),src:je()(Zt="".concat(nr,"/")).call(Zt,rr,"/ocean.jpg"),key:"".concat(rr,"/ocean.jpg"),type:"image"}}},{id:Re(),caption:"",paragraph:"<p><strong>Finding a way</strong></p><p>Where the road leads, I will go. Along the stark desert, across the wide plains, into the deep forests I will follow the call of the world and embrace its ferocious beauty.</p>",media:{image:{originalUrl:"vw.jpg",thumbnail:je()(Jt="".concat(nr,"/")).call(Jt,rr,"/vw_thumb.jpg"),src:je()(en="".concat(nr,"/")).call(en,rr,"/vw.jpg"),key:"".concat(rr,"/vw.jpg"),type:"image"}}},{id:Re(),paragraph:"",caption:"<p><b>Dip your toes in the water. Laugh with us by the sea. Let your friends carry you on their good humor to the place where you ultimately belong.</b></p>",media:{image:{originalUrl:"city.jpg",thumbnail:je()(tn="".concat(nr,"/")).call(tn,rr,"/city_thumb.jpg"),src:je()(nn="".concat(nr,"/")).call(nn,rr,"/city.jpg"),key:"".concat(rr,"/city.jpg"),type:"image"}}}];var Lr=[{id:Re(),paragraph:"",caption:"",media:{image:{originalUrl:"beach.jpg",thumbnail:je()(rn="".concat(nr,"/")).call(rn,rr,"/beach_thumb.jpg"),src:je()(on="".concat(nr,"/")).call(on,rr,"/beach.jpg"),key:"".concat(rr,"/beach.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"concert.jpg",thumbnail:je()(an="".concat(nr,"/")).call(an,rr,"/concert_thumb.jpg"),src:je()(sn="".concat(nr,"/")).call(sn,rr,"/concert.jpg"),key:"".concat(rr,"/concert.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"underwater.jpg",thumbnail:je()(ln="".concat(nr,"/")).call(ln,rr,"/underwater_thumb.jpg"),src:je()(cn="".concat(nr,"/")).call(cn,rr,"/underwater.jpg"),key:"".concat(rr,"/underwater.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"field.jpg",thumbnail:je()(un="".concat(nr,"/")).call(un,rr,"/field_thumb.jpg"),src:je()(dn="".concat(nr,"/")).call(dn,rr,"/field.jpg"),key:"".concat(rr,"/field.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"night.jpg",thumbnail:je()(fn="".concat(nr,"/")).call(fn,rr,"/night_thumb.jpg"),src:je()(pn="".concat(nr,"/")).call(pn,rr,"/night.jpg"),key:"".concat(rr,"/night.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"beach_dusk.jpg",thumbnail:je()(hn="".concat(nr,"/")).call(hn,rr,"/beach_dusk_thumb.jpg"),src:je()(mn="".concat(nr,"/")).call(mn,rr,"/beach_dusk.jpg"),key:"".concat(rr,"/beach_dusk.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"sparkler.jpg",thumbnail:je()(gn="".concat(nr,"/")).call(gn,rr,"/sparkler_thumb.jpg"),src:je()(vn="".concat(nr,"/")).call(vn,rr,"/sparkler.jpg"),key:"".concat(rr,"/sparkler.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"amp.jpg",thumbnail:je()(yn="".concat(nr,"/")).call(yn,rr,"/amp_thumb.jpg"),src:je()(bn="".concat(nr,"/")).call(bn,rr,"/amp.jpg"),key:"".concat(rr,"/amp.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"cafe.jpg",thumbnail:je()(_n="".concat(nr,"/")).call(_n,rr,"/cafe_thumb.jpg"),src:je()(wn="".concat(nr,"/")).call(wn,rr,"/cafe.jpg"),key:"".concat(rr,"/cafe.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"record.jpg",thumbnail:je()(En="".concat(nr,"/")).call(En,rr,"/record_thumb.jpg"),src:je()(kn="".concat(nr,"/")).call(kn,rr,"/record.jpg"),key:"".concat(rr,"/record.jpg"),type:"image"}}},{id:Re(),caption:"",media:{image:{originalUrl:"tracks.jpg",thumbnail:je()(xn="".concat(nr,"/")).call(xn,rr,"/tracks_thumb.jpg"),src:je()(Sn="".concat(nr,"/")).call(Sn,rr,"/tracks.jpg"),key:"".concat(rr,"/tracks.jpg"),type:"image"}}}];var Pr={accordion:{title:"",description:"",media:{}},button:{type:"",label:"Go to location",destination:"",description:"<p><b>Location</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},"button stack":{type:"",label:"Go to location",destination:"",description:"<p><b>Location</b><br/> This location can be a URL, another lesson, or an email address.\n      You can type a description here.</p>"},flashcard:{front:{type:"description",description:"Front of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(Tn="".concat(nr,"/")).call(Tn,rr,"/mountains_thumb.jpg"),src:je()(Cn="".concat(nr,"/")).call(Cn,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(On="".concat(nr,"/")).call(On,rr,"/mountains_thumb.jpg"),src:je()(An="".concat(nr,"/")).call(An,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}}},quote:{paragraph:"",name:"",avatar:{media:{image:{originalUrl:"avatar.jpg",src:je()(Nn="".concat(nr,"/")).call(Nn,rr,"/avatar.jpg"),key:"".concat(rr,"/avatar.jpg"),thumbnail:je()(In="".concat(nr,"/")).call(In,rr,"/avatar_thumb.jpg"),type:"image"}}},background:{media:{image:{originalUrl:"quote_background.jpg",src:je()(Mn="".concat(nr,"/")).call(Mn,rr,"/quote_background.jpg"),key:"".concat(rr,"/quote_background.jpg"),thumbnail:je()(jn="".concat(nr,"/")).call(jn,rr,"/quote_background_thumb.jpg"),type:"image"}}}},slider:{title:"",description:"",media:{}},stack:{front:{type:"description",description:"Front of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(Ln="".concat(nr,"/")).call(Ln,rr,"/mountains_thumb.jpg"),src:je()(Pn="".concat(nr,"/")).call(Pn,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}},back:{type:"description",description:"Back of card",media:{image:{originalUrl:"mountains.jpg",thumbnail:je()(Dn="".concat(nr,"/")).call(Dn,rr,"/mountains_thumb.jpg"),src:je()(Rn="".concat(nr,"/")).call(Rn,rr,"/mountains.jpg"),key:"".concat(rr,"/mountains.jpg"),type:"image"}}}},tabs:{title:"",description:"",media:{}}};var Dr=function(e,t,n){var r=n[e];return P()(function(e){return e.id===t},r.items)},Rr=n(237),Fr=n(91),Br=n(153),Ur=n.n(Br),qr=n(275),zr=n.n(qr),Hr=n(86),Wr=n.n(Hr),$r=n(148),Yr=Hn()("rise/track/")("TRACK"),Vr=zr()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Object($r.i)(),userRole:Object($r.e)(),subId:Object($r.h)(),subPlan:Object($r.f)(),subStatus:Object($r.g)()}}),Kr=(pe()(Wr()(Ur()("author"),b()({author:Object($r.c)()})),ke()(m()(Wn.e),Vr),Fr.a.send(Yr)),n(101));n.d(t,"h",function(){return Xr}),n.d(t,"a",function(){return Qr}),n.d(t,"b",function(){return Zr}),n.d(t,"c",function(){return Jr}),n.d(t,"d",function(){return ei}),n.d(t,"e",function(){return ti}),n.d(t,"f",function(){return ni}),n.d(t,"g",function(){return ii}),n.d(t,"i",function(){return oi});Fr.a.send(Kr.a),Object(d.action)(Kr.d),Fr.a.send(Kr.c),Object(d.action)(Kr.f),Fr.a.send(Kr.h),Fr.a.send(Kr.j),Fr.a.send(Kr.k),Object(d.action)(Kr.k);var Gr=pe()(j()(ve()("pending")),me()("id"),we.a),Xr=(pe()(Gr,G.a,Q()(0)),Object(Rr.a)([Object(d.action)(Kr.k),Fr.a.debounce(500,Kr.l)])),Qr=function(e){return function(t,n){var r=e.lessonId,i=e.blockId,o=e.index,a=e.item,s=e.itemFactory,l=n().lessons,c=l[r].items,u=Dr(r,i,l),d=V()(o)?v.a:H()(o),f=w()("isNewlyInserted",!0,a),p=$()(s)?s(f):te()({id:Re()},f),h={itemId:i,lessonId:r,items:c,payload:{items:Object(Oe.c)(u,ve()("items"),J()(se()(["isNewlyInserted"])),d(p))}};Object(Oe.a)(t,oi,h)}},Zr=function(e){return function(t,n){var r=e.lessonId,i=e.blockId,o=e.itemId,a=e.payload,s=n().lessons,l=s[r].items,c=Dr(r,i,s),u=te()({id:Re(),isNewlyInserted:!0},a),d=S()(p()(1),R()(be()("id",o))),f=Object(Oe.a)(d,ve()("items"),c),h={itemId:i,lessonId:r,items:l,payload:{items:Object(Oe.a)(H()(f,u),ve()("items"),c)}};Object(Oe.a)(t,oi,h)}},Jr=function(e){return function(t,n){return Object(Oe.c)(n(),ce()(["lessons",e.lessonId,"items"]),H()(e.index,e.payload),ri(e.lessonId),t)}},ei=function(e){return function(t,n){var r=e.blockId,i=e.itemId,o=e.lessonId,a=e.showNotification,s=n().lessons[o].items,l=function(e){return Object(Oe.c)(s,P()(be()("id",r)),e,ve()("items"))},c=l(I()({items:Object(Se.b)(i)})),u=l(B.a),d=function(e){return{itemId:r,lessonId:o,items:s,payload:{items:e}}},f=Object(We.a)({message:"Item removed",action:function(){return Object(Oe.a)(t,oi,d,u)},actionText:"undo"});Object(Oe.c)(c,d,oi,oe.a,ke()(m()(a),v()([f])),t)}},ti=q()(ve()("refs"),function(e){return function(t,n){var r=e.asset,i=e.existingMediaType,o=e.hasRemovableMedia,a=e.itemId,s=e.lessonId,l=e.type,c=n().lessons[s],u=e.refs||"items:".concat(a),d=pe()(k()(["media",l],r),A()(["media","tmp",l]),ke()(m()(o),A()(["media",i])));Object(Oe.c)(c,de()(["id","items"]),Ce(d,u),Xr,t)}},function(e){return function(t,n){var r=e.asset,i=e.lessonId,o=e.type,a=n().lessons[i];Object(Oe.c)(a,de()(["id","media"]),k()(["media",o],r),A()(["media","tmp",o]),Xr,t)}}),ni=function(e){return function(t,n){var r=e.blockId,i=e.from,o=e.lessonId,a=e.to,s=n().lessons[o].items,l={itemId:r,lessonId:o,items:s,payload:{items:Object(Oe.c)(s,P()(be()("id",r)),ve()("items"),Object(Se.c)(i,a))}};Object(Oe.a)(t,oi,l)}},ri=C()(2,function(e,t){return Object(Oe.c)(t,re()("items"),w()("id",e),Xr)}),ii=(C()(2,function(e,t){return Object(Oe.c)(t,re()("piles"),w()("id",e),Xr)}),function(e){return function(t,n){var r=e.blockId,i=e.itemId,o=e.lessonId,a=e.payload,s=ce()(["lessons",o,"items"],n()),l={itemId:r,lessonId:o,items:s,payload:{items:Object(Oe.c)(s,P()(be()("id",r)),I()({items:Object(Se.d)(i,a)}),ve()("items"))}};Object(Oe.a)(t,oi,l)}}),oi=function(e){return function(t,n){return Object(Oe.c)(n(),ce()(["lessons",e.lessonId,"items"]),Object(Se.d)(e.itemId,e.payload),ri(e.lessonId),t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return q}),n.d(t,"a",function(){return z});var r=n(234),i=n(139),o=n.n(i),a=n(6),s=n.n(a),l=n(138),c=n.n(l),u=n(33),d=n.n(u),f=n(577),p=n.n(f),h=n(584),m=n.n(h),g=n(578),v=n.n(g),y=n(296),b=n.n(y),_=n(23),w=n.n(_),E=n(579),k=n.n(E),x=n(41),S=n.n(x),T=n(580),C=n.n(T),O=n(86),A=n.n(O),N=n(32),I=n.n(N),M=(n(107),n(1296)),j=n(1176),L=n(481),P=n(1177),D=n(64),R=n(1295),F=n(734),B=[C.a,k.a,v()("run"),p.a,D.b],U=(e.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,(0,s.a)(r.a.apply(void 0,B))),q=Object(r.d)(R.a,U),z=q.dispatch,H=s()(m.a,S()(null,"payload")),W=b()(["payload","sender"],F.a.session),$=A()(o()(H,W),w()(I()(H,d()({payload:c()("sender")})),M.a,j.a,L.a,P.a,z));F.a.on("action",$)}).call(this,n(69))},function(e,t,n){var r=n(1907),i=1,o=4;e.exports=function(e){return r(e,i|o)}},function(e,t,n){var r=n(348),i=n(87),o=n(34),a=n(1530);e.exports=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))})},function(e,t,n){var r=n(87),i=n(19),o=n(863),a=n(8);e.exports=r(function(e){return o(a(e),i(e))})},function(e,t,n){var r=n(379),i=n(34);e.exports=i(function(e,t){var n={};for(var i in t)r(i,e)||(n[i]=t[i]);return n})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"c",function(){return m});var r=n(15),i=n.n(r),o=n(18),a=n.n(o),s=n(60),l=n.n(s),c=n(719),u=n.n(c),d=l()(2,function(e,t){return{type:e,payload:t}}),f=(l()(2,function(e,t){return[t,e]}),l()(2,function(e,t){return{type:e,payload:t,error:!0}}),function(e){var t=e.dispatch;return function(e){return function(n){"function"!=typeof i()(n)?e(n):i()(n).call(n,t)}}}),p=l()(2,function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=arguments.length>1?arguments[1]:void 0,i=r.type,o=r.payload,a=r.error;return t[i]?t[i](n,o,a):n}}),h=function(e){var t;return i()(t=u()(e)).call(t,a()({type:"SIDE_EFFECT"}))},m=a()(h(function(){return location.href="/"}))},function(e,t,n){"use strict";n.d(t,"c",function(){return Ge}),n.d(t,"b",function(){return Qe}),n.d(t,"e",function(){return Ze}),n.d(t,"a",function(){return Je}),n.d(t,"g",function(){return et}),n.d(t,"f",function(){return lt});var r,i=n(206),o=n.n(i),a=n(71),s=n(123),l=n(5),c=n(160),u=n.n(c),d=n(18),f=n.n(d),p=n(19),h=n.n(p),m=n(43),g=n.n(m),v=n(6),y=n.n(v),b=n(28),_=n.n(b),w=n(207),E=n.n(w),k=n(60),x=n.n(k),S=n(138),T=n.n(S),C=n(320),O=n.n(C),A=n(124),N=n.n(A),I=n(46),M=n.n(I),j=n(263),L=n.n(j),P=n(36),D=n.n(P),R=n(473),F=n.n(R),B=n(106),U=n.n(B),q=n(51),z=n.n(q),H=n(75),W=n.n(H),$=n(61),Y=n.n($),V=n(17),K=n.n(V),G=n(321),X=n.n(G),Q=n(77),Z=n.n(Q),J=n(53),ee=n.n(J),te=n(140),ne=n.n(te),re=n(26),ie=n.n(re),oe=n(42),ae=n.n(oe),se=n(23),le=n.n(se),ce=n(8),ue=n.n(ce),de=n(14),fe=n.n(de),pe=n(82),he=n.n(pe),me=n(132),ge=n.n(me),ve=n(1142),ye=n.n(ve),be=n(109),_e=n.n(be),we=n(67),Ee=n.n(we),ke=n(86),xe=n.n(ke),Se=n(32),Te=n.n(Se),Ce=n(64),Oe=n(300),Ae=n(476),Ne=n(477),Ie=n(367),Me=n(410),je=n(421),Le=n(478),Pe=n(81),De=u()(he.a),Re=_()("rise/course/"),Fe=Re("BOOKMARK_LESSON"),Be=Re("COMPLETE_LESSON_PROGRESS"),Ue=Re("RESET_LESSON_PROGRESS"),qe=Re("UPDATE_LESSON_PROGRESS"),ze=function(e){return function(t,n){var r=n.id;switch(n.type){case"blocks":return e(t,{id:r,updateFn:Oe.a});case"embed":return e(t,{id:r,updateFn:Ae.a});case"map":return e(t,{id:r,updateFn:Ne.b});case"process":return e(t,{id:r,updateFn:Ie.a});case"sorting":return e(t,{id:r,updateFn:Me.a});case"timeline":return e(t,{id:r,updateFn:je.b});case"video":return e(t,{id:r,updateFn:Le.a});default:return t}}},He=ee()(Y()("passingScore"),xe()(F.a,f()(0))),We=y()(He,ae()(["id","passed","score","passingScore"])),$e=function(e){return y()(Pe.n,We)(e)},Ye=function(e){var t=e.id,n=e.updateFn;return ee()(W()(["lessons",t]),y()(h()("id",t),n))},Ve=function(e,t){var n=t.id,r=t.type,i=t.updateFn;return le()(Ke({id:n,type:r,updateFn:i}),_e()(y()(Pe.c,ue()("percentComplete"))))(e)},Ke=function(e){var t=e.id,n=e.type,r=e.updateFn;return function(e){return le()(Ye({id:t,updateFn:r}),Te()(function(e,t){var n=e.id,r=e.type;return N()(at(n,t),function(e){return function(t){var n=t.lessons,r=t.currentLesson;return"quiz"===e&&100===n[r].percentComplete}}(r))}({id:t,type:n},e),ft),_e()(function(e){return y()(Pe.o,ie()(["lessons",e]))}(t)),_e()(function(e){return y()(Te()(fe()("percentComplete",100),$e),ie()(["lessons",e]))}(t)))(e)}},Ge=ze(L()(Ye)),Xe=ze(Ve);t.d=Object(Ce.d)({lessons:{},percentComplete:0},(r={},Object(l.a)(r,Fe,function(e,t){return y()(_e()(ne()(Pe.a,[t])),h()("currentLesson",t))(e)}),Object(l.a)(r,Be,Xe),Object(l.a)(r,"rise/course/LOAD_COURSE",function(e,t){return K()(e,Object(Pe.f)(tt(t)))}),Object(l.a)(r,Ue,function(e,t){var n=t.id;switch(t.type){case"blocks":return Ve(e,{id:n,updateFn:Oe.c});case"embed":return Ve(e,{id:n,updateFn:Ae.b});case"map":return Ve(e,{id:n,updateFn:Ne.c});case"process":return Ve(e,{id:n,updateFn:Ie.c});case"sorting":return Ve(e,{id:n,updateFn:Me.c});case"timeline":return Ve(e,{id:n,updateFn:je.c});case"video":return Ve(e,{id:n,updateFn:Le.b});default:return e}}),Object(l.a)(r,qe,Ve),r));var Qe=Object(Ce.a)(Be),Ze=Object(Ce.a)(Ue),Je=Object(Ce.a)(Fe),et=Object(Ce.a)(qe),tt=le()(ae()(["course"]),function(e){return le()(ie()(["course","lessons"]),De(it,{}),Z()("lessons"),K()(e))(e)},T()("course")),nt=function(e){var t=e.id,n=e.type,r=e.settings.passingScore;return Te()(function(e){var t=e.type,n=e.passingScore;return function(){return"quiz"===t&&!D()(n)}}({type:n,passingScore:r}),ee()(W()([t]),g()({passingScore:r})))},rt=function(e){var t=e.id,n=e.index,r=e.items,i=e.settings,o=void 0===i?{}:i,a=e.type;return le()(h()(t,{index:n,id:t}),nt({id:t,type:a,settings:o}),xe()(function(e){return function(){return D()(e)}}(r),function(e){var t=e.id,n=e.items;return function(e){return ge()(W()([t,"items"]),De(it,{},n),e)}}({id:t,items:r})))},it=function(e,t,n){var r=t.type,i=Object(s.a)(t,["type"]);return xe()(function(e){return function(){return"section"===e}}(r),rt(Object(a.a)({index:n,type:r},i)))(e)},ot=x()(3,function(e,t,n){return e(t)!==e(n)}),at=function(e,t){return ot(ie()(["lessons",e,"isComplete"]),t)},st=function(e){var t=e.key,n=e.percent;return function(e){return h()(n,le()(ue()("items"),Ee.a,M()(fe()(t,!0)),z.a,L()(O.a)(y()(z.a,U.a,ue()("items"))(e)),X()(100),Math.round)(e),e)}},lt=st({key:"isComplete",percent:"percentComplete"}),ct=(st({key:"isViewed",percent:"percentViewed"}),E()(ue.a,[ue()("currentLesson"),ue()("lessons")])),ut=y()(We,ct),dt=function(e){return ye()(Pe.m,ut,e)},ft=function(e){return le()(ge()(Y()("percentComplete"),pt(e)),_e()(dt))(e)},pt=function(e){var t=e.lessons;return Math.round(z()(o()(M()(ue()("isComplete"),t)))/z()(o()(t))*100)}},function(e,t,n){"use strict";var r=n(573),i=n(572),o=n.n(i);var a=n(574);function s(e,t){return Object(r.a)(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var s,l=o()(e);!(r=(s=l.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(i)throw a}}return n}(e,t)||Object(a.a)()}n.d(t,"a",function(){return s})},function(e,t,n){var r=n(87),i=n(106);e.exports=r(function(e){for(var t=i(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),i=function(e,t){return r.test(t)?t:e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(144),i=n(342).f,o=n(802),a=n(118),s=n(375),l=n(246),c=n(193),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,d,f,p,h,m,g,v,y=e.target,b=e.global,_=e.stat,w=e.proto,E=b?r:_?r[y]:(r[y]||{}).prototype,k=b?a:a[y]||(a[y]={}),x=k.prototype;for(f in t)n=!o(b?f:y+(_?".":"#")+f,e.forced)&&E&&c(E,f),h=k[f],n&&(m=e.noTargetGet?(v=i(E,f))&&v.value:E[f]),p=n&&m?m:t[f],n&&typeof h==typeof p||(g=e.bind&&n?s(p,r):e.wrap&&n?u(p):w&&"function"==typeof p?s(Function.call,p):p,(e.sham||p&&p.sham||h&&h.sham)&&l(g,"sham",!0),k[f]=g,w&&(c(a,d=y+"Prototype")||l(a,d,{}),a[d][f]=p,e.real&&x&&!x[f]&&l(x,f,p)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n(228),i=n.n(r),o=n(465),a=n.n(o),s=n(229),l=n.n(s),c=n(4),u=n.n(c),d=n(407),f=n.n(d),p=n(206),h=n.n(p),m=n(5);function g(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{},o=h()(r);if("function"==typeof f.a)o=u()(o).call(o,l()(n=f()(r)).call(n,function(e){return a()(r,e).enumerable}));i()(o).call(o,function(t){Object(m.a)(e,t,r[t])})}return e}},function(e,t,n){var r=n(87),i=n(1683),o=n(40);e.exports=r(function(e){return null!=e&&o(e,i(e))})},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,o=String(e);return(n=r[o.toLowerCase()])?n:(n=i[o.toLowerCase()])||(1===o.length?o.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var o;if(o=r[t.toLowerCase()])return o===n;if(o=i[t.toLowerCase()])return o===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
/*!
 * Programatically add the following
 */
for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]},function(e,t){e.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(e,t,n){var r=n(87),i=n(177),o=n(863),a=n(26);e.exports=r(function(e){return o(a(e),i(e))})},function(e,t,n){var r=n(18);e.exports=r(!0)},function(e,t,n){var r=n(34);e.exports=r(function(e,t){var n={};return n[e]=t,n})},function(e,t,n){"use strict";n.d(t,"b",function(){return te}),n.d(t,"f",function(){return ne}),n.d(t,"i",function(){return re}),n.d(t,"j",function(){return ie}),n.d(t,"e",function(){return oe}),n.d(t,"d",function(){return se}),n.d(t,"c",function(){return le}),n.d(t,"a",function(){return ce}),n.d(t,"g",function(){return de}),n.d(t,"h",function(){return fe});var r=n(15),i=n.n(r),o=n(467),a=n.n(o),s=n(572),l=n.n(s),c=n(66),u=n(5),d=n(146),f=n.n(d),p=n(178),h=n.n(p),m=n(294),g=n.n(m),v=n(322),y=n.n(v),b=n(474),_=n.n(b),w=n(1143),E=n.n(w),k=n(6),x=n.n(k),S=n(79),T=n.n(S),C=n(120),O=n.n(C),A=n(60),N=n.n(A),I=n(40),M=n.n(I),j=n(46),L=n.n(j),P=n(48),D=n.n(P),R=n(361),F=n.n(R),B=n(408),U=n.n(B),q=n(106),z=n.n(q),H=n(51),W=n.n(H),$=n(231),Y=n.n($),V=n(35),K=n.n(V),G=n(575),X=n.n(G),Q=n(264),Z=n.n(Q),J=O()(function(e,t,n){var r;return f()([],n,(r={},Object(u.a)(r,e,n[t]),Object(u.a)(r,t,n[e]),r))}),ee=y()(function(e){var t=Object(c.a)(e,2),n=t[0],r=t[1];return M()(Number(n),Number(r))}),te=x()(ee,Z.a),ne=function(e){return function(t,n){var r=Object(c.a)(n,2),i=r[0],o=r[1],a=U()(Number(i),t),s=U()(Number(o),e);return a===s?t:J(a,s,t)}},re=x()(X()(0),W.a);function ie(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=l()(t);!(r=(a=s.next()).done);r=!0){var c=a.value;if(n.push(c),e(c))break}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}var oe=N()(2,function(e,t){return x()(F.a,K()(g()(e,1)),Z.a)(t)}),ae=N()(2,function(e,t){return x()(F.a,L()(E()(e)),Z.a)(t)}),se=N()(2,function(e,t){return x()(z.a,ae(function(e,n){return t(n)}))(e)}),le=N()(2,function(e,t){return L()(x()(D()(T.a)(t),e))}),ce=_()(Y()(h.a,0)),ue=x()(a.a,Array),de=O()(function(e,t){var n;return i()(n=ue(t)).call(n,function(){return e})}),fe=O()(function(e,t,n,r){var o;return i()(o=ue(n)).call(o,function(n,i){return i===r?t:e})})},function(e,t,n){var r=n(379),i=n(34);e.exports=i(r)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(10),i=n(7),o=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,null,[{key:"isChrome",get:function(){return!(!window||!window.navigator)&&(/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor))}},{key:"isSafari",get:function(){return!(!window||!window.navigator)&&(/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor))}},{key:"isIphoneSafari",get:function(){if(!window||!window.navigator)return!1;var e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/CriOS/.test(window.navigator.userAgent);return e&&t&&!n}},{key:"isSafari9",get:function(){if(!window||!window.navigator)return!1;var e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),t=/version\/9./i.test(window.navigator.userAgent);return e&&t}},{key:"isIe11",get:function(){return!(!window||!Object.hasOwnProperty.call(window,"ActiveXObject")||window.ActiveXObject)}},{key:"isEdge",get:function(){return!(!window||!window.navigator)&&/Edge/.test(window.navigator.userAgent)}},{key:"isMobile",get:function(){return!(!window||!window.navigator)&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}]),e}()},function(e,t,n){"use strict";var r,i,o,a=n(141),s=n.n(a),l=n(96),c=n.n(l),u=n(8),d=n.n(u),f=n(48),p=n.n(f),h=n(95),m=n(5),g=n(6),v=n.n(g),y=n(33),b=n.n(y),_=n(46),w=n.n(_),E=n(212),k=n.n(E),x=n(35),S=n.n(x),T=n(121),C=n.n(T),O=n(360),A=n.n(O),N=n(197),I=n.n(N),M=n(14),j=n.n(M),L=n(67),P=n.n(L),D=function(e){return v()(h.e,e)},R=function(e,t,n){return(e[t]||e.MULTIPLE_CHOICE)(n)},F=function(e){var t=e.startTime;return e.stopTime-t},B=function(e){return R({FILL_IN_THE_BLANK:G,MATCHING:ne,MULTIPLE_CHOICE:H,MULTIPLE_RESPONSE:H},Y(e),e)},U=function(e){return R({FILL_IN_THE_BLANK:G,MATCHING:ne,MULTIPLE_CHOICE:X,MULTIPLE_RESPONSE:Z},Y(e),e)},q=function(e){var t=e.item,n=e.itemProgress,r={FILL_IN_THE_BLANK:D(d()("text")),MATCHING:re(t),MULTIPLE_CHOICE:Q(t),MULTIPLE_RESPONSE:J(t)};return R(r,Y(t),n)},z=function(e){return[e]},H=v()(S()((r="title",b()(Object(m.a)({},r,h.e)))),d()("answers")),W=D(d()("id")),$=D(d()("title")),Y=d()("type"),V=function(e){return function(t){return w()(j()("id",t),H(e))}},K=function(e){return p()(A.a)(H(e))},G=v()(I()("title"),H),X=function(e){return v()(V(e),d()("correct"))(e)},Q=function(e){return v()(z,K(e),d()("selectedIndex"))},Z=function(e){return v()(k.a,S()(V(e)),d()("corrects"))(e)},J=function(e){return v()(k.a,S()(K(e)),d()("selectedIndices"))},ee=function(e){var t=e.sourceId,n=e.sourceTitle,r=e.targetId,i=e.targetTitle;return{source:{id:"source_".concat(t),title:n},target:{id:"target_".concat(r),title:i}}},te=D(d()("matchTitle")),ne=v()(S()(function(e){var t=W(e);return ee({sourceId:t,sourceTitle:$(e),targetId:t,targetTitle:te(e)})}),H),re=function(e){return v()(P.a,C()(function(e){return function(t,n){var r=K(e)(n),i=K(e)(t);return ee({sourceId:W(r),sourceTitle:$(r),targetId:W(i),targetTitle:te(i)})}}(e)),d()("matches"))},ie=n(146),oe=n.n(ie),ae=n(1138),se=n.n(ae),le=n(206),ce=n.n(le),ue=n(159),de=n.n(ue),fe=n(71),pe=n(123),he=n(4),me=n.n(he),ge=n(156),ve=n(17),ye=n.n(ve),be="p",_e="i",we=n(65),Ee=n(265),ke=n(1146),xe=n(32),Se=n.n(xe)()(function(e){return void 0!==e},v()(JSON.parse,ke.Base64.decode)),Te=function(e,t){return window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t},Ce=n(19),Oe=n.n(Ce),Ae=n(83),Ne=n.n(Ae),Ie=n(45),Me=n.n(Ie),je=n(72),Le=n.n(je),Pe=n(36),De=n.n(Pe),Re=n(106),Fe=n.n(Re),Be=n(136),Ue=n.n(Be),qe=n(61),ze=n.n(qe),He=n(235),We=n.n(He),$e=n(42),Ye=n.n($e),Ve=n(41),Ke=n.n(Ve),Ge=n(132),Xe=n.n(Ge),Qe=n(86),Ze=n.n(Qe),Je=function(e){return!!e},et=(i={},Object(m.a)(i,"a",["activeIndex",Me.a]),Object(m.a)(i,"c",["isComplete",Je]),Object(m.a)(i,"n",["correctlyAnswered",Me.a]),Object(m.a)(i,be,["percentComplete",Me.a]),Object(m.a)(i,"r",["retryAttempts",Me.a]),Object(m.a)(i,"s",["score",Me.a]),Object(m.a)(i,"t",["currentTime",Me.a]),Object(m.a)(i,"v",["percentViewed",Me.a]),Object(m.a)(i,"rr",["reportResults",Me.a]),Object(m.a)(i,"pq",["passed",Me.a]),Object(m.a)(i,"ps",["passingScore",Me.a]),i),tt=function(e){return function(t){var n=e[t.index];return Ze()(function(){return De()(n)},function(){return v()(ye()(t),We.a,P.a,C()(function(e){return function(t,n){var r=Ue()(it[n])(t);return n===_e&&(r=r(d()("items",e))),Object(m.a)({},Ne()(it[n]),r)}}(t)))(n)})(t)}},nt=function(e){return S()(tt(e))},rt=function(e){return function(t){var n=d()(_e,e),r=d()("items",t);return v()(ye()(t),Ze()(function(){return Le()(n)},Xe()(ze()("items"),nt(n)(r))),We.a,P.a,C()(function(e){return function(t,n){return Oe()([Ne()(et[n])],Ue()(et[n])(t),e)}}(t)))(Ye()(Fe()(et),e))}};var it=(o={},Object(m.a)(o,"n",["correctlyAnswered",Me.a]),Object(m.a)(o,"c",["isComplete",Je]),Object(m.a)(o,"k",["isCorrect",Je]),Object(m.a)(o,"v",["isViewed",Je]),Object(m.a)(o,_e,["items",nt]),Object(m.a)(o,"pv",["percentViewed",Me.a]),Object(m.a)(o,"m",["matches",Me.a]),Object(m.a)(o,"s",["selectedIndex",Me.a]),Object(m.a)(o,"x",["selectedIndices",Me.a]),Object(m.a)(o,"t",["text",Me.a]),o),ot=n(77),at=n.n(ot),st=n(112),lt=n.n(st),ct={activeIndex:["a",Me.a],correctlyAnswered:["n",Me.a],currentTime:["t",Me.a],isComplete:["c",Number],passingScore:["ps",Me.a],percentComplete:[be,Me.a],percentViewed:["v",Me.a],retryAttempts:["r",Me.a],score:["s",Me.a],reportResults:["rr",Me.a],passed:["pq",Me.a]},ut=function(e,t){return Object(m.a)({},Ne()(ht[t]),Ue()(ht[t])(e))},dt=v()(We.a,P.a,S()(function(e){return v()(Ze()(Le.a,at()(d()("index",e))),We.a,P.a,C()(ut))(lt()(Le.a,Ye()(Fe()(ht),e)))})),ft=function(e,t){return Object(m.a)({},Ne()(ct[t]),Ue()(ct[t])(e))};var pt=v()(at()(be),Ke()(0,"percentComplete")),ht={correctlyAnswered:["n",Me.a],isComplete:["c",Number],isCorrect:["k",Number],isViewed:["v",Number],items:[_e,dt],matches:["m",Me.a],percentViewed:["pv",Me.a],selectedIndex:["s",Me.a],selectedIndices:["x",S()(Number)],text:["t",Me.a]},mt=function(e){return(window.env||{})[e]},gt={fetch:function(){if(bt.isExport||window.courseData||window.course)return Te(Se,{});var e,t,n;return Object(ge.b)({method:"GET",url:window.shareId?me()(e="".concat(mt("RISE_RUNTIME_URI"),"/boot/share/")).call(e,window.shareId):window.contentId?me()(t="".concat(mt("RISE_RUNTIME_URI"),"/boot/businessContent/")).call(t,window.contentId):me()(n="".concat(mt("RISE_RUNTIME_URI"),"/boot/")).call(n,window.courseId),json:!0,withCredentials:!0}).then(d()("body")).then(Se)},getEnv:mt,isPasswordProtected:function(){return!!window.shareId&&!!window.hasPassword},isShare:function(){return!!window.shareId},resolvePath:function(e){var t;return me()(t="".concat(mt("CDN_USER_CONTENT_URI"),"/")).call(t,e)},verifySharePassword:function(e){return Object(ge.b)({method:"POST",url:"".concat(mt("RISE_RUNTIME_URI"),"/password"),data:{shareId:window.shareId,password:e},json:!0}).then(d()("body"))}},vt=function(e,t){return e+((t||{}).c||0)},yt=function(e,t){return function(n,r){var i=r.id,o=r.type,a=Object(pe.a)(r,["id","type"]);return t.lessons[i]?ye()(n,e(function(e,t){var n=t.id,r=t.type,i=Object(pe.a)(t,["id","type"]);return"quiz"===r?Object(Ee.a)(e,Object(fe.a)({id:n},i)):Object(we.c)(e,{id:n,type:r})}(t,Object(fe.a)({id:i,type:o},a)).lessons[i])):n}};window.Rise=oe()(window.Rise||{},{completeLessons:function(e,t,n){var r,i=de()(t).call(t,yt(e,n),{}),o=ce()(n.lessons||{}).length,a=de()(r=se()(i)).call(r,vt,0);return{lessons:i,p:Math.round(a/o*100)}},decodeCourseProgress:function(e,t){var n=d()("lessons",t);return Ze()(function(){return Le()(n)},v()(Oe()("percentComplete",Ke()(0,be,t)),b()({lessons:S()(function(e){var t=d()(e.index,n);return Ze()(function(){return De()(t)},rt(t))(e)})})))(e)},encodeCourseProgress:pt,encodeLessonProgress:function(e){var t=d()("items",e),n=d()("index",e);return v()(at()(n),Ze()(function(){return Le()(t)},Xe()(ze()(_e),dt(t))),We.a,P.a,C()(ft))(Ye()(Fe()(ct),e))}});var bt=ye()(gt,window.Runtime||{}),_t=bt;n.d(t,"j",function(){return Et}),n.d(t,"b",function(){return kt}),n.d(t,"a",function(){return xt}),n.d(t,"f",function(){return St}),n.d(t,"n",function(){return Tt}),n.d(t,"o",function(){return Ct}),n.d(t,"m",function(){return Ot}),n.d(t,"c",function(){return At}),n.d(t,"d",function(){return Nt}),n.d(t,"e",function(){return It}),n.d(t,"g",function(){return Mt}),n.d(t,"i",function(){return jt}),n.d(t,"h",function(){return Lt}),n.d(t,"l",function(){return Pt}),n.d(t,"q",function(){return Dt}),n.d(t,"k",function(){return Rt}),n.d(t,"p",function(){return Ft});p()(d.a)(window.env||{});var wt=function(e){return _t&&_t[e]};function Et(e){if(wt("onCreateHistory"))return _t.onCreateHistory(e)}function kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return wt("fetch")?c.a.resolve(_t.fetch()):c.a.resolve(e)}function xt(e){if(wt("bookmark"))return _t.bookmark(e)}function St(e){return wt("getProgress")?_t.getProgress(e):e}function Tt(e){return wt("setLessonComplete")?_t.setLessonComplete(e):e}function Ct(e){return wt("setLessonProgress")?_t.setLessonProgress(e):e}function Ot(e,t){return wt("setCourseProgress")?_t.setCourseProgress(e,t):e}function At(e){if(wt("finish"))return _t.finish(e)}function Nt(e,t,n){wt("finishQuiz")&&_t.finishQuiz(e,t,n)}function It(e,t,n,r){wt("finishStoryline")&&_t.finishStoryline(e,t,n,r)}function Mt(){return wt("isComplete")?_t.isComplete():null}function jt(){return!!wt("isShare")&&_t.isShare()}function Lt(){return!!wt("isPasswordProtected")&&_t.isPasswordProtected()}function Pt(e){var t=e||"";return wt("resolvePath")?s()(t).call(t,"http")||s()(t).call(t,"data:")||s()(t).call(t,"//")?t:_t.resolvePath(t):s()(t).call(t,"data:")||s()(t).call(t,"http")||s()(t).call(t,"//")?t:"/".concat(t)}function Dt(e){return wt("verifySharePassword")?_t.verifySharePassword(e):c.a.resolve({isValid:!0})}function Rt(e){if(wt("reportAnswer")){var t=e.id,n=e.isCorrect,r=e.item,i=e.itemProgress,o=e.duration,a=e.retryAttempts,s=e.title,l=r.id,c=r.title,u=r.type;return _t.reportAnswer({id:t,type:u,isCorrect:n,itemId:l,questionTitle:Object(h.e)(c),quizTitle:Object(h.e)(s),retryAttempts:a,answers:B(r),correctResponse:U(r),response:q({item:r,itemProgress:i}),latency:F(o)})}return!1}function Ft(e){if(wt("startLesson"))return _t.startLesson(e)}},function(e,t,n){var r=n(129),i=n(351);e.exports=r(i)},function(e,t,n){var r=n(360);e.exports=r(0)},function(e,t,n){"use strict";var r=s(n(1771)),i=s(n(1775)),o=s(n(884)),a=s(n(881));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"f",function(){return o}),n.d(t,"g",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"e",function(){return u});var r="group",i="heading",o="tablist",a="tabpanel",s="tab",l="radiogroup",c="radio",u=function(e){var t=e.element,n=e.isHidden;t&&t.setAttribute("aria-hidden",n)}},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){return e(n)?n:t(n)})},function(e,t,n){var r=n(521);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){"use strict";n.d(t,"c",function(){return m}),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return v});var r=n(4),i=n.n(r),o=n(153),a=n.n(o),s=n(392),l=n.n(s),c=n(29),u=Object(c.c)("CDN_USER_CONTENT_URI"),d=a()("useCrushedKey"),f=Object(c.c)("IMAGES_URI"),p=l()(/-stock[-_]image.jpg/),h=(Object(c.c)("RBC_IMAGES_URI"),function(e){var t=e.crushedKey,n=e.key,r=e.useCrushedKey,i=e.src;return d(e)?r&&t?Object(c.g)(t):Object(c.g)(n):Object(c.g)(i)}),m=function(e){var t,n;if(!e||!e.key)return"";var r=e.crushedKey,o=e.key,a=e.useCrushedKey;return f?d(e)&&a&&r?i()(t="".concat(f,"/f:jpg,b:fff,s:cover,t:true,w:340/")).call(t,r):i()(n="".concat(f,"/f:jpg,b:fff,s:cover,t:true,w:340/")).call(n,o):h(e)},g=function(e){var t;if(!e||!e.key)return"";var n,r,o,a=e.crushedKey,s=e.key,l=e.useCrushedKey;return f?p(s)?i()(n="".concat(f,"/f:jpg,a:retain,b:fff,w:1680,q:65/")).call(n,s):d(e)?l&&a?i()(r="".concat(u,"/")).call(r,a):i()(o="".concat(u,"/")).call(o,s):i()(t="".concat(f,"/f:jpg|png,a:retain,b:fff/")).call(t,s):h(e)},v=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"src",o=e.key,a=e.src,s=e.thumbnail,l=e.thumbnailKey,c=u?i()(t="".concat(u,"/")).call(t,o):h({key:o,src:a}),d=u?i()(n="".concat(u,"/")).call(n,l):h({key:l,src:s});return"src"===r?c:d}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});n(2341);var r=n(2),i=n.n(r);t.c=function(t){var n=t.type,r=t.children;return e.createElement("div",{className:"page","data-type":n,"data-page":!0},r)};var o=function(t){var n=t.type,r=t.children,o="video"===n||"embed"===n||"blocks"===n||"progress-summary"===n,a=i()("page__wrapper",{"page__wrapper--white":o});return e.createElement("div",{className:a},r)},a=function(t){var n=t.type,r=t.children,o=i()("page__content",{"page__content--timeline":"timeline"===n});return e.createElement("div",{className:o},r)}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r=function(e){return function(t){return e(t),t.preventDefault()}},i=function(e){return function(t){e(t),t.preventDefault(),function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}(t)}}},function(e,t,n){"use strict";var r=n(71),i=n(4),o=n.n(i),a=n(20),s=n(179),l=n.n(s),c=n(297),u=n.n(c),d=n(393),f=n.n(d),p=n(1165),h=n.n(p),m=n(28),g=n.n(m),v=n(722),y=n.n(v),b=n(48),_=n.n(b),w=n(153),E=n.n(w),k=n(55),x=n.n(k),S=n(25),T=n.n(S),C=n(42),O=n.n(C),A=n(23),N=n.n(A),I=n(8),M=n.n(I),j=n(723),L=n.n(j),P=n(181),D=n.n(P),R=n(86),F=n.n(R),B=n(32),U=n.n(B),q=n(21),z=n(420),H=_()(g.a),W=function(e){return function(t){var n;return o()(n="".concat(e,"/")).call(n,t.id)}},$=function(e){return function(t,n){return y()(t,W(n),Y(e,n))}},Y=D()(3,function(e){return function(t){return function(n){return Object(q.c)(n,function(e,t){return l()(Object(r.a)({data:Object(a.action)(t),method:"POST",url:Object(q.a)(H("/".concat(t)),M()("url"),e)},O()(["headers","withCredentials"],e)))}(e,t),z.b,f()(function(e){return N()(T()({},["response","data"]),F()(M()("type"),Object(a.error)(e)))}(t),U()(E()("data"),M()("data"))),h()(x()(M()("error"),u.a.Rejected,u.a.of)),function(e,t){return function(n){return e.postRequest?e.postRequest(t,n):n}}(e,{type:t,payload:n}))}}}),V=function(e){return function(t,n){return L()(t,W(n),Y(e,n))}},K=function(e){return{debounce:$(e),send:Y(e),throttle:V(e)}},G=n(17),X=n.n(G),Q=n(107),Z=n(45),J=n.n(Z),ee=n(58),te=n(237),ne="".concat(Object(Q.d)("RISE_RUNTIME_URI"),"/ducks");t.a=K({headers:function(){var e=((ee.b?ee.b.getState():{}).user||{}).session,t=e?{"x-rise-session":e}:{};return X()({"x-rise-authoring-client":"8329025f49882de425c4fdd607f2e8dd5fad3a17"},t)},postRequest:function(e,t){return t.bimap(function(e){return function(t){return[t,Object(te.d)({action:e,tryAgain:!1})]}}(e),J.a)},url:ne,withCredentials:!0})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return f}),n.d(t,"i",function(){return p}),n.d(t,"j",function(){return h}),n.d(t,"k",function(){return m}),n.d(t,"l",function(){return g}),n.d(t,"m",function(){return v}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return b}),n.d(t,"p",function(){return _}),n.d(t,"q",function(){return w}),n.d(t,"r",function(){return E});var r=n(28),i=n.n(r)()("rise/uploads/"),o=i("CANCEL_JOB"),a=(i("CANCEL_JOB_SEND"),i("CANCEL_UPLOAD")),s=i("CHECK_STATUS"),l=(i("CHECK_STATUS_SEND"),i("CLEAR_UPLOAD")),c=i("CROP_IMAGE"),u=i("CROPPING"),d=i("CRUSH_IMAGE"),f=(i("CRUSH_IMAGE_SEND"),i("CRUSHING")),p=i("END_UPLOAD"),h=i("ERROR_UPLOAD"),m=i("GET_YURL"),g=(i("GET_YURL_SEND"),i("PROCESSING")),v=i("REPLAY_UPLOADS"),y=i("RESOLVE_ASSET"),b=i("SELECT_STOCK_PHOTO"),_=(i("SELECT_STOCK_PHOTO_SEND"),i("START_UPLOAD")),w=i("TRANSCODE_ASSET"),E=(i("TRANSCODE_ASSET_SEND"),i("UPDATE_UPLOAD"))},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){var r=n(227);e.exports=r(1)},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"c",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"d",function(){return _});var r=n(18),i=n.n(r),o=n(48),a=n.n(o),s=n(45),l=n.n(s),c=n(55),u=n.n(c),d=n(1137),f=n.n(d),p=a()(f.a),h=["a","b","blockquote","br","em","h2","h3","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul"],m=p({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["href","target","rel"],img:["alt","src"],span:["data-*"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:h}),g=p({allowedAttributes:{iframe:["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","width"]},allowedTags:["iframe"],allowedSchemes:["http","https"]}),v=u()(l.a,m,i()("")),y=u()(l.a,g,i()("")),b=p({allowedTags:[],allowedAttributes:[]}),_=p({allowedTags:["mark"],allowedAttributes:[]});t.b=v},function(e,t,n){e.exports=n(1513)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";e.exports=n(554),e.exports.easing=n(2179),e.exports.canvas=n(2180),e.exports.options=n(2181)},function(e,t,n){var r=n(87);e.exports=r(function(e){return!e})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=n(1),c=n.n(l),u=n(324),d=n(52),f=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"setFocus",value:function(){this.editor&&this.editor.setFocus()}},{key:"renderEditable",value:function(){var t=this,n=this.props,r=n.allowBold,i=n.className,o=n.hasQuickInsert,a=n.onChange,s=n.onKeyDown,l=n.placeholder,c=n.value;return e.createElement(u.a,{allowBold:r,className:i,hasQuickInsert:o,onChange:a,onKeyDown:s,placeholder:l,ref:function(e){t.editor=e},value:c})}},{key:"renderReadOnly",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.className,i=t.value;return i?e.createElement(d.a,{className:r,value:i,allowTabNavigation:n}):null}},{key:"render",value:function(){return this.props.editable?this.renderEditable():this.renderReadOnly()}}],[{key:"propTypes",get:function(){return{value:c.a.string,placeholder:c.a.string,className:c.a.string,onChange:c.a.func.isRequired,onKeyDown:c.a.func,editable:c.a.bool,allowTabNavigation:c.a.bool}}},{key:"defaultProps",get:function(){return{allowBold:!0,placeholder:"",editable:!1,onKeyDown:function(){},allowTabNavigation:!0,hasQuickInsert:!0}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return f}),n.d(t,"i",function(){return p}),n.d(t,"j",function(){return h}),n.d(t,"k",function(){return m}),n.d(t,"l",function(){return g});var r=n(28),i=n.n(r)()("rise/lessons/"),o=i("COPY_LESSON"),a=i("COPY_LESSON_SUCCESS"),s=i("CREATE_LESSON"),l=i("CREATE_LESSON_CLIENT"),c=i("DELETE_LESSON"),u=i("DELETE_LESSON_CLIENT"),d=i("DUPLICATE_LESSON"),f=i("INSERT_BLOCK_TEMPLATE"),p=i("INSERT_BLOCK_TEMPLATE_SUCCESS"),h=i("UPDATE_COURSE_LESSONS"),m=i("UPDATE_LESSON"),g=i("UPDATE_LESSON_DEBOUNCE")},function(e,t,n){var r=n(97);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(1497)},function(e,t,n){var r=n(675),i=n(99);e.exports=r(i)},function(e,t,n){"use strict";n.d(t,"e",function(){return pe}),n.d(t,"f",function(){return ge}),n.d(t,"g",function(){return ve}),n.d(t,"b",function(){return ye}),n.d(t,"a",function(){return be}),n.d(t,"h",function(){return we}),n.d(t,"i",function(){return Ee}),n.d(t,"j",function(){return ke}),n.d(t,"k",function(){return xe}),n.d(t,"c",function(){return Ie}),n.d(t,"d",function(){return Me});var r=n(18),i=n.n(r),o=n(6),a=n.n(o),s=n(122),l=n.n(s),c=n(161),u=n.n(c),d=n(150),f=n.n(d),p=n(124),h=n.n(p),m=n(1157),g=n.n(m),v=n(40),y=n.n(v),b=n(46),_=n.n(b),w=n(39),E=n.n(w),k=n(115),x=n.n(k),S=n(48),T=n.n(S),C=n(83),O=n.n(C),A=n(55),N=n.n(A),I=n(94),M=n.n(I),j=n(72),L=n.n(j),P=n(36),D=n.n(P),R=n(136),F=n.n(R),B=n(51),U=n.n(B),q=n(99),z=n.n(q),H=n(26),W=n.n(H),$=n(25),Y=n.n($),V=n(42),K=n.n(V),G=n(23),X=n.n(G),Q=n(8),Z=n.n(Q),J=n(14),ee=n.n(J),te=n(232),ne=n.n(te),re=n(264),ie=n.n(re),oe=n(181),ae=n.n(oe),se=n(1158),le=n.n(se),ce=n(29),ue=n(323),de=n(272),fe=a()(z.a,L.a),pe=function(e){var t=e.type,n=e.settings;return"quiz"!==t||n.asLesson||void 0===n.asLesson},he=a()(_()(pe),Z()("lessonsOnly")),me=function(e){return function(t){return z()(W()(["lessons",t.id,"isComplete"],e))}},ge=function(e){var t=e.course,n=e.lesson;return ee()("id",n.id,O()(Z()("lessonsOnly",t)))},ve=a()(z.a,ee()("type","section")),ye=function(e){var t=e.course,n=e.courseProgress,r=e.lesson,i=e.restrictingQuiz,o=Object(ue.b)({courseProgress:n,lesson:r,restrictingQuiz:i}),a=Object(de.a)(t),s=a||fe(o),l=function(e){var t=e.course,n=e.courseProgress;return E()(me(n))(t.lessonsOnly)}({course:t,courseProgress:n}),c=ce.e&&!t.enrolled&&!t.favoritedAt,u=c&&!t.riseComLearningPathId&&"preview"!==window.viewType,d=c&&t.riseComLearningPathId&&"preview"!==window.viewType,f=ve(r)&&z()(function(e){var t=e.lesson,n=e.courseProgress;return Y()(!1,["lessons",t.id,"isComplete"],n)}({lesson:r,courseProgress:n}));return{isRestricted:u&&f||d&&f||s&&f&&z()(function(e){var t=e.lesson,n=e.currentLesson;return t&&ee()("id",t.id,n)}({lesson:r,currentLesson:l})),isRestrictedNotEnrolledCourse:u,isRestrictedNotEnrolledLP:d,restrictingQuiz:o,isRestrictedCourse:a,currentLesson:l}},be=function(e){var t=e.labels,n=e.restrictions,r=t.lessonRestricted,i=t.quizRequirePassingScore,o=n.isRestrictedCourse,a=n.isRestrictedNotEnrolledCourse,s=n.isRestrictedNotEnrolledLP,l=n.restrictingQuiz,c=n.currentLesson,u=c&&g()("id",l,c);return a?"Please save to My List to take this course":s?null:!o||o&&u?i.replace("quiz",'"'.concat(l.title,'"')):r},_e=l()(function(e){return x()(le()(K()(["id"],e||{})))}),we=function(e){var t=e.course,n=e.lesson;return a()(M.a,_e(n),he)(t)},Ee=function(e){var t=e.course,n=e.lesson;return!function(e){var t=e.course,n=e.lesson;return ee()("id",n.id,F()(Z()("lessonsOnly",t)))}({course:t,lesson:n})&&t.lessonsOnly[M()(_e(n,t.lessonsOnly))]},ke=function(e){var t=e.course,n=e.lesson;return!ge({course:t,lesson:n})&&t.lessonsOnly[u()(_e(n,t.lessonsOnly))]},xe=a()(U.a,he),Se=h()(D.a,L.a),Te=h()(D.a,y()(!1)),Ce=ne()(Te,"isComplete"),Oe=ne()(y()(!1),"passed"),Ae=ae()(2,function(e){return E()(N()(a()(y()(e),O.a),a()(Oe,F.a),a()(Ce,F.a)))}),Ne=ae()(2,function(e){return X()(ie.a,Ae(e),f()([]),O.a)}),Ie=T()(ae()(2,function(e){return N()(Se,i()(null),Ne(e))})),Me=function(e,t,n){if(!n)return{outOfAttempts:!1,quizPassed:!0};var r=W()(["lessons",n],e),i=Y()(-1,["settings","retryCount"],t),o=Y()(0,["retryAttempts"],r),a=W()(["passed"],r);return{outOfAttempts:W()(["isComplete"],r)&&i>-1&&y()(Number(o),Number(i)),quizPassed:a}}},function(e,t,n){var r,i,o,a,s=n(87),l=n(250),c=n(854);e.exports=(r=!{toString:null}.propertyIsEnumerable("toString"),i=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],o=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),a=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},"function"!=typeof Object.keys||o?s(function(e){if(Object(e)!==e)return[];var t,n,s=[],u=o&&c(e);for(t in e)!l(t,e)||u&&"length"===t||(s[s.length]=t);if(r)for(n=i.length-1;n>=0;)l(t=i[n],e)&&!a(s,t)&&(s[s.length]=t),n-=1;return s}):s(function(e){return Object(e)!==e?[]:Object.keys(e)}))},function(e,t,n){"use strict";n.d(t,"d",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return f});n(96),n(141),n(388),n(33);var r=n(48),i=n.n(r),o=n(8),a=n.n(o),s=n(128);function l(e){return s.a[e]}var c=i()(a.a)(window.env||{});function u(e){if(l("cancelProcessingPromise"))return s.a.cancelProcessingPromise(e)}function d(e){if(l("copyReviewItem"))return s.a.copyReviewItem(e)}function f(e){if(l("courseAuthorUrl"))return s.a.courseAuthorUrl(e)}},function(e,t,n){var r=n(353),i=n(34);e.exports=i(function(e,t){return r(t,[e])})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e(t),t})},function(e,t,n){var r=n(428)("wks"),i=n(429),o=n(74).Symbol,a=n(768);e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}},function(e,t,n){"use strict";var r,i=n(125),o=n(74),a=n(97),s=n(142),l=n(500),c=n(163),u=n(189),d=n(133).f,f=n(244),p=n(436),h=n(110)("toStringTag"),m=n(429)("TYPED_ARRAY_TAG"),g=o.DataView,v=g&&g.prototype,y=o.Int8Array,b=y&&y.prototype,_=o.Uint8ClampedArray,w=_&&_.prototype,E=y&&f(y),k=b&&f(b),x=Object.prototype,S=x.isPrototypeOf,T=!(!o.ArrayBuffer||!o.DataView),C=T&&!!p,O=!1,A={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N=function(e){return a(e)&&s(A,l(e))};for(r in A)o[r]||(C=!1);if((!C||"function"!=typeof E||E===Function.prototype)&&(E=function(){throw TypeError("Incorrect invocation")},C))for(r in A)o[r]&&p(o[r],E);if((!C||!k||k===x)&&(k=E.prototype,C))for(r in A)o[r]&&p(o[r].prototype,k);if(C&&f(w)!==k&&p(w,k),i&&!s(k,h))for(r in O=!0,d(k,h,{get:function(){return a(this)?this[m]:void 0}}),A)o[r]&&c(o[r],m,r);T&&p&&f(v)!==x&&p(v,x),e.exports={NATIVE_ARRAY_BUFFER:T,NATIVE_ARRAY_BUFFER_VIEWS:C,TYPED_ARRAY_TAG:O&&m,aTypedArray:function(e){if(N(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(S.call(E,e))return e}else for(var t in A)if(s(A,r)){var n=o[t];if(n&&(e===n||S.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,n){if(i){if(n)for(var r in A){var a=o[r];a&&s(a.prototype,e)&&delete a.prototype[e]}k[e]&&!n||u(k,e,n?t:C&&b[e]||t)}},exportStatic:function(e,t,n){var r,a;if(i){if(p){if(n)for(r in A)(a=o[r])&&s(a,e)&&delete a[e];if(E[e]&&!n)return;try{return u(E,e,n?t:C&&y[e]||t)}catch(e){}}for(r in A)!(a=o[r])||a[e]&&!n||u(a,e,t)}},isView:function(e){var t=l(e);return"DataView"===t||s(A,t)},isTypedArray:N,TypedArray:E,TypedArrayPrototype:k}},function(e,t,n){var r=n(1664),i=n(34),o=n(46);e.exports=i(function(e,t){return o(r(e),t)})},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"g",function(){return d});var r=n(28),i=n.n(r)()("rise/courses/"),o=i("DELETE_COURSE"),a=i("GET_COURSE"),s=(i("GET_COURSE_VERSION"),i("IMPORT_TRANSLATION")),l=i("SET_OWNER"),c=i("UPDATE_COURSE"),u=i("UPDATE_COURSE_DEBOUNCE"),d=i("UPDATE_LESSON_ORDER")},function(e,t,n){var r=n(34),i=n(248),o=n(1803);e.exports=r(i([],o,function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))},function(e,t,n){var r=n(953);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(204),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(168),i=n(0),o=n.n(i),a=n(201),s=n(113),l=n(390),c=n(391),u=n(185);function d(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(s.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(l.a)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var _="popstate",w="hashchange";function E(){try{return window.history.state||{}}catch(e){return{}}}function k(e){void 0===e&&(e={}),y||Object(u.a)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,l=void 0!==a&&a,c=o.getUserConfirmation,f=void 0===c?b:c,k=o.keyLength,x=void 0===k?6:k,S=e.basename?h(d(e.basename)):"";function T(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=p(o,S)),g(o,r,n)}function C(){return Math.random().toString(36).substr(2,x)}var O=v();function A(e){Object(s.a)(q,e),q.length=n.length,O.notifyListeners(q.location,q.action)}function N(e){(function(e){void 0===e.state&&navigator.userAgent.indexOf("CriOS")})(e)||j(T(e.state))}function I(){j(T(E()))}var M=!1;function j(e){if(M)M=!1,A();else{O.confirmTransitionTo(e,"POP",f,function(t){t?A({action:"POP",location:e}):function(e){var t=q.location,n=P.indexOf(t.key);-1===n&&(n=0);var r=P.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,R(i))}(e)})}}var L=T(E()),P=[L.key];function D(e){return S+m(e)}function R(e){n.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?(window.addEventListener(_,N),i&&window.addEventListener(w,I)):0===F&&(window.removeEventListener(_,N),i&&window.removeEventListener(w,I))}var U=!1;var q={length:n.length,action:"POP",location:L,createHref:D,push:function(e,t){var i=g(e,t,C(),q.location);O.confirmTransitionTo(i,"PUSH",f,function(e){if(e){var t=D(i),o=i.key,a=i.state;if(r)if(n.pushState({key:o,state:a},null,t),l)window.location.href=t;else{var s=P.indexOf(q.location.key),c=P.slice(0,-1===s?0:s+1);c.push(i.key),P=c,A({action:"PUSH",location:i})}else window.location.href=t}})},replace:function(e,t){var i=g(e,t,C(),q.location);O.confirmTransitionTo(i,"REPLACE",f,function(e){if(e){var t=D(i),o=i.key,a=i.state;if(r)if(n.replaceState({key:o,state:a},null,t),l)window.location.replace(t);else{var s=P.indexOf(q.location.key);-1!==s&&(P[s]=i.key),A({action:"REPLACE",location:i})}else window.location.replace(t)}})},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=O.setPrompt(e);return U||(B(1),U=!0),function(){return U&&(U=!1,B(-1)),t()}},listen:function(e){var t=O.appendListener(e);return B(1),function(){B(-1),t()}}};return q}var x="hashchange",S={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:d},slash:{encodePath:d,decodePath:d}};function T(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function C(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)}function O(e){void 0===e&&(e={}),y||Object(u.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,i=void 0===r?b:r,o=n.hashType,a=void 0===o?"slash":o,l=e.basename?h(d(e.basename)):"",f=S[a],_=f.encodePath,w=f.decodePath;function E(){var e=w(T());return l&&(e=p(e,l)),g(e)}var k=v();function O(e){Object(s.a)(U,e),U.length=t.length,k.notifyListeners(U.location,U.action)}var A=!1,N=null;function I(){var e,t,n=T(),r=_(n);if(n!==r)C(r);else{var o=E(),a=U.location;if(!A&&(t=o,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(c.a)(e.state,t.state)))return;if(N===m(o))return;N=null,function(e){if(A)A=!1,O();else{k.confirmTransitionTo(e,"POP",i,function(t){t?O({action:"POP",location:e}):function(e){var t=U.location,n=P.lastIndexOf(m(t));-1===n&&(n=0);var r=P.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(A=!0,D(i))}(e)})}}(o)}}var M=T(),j=_(M);M!==j&&C(j);var L=E(),P=[m(L)];function D(e){t.go(e)}var R=0;function F(e){1===(R+=e)&&1===e?window.addEventListener(x,I):0===R&&window.removeEventListener(x,I)}var B=!1;var U={length:t.length,action:"POP",location:L,createHref:function(e){return"#"+_(l+m(e))},push:function(e,t){var n=g(e,void 0,void 0,U.location);k.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=m(n),r=_(l+t);if(T()!==r){N=t,function(e){window.location.hash=e}(r);var i=P.lastIndexOf(m(U.location)),o=P.slice(0,-1===i?0:i+1);o.push(t),P=o,O({action:"PUSH",location:n})}else O()}})},replace:function(e,t){var n=g(e,void 0,void 0,U.location);k.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=m(n),r=_(l+t);T()!==r&&(N=t,C(r));var i=P.indexOf(m(U.location));-1!==i&&(P[i]=t),O({action:"REPLACE",location:n})}})},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=k.appendListener(e);return F(1),function(){F(-1),t()}}};return U}n(1);var A=n(211);n.d(t,"a",function(){return N}),n.d(t,"b",function(){return I});o.a.Component;o.a.Component;var N=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.handleClick=function(e,t){(this.props.onClick&&this.props.onClick(e),e.defaultPrevented||0!==e.button||this.props.target&&"_self"!==this.props.target||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))||(e.preventDefault(),(this.props.replace?t.replace:t.push)(this.props.to))},n.render=function(){var e=this,t=this.props,n=t.innerRef,r=(t.replace,t.to),i=Object(A.a)(t,["innerRef","replace","to"]);return o.a.createElement(a.d.Consumer,null,function(t){t||Object(u.a)(!1);var a="string"==typeof r?g(r,null,null,t.location):r,l=a?t.history.createHref(a):"";return o.a.createElement("a",Object(s.a)({},i,{onClick:function(n){return e.handleClick(n,t.history)},href:l,ref:n}))})},t}(o.a.Component);function I(e){var t=e["aria-current"],n=void 0===t?"page":t,r=e.activeClassName,i=void 0===r?"active":r,l=e.activeStyle,c=e.className,u=e.exact,d=e.isActive,f=e.location,p=e.strict,h=e.style,m=e.to,g=Object(A.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),v="object"==typeof m?m.pathname:m,y=v&&v.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1");return o.a.createElement(a.a,{path:y,exact:u,strict:p,location:f,children:function(e){var t=e.location,r=e.match,a=!!(d?d(r,t):r),u=a?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e}).join(" ")}(c,i):c,f=a?Object(s.a)({},h,l):h;return o.a.createElement(N,Object(s.a)({"aria-current":a&&n||null,className:u,style:f,to:m},g))}})}},function(e,t,n){var r=n(87),i=n(60);e.exports=r(function(e){return i(e.length,e)})},function(e,t,n){var r=n(34),i=n(351),o=n(106);e.exports=r(function(e,t){return i(function(n,r){return n[r]=e(t[r],r,t),n},{},o(t))})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=function(e){if(!i(e))throw new TypeError("curry: Function required");return r(e)}},function(e,t,n){"use strict";var r=n(256),i=n.n(r),o=n(407),a=n.n(o),s=n(206),l=n.n(s);function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=l()(e);for(r=0;r<a.length;r++)n=a[r],i()(t).call(t,n)>=0||(o[n]=e[n]);return o}(e,t);if(a.a){var s=a()(e);for(r=0;r<s.length;r++)n=s[r],i()(t).call(t,n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",function(){return c})},function(e,t,n){var r=n(34),i=n(529),o=n(675),a=n(466);e.exports=r(function(e,t){return i(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:o(a)(e,t)})},function(e,t,n){e.exports=!n(63)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";var r=n(98);e.exports={_set:function(e,t){return r.merge(this[e]||(this[e]={}),t)}}},function(e,t,n){e.exports=n(1665)},function(e,t,n){"use strict";var r,i=n(146),o=n.n(i),a=n(3),s=n.n(a),l=n(37),c=n.n(l),u=n(206),d=n.n(u),f=n(4),p=n.n(f),h=n(96),m=n.n(h),g=n(43),v=n.n(g),y=n(19),b=n.n(y),_=n(184),w=n.n(_),E=n(8),k=n.n(E),x=n(392),S=n.n(x),T=n(109),C=n.n(T),O=n(156),A=n(29),N=function(e){return(window.env||{})[e]},I=N("RISE_RUNTIME_URI"),M=N("IMAGES_URI"),j=(N("CDN_USER_CONTENT_URI"),"".concat(M,"/f:jpg,b:fff,w:340,s:cover")),L="".concat(M,"/f:jpg,b:fff,w:1680,s:cover,q:65"),P="".concat(M,"/f:png,w:1920,s:cover,q:65"),D="".concat(M,"/f:jpg,b:fff,w:100,h:100,s:cover"),R=window.courseId,F={courseId:R},B={},U={};function q(e){return 200===e.status?e.body:m.a.reject(e.body)}var z=function(e){return function(t){var n,r,i,o;return v()({useCrushedKey:(i=e,o=i.filename,!S()(/_NOPROCESS_/i,o)),crushedKey:t.key,key:e.key,thumbnail:p()((r=e.refs,n="".concat("coverImage"===r?j:D,"/"))).call(n,t.key)},e)}};var H={getEnv:N,resolvePath:function(e){return N("CDN_USER_CONTENT_URI")+"/"+e},getCourseAuthorIndexPath:function(){return A.e?"/author":"/"},previewUrl:function(e,t){var n="/preview/".concat(t.courseId||t.id);return n+=e?"#/lessons/".concat(e,"/preview-lesson"):"#/preview"},uploadAsset:function(e){var t,n=e.filename,r=e.data,i=e.mediaType,o=e.mimeType,a=e.size;return(t=n,Object(O.b)({withCredentials:!0,method:"GET",url:"".concat(I,"/yurl"),json:!0,data:{courseId:R,filename:t}}).then(q)).then(function(e,t,n,r,i,o,a,s){return function(l){var c={"Content-Type":l.type},u='attachment; filename="'.concat(e,'"'),d="attachment"===n?b()("Content-Disposition",u,c):c;return(B[s]=Object(O.b)({method:"PUT",url:l.url,data:t,headers:d,onUploadProgress:w()(a,O.a)})).then(function(){return{url:l.filename,key:encodeURI(l.key),mediaType:n,originalMediaUrl:o,mimeType:r,size:i}})}}(n,r,i,o,a,e.originalMediaUrl,e.progress,e.id))},fetchEmbed:function(e){return Object(O.b)({method:"GET",url:"".concat(I,"/embed"),json:!0,withCredentials:!0,data:{url:e}}).then(function(e){return e.body.statusCode?m.a.reject({}):e}).then(k()("body"))},cancelUpload:function(e){var t=B[e];t&&t.abort()},cancelProcessing:function(e){var t=e.jobId,n=U[t];n&&(clearTimeout(r),n.abort())},cancelProcessingPromise:function(e){var t=e.jobId;return U[t].abort()},processAsset:function(e){var t={courseId:R,lessonId:e.lessonId,key:e.key,mediaType:e.mediaType};return e.itemId&&(t.itemId=e.itemId),e.refs&&(t.refs=e.refs),Object(O.b)({method:"POST",url:"".concat(I,"/transcode"),data:t,json:!0,withCredentials:!0}).then(w()(v()({mediaType:e.mediaType}),k()("body")))},resolveAsset:function(e){return new m.a(function(t,n){!function i(o){var a;U[e.jobId]=o,o.open("GET",p()(a="".concat(I,"/processed?jobId=")).call(a,e.jobId)),o.withCredentials=!0,o.addEventListener("load",function(){var n=JSON.parse(this.response)||{};if(d()(n).length){var o,a;t(v()({jobId:e.jobId,thumbnail:p()(o="".concat(D,"/")).call(o,n.thumbnail),poster:p()(a="".concat(P,"/")).call(a,n.thumbnail)},n))}else{var l=new XMLHttpRequest;U[e.jobId]=l,r=c()(s()(i).call(i,null,l),1500)}}),o.addEventListener("error",function(e){n(e)}),o.send()}(new XMLHttpRequest)})},resizeImage:function(e){return e.opts.isLogo?function(e){return new m.a(function(t,n){var r,i,a=N("IMAGES_URI"),s=new Image;s.src=p()(r=p()(i="".concat(a)).call(i,"/f:png/")).call(r,e.key),s.onload=function(n){var r,i,s,l,c,u,d=n.target.width,f=n.target.height,h=function(e){var t={square:{width:150,height:150},average:{width:280,height:140},wide:{width:440,height:80},tall:{width:140,height:200}};return e<.8?t.tall:e>=.8&&e<=1.2?t.square:e>1.2&&e<=3.5?t.average:t.wide}(d/f),m=Math.min(h.width/d,h.height/f),g=p()(r=p()(i=p()(s=p()(l=p()(c=p()(u="".concat(a)).call(u,"/f:png,w:")).call(c,Math.ceil(d*m))).call(l,",h:")).call(s,Math.ceil(f*m))).call(i,"/")).call(r,e.key),v=Math.ceil(d*m/2),y=Math.ceil(f*m/2);return t(o()({},e,{url:g,width:v,height:y}))},s.onerror=function(e){return n(e)}})}(e):(t=e.key,Object(O.b)({method:"POST",url:"".concat(I,"/crush"),json:!0,withCredentials:!0,data:{courseId:R,original:t}}).then(k()("body"))).then(z(e));var t},buildExport:function(){var e=!1;function t(t){return new m.a(function(n,r){!function i(){Object(O.b)({method:"GET",url:t.url,json:!0,jwt:!0}).then(q).then(function(t){return e?m.a.reject(new Error("cancelled")):t}).then(function(e){if(e.error)return console.error(e.error),r(e.error);e.reviewId||e.location?n(e):c()(i,2e3)}).catch(r)}()})}return{promise:function(e){var n,r,i,a=N("RISE_FRONTEND_BUNDLE_SHA"),s=o()({},a&&{sha:a}),l=p()(n="".concat(I,"/build_pdf/")).call(n,R);return"raw"===e.exportType&&(e.target="raw",e.enableExitCourse=!1),"pdf"!==e.exportType&&(s.format=e.format,l=p()(r=p()(i="".concat(I,"/build/")).call(i,R,"/")).call(r,e.target),e.existingItemId&&(s.existingItemId=e.existingItemId),e.quizId&&(s.quizId=e.quizId),e.storylineId&&(s.storylineId=e.storylineId),void 0!==e.completionPercentage&&(s.completionPercentage=e.completionPercentage),void 0!==e.identifier&&(s.identifier=e.identifier),e.title&&(s.title=e.title),e.emailNotificationType&&(s.emailNotificationType=e.emailNotificationType),e.reporting&&(s.reporting=e.reporting),e.enableExitCourse&&(s.enableExitCourse=e.enableExitCourse)),Object(O.b)({method:"GET",url:l,json:!0,withCredentials:!0,data:s}).then(q).then(t)},cancel:function(){e=!0}}},fetchPresignedExport:function(e){var t,n;return Object(O.b)({method:"GET",json:!0,url:p()(t=p()(n="".concat(I,"/presigned/")).call(n,R,"/")).call(t,e),withCredentials:!0}).then(q)},exportLabelSetUrl:function(e,t){var n,r,i=p()(n="".concat(I,"/export_label_set/")).call(n,e);return t?p()(r="".concat(i,"?omit=")).call(r,t):i},fetchFeaturedStockPhotos:function(e){return Object(O.b)({method:"GET",url:"".concat(I,"/featured_stock"),json:!0,withCredentials:!0,data:{page:e||1}}).then(q)},searchStockPhotos:function(e,t){return Object(O.b)({method:"GET",url:"".concat(I,"/search_stock"),json:!0,withCredentials:!0,data:{page:t||1,query:encodeURI(e)}}).then(q)},selectStockPhoto:function(e){return Object(O.b)({method:"GET",url:"".concat(I,"/select_stock_photo"),json:!0,withCredentials:!0,data:{courseId:e.courseId,url:e.url}}).then(k()("body")).then(function(e){var t,n,r=e.key||e.Key;return{key:r,thumbnail:p()(t="".concat(j,"/")).call(t,r),src:p()(n="".concat(L,"/")).call(n,r),type:"image"}}).then(C()(function(){return(t=e.downloadPingbackUrl)&&Object(O.b)({method:"GET",url:t,headers:{"Content-Type":"application/json","X-Articulate-Client":"rise-frontend"},jwt:!0});var t}))},getLockProfile:function(){return F},reviewItemUrl:function(e){var t;return A.e?"/review/".concat(e):p()(t="".concat(N("THREESIXTY_FRONTEND_URI"),"/review/content/")).call(t,e,"/review")},copyReviewItem:function(e){var t=Object(O.b)({method:"POST",url:"".concat(I,"/copy_review_item"),data:e,json:!0,withCredentials:!0});return U[e.jobId]=t,t.then(k()("body"))},courseAuthorUrl:function(e){return window.location.href="/author/"+e}};t.a=H},function(e,t,n){var r=n(87),i=n(34),o=n(521);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(453),i=n(93);function o(e,t){return i(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){var n=r(arguments),a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(o,t);return i(s)?e(s):s}}},function(e,t,n){"use strict";t.a={FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"}},function(e,t,n){var r=n(129),i=n(18),o=n(53);e.exports=r(function(e,t,n){return o(e,i(t),n)})},function(e,t,n){var r=n(125),i=n(763),o=n(102),a=n(242),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(144),i=n(644),o=n(193),a=n(645),s=n(646),l=n(804),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||a;e.exports=function(e){return o(c,e)||(s&&o(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(1797),i=n(252),o="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){var r=n(360);e.exports=r(-1)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(34);e.exports=r(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})},function(e,t,n){var r=n(34),i=n(529),o=n(1694),a=n(675);e.exports=r(function(e,t){return i(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:a(o)(e,t)})},function(e,t,n){var r=n(353),i=n(1678);e.exports=i(r)},function(e,t,n){e.exports=n(1507)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(202);e.exports=function(e){return Object(r(e))}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(69))},function(e,t,n){var r=n(118);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){e.exports=n(1609)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return At(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var v=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)r=v[n],s(i=t[r])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&k(e[r])!==k(t[r]))&&a++;return a+o}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,O={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),O[e]||(S(t),O[e]=!0)}function N(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,r=f({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function M(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var j={};function L(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function P(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)d(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var R={};function F(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=N(i[r])?i[r].call(t,e):i[r];return o}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var V=/\d/,K=/\d\d/,G=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=N(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ge(e,t,n){null!=t&&d(pe,e)&&pe[e](t,n._a,n,e)}var ve=0,ye=1,be=2,_e=3,we=4,Ee=5,ke=6,xe=7,Se=8;function Te(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),L("year","y"),F("year",1),ue("Y",oe),ue("YY",Z,K),ue("YYYY",ne,X),ue("YYYYY",re,Q),ue("YYYYYY",re,Q),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):k(e)}),he("YY",function(e,t){t[ve]=i.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Oe,Ae=Ne("FullYear",!0);function Ne(e,t){return function(n){return null!=n?(Me(this,e,n),i.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),F("month",8),ue("M",Z),ue("MM",Z,K),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=k(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:h(n).invalidMonth=e});var Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),je(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Ie(this,"Month")}var Be=le,Ue=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)o[t]=fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,i=(7+ze(e,0,r).getUTCDay()-t)%7;return-i+r-1}function We(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=He(e,r,i),c=1+7*(t-1)+s+l;return c<=0?a=Te(o=e-1)+c:c>Te(e)?(o=e+1,a=c-Te(e)):(o=e,a=c),{year:o,dayOfYear:a}}function $e(e,t,n){var r,i,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ye(i,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ye(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Te(e)-r+i)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",Z),ue("ww",Z,K),ue("W",Z),ue("WW",Z,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",Z),ue("e",Z),ue("E",Z),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=le,Qe=le,Ze=le;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),c[t]=fe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),tt("a",!0),tt("A",!1),L("hour","h"),F("hour",13),ue("a",nt),ue("A",nt),ue("H",Z),ue("h",Z),ue("k",Z),ue("HH",Z,K),ue("hh",Z,K),ue("kk",Z,K),ue("hmm",J),ue("hmmss",ee),ue("Hmm",J),ue("Hmmss",ee),he(["H","HH"],_e),he(["k","kk"],function(e,t,n){var r=k(e);t[_e]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[_e]=k(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Ee]=k(e.substr(i)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Ee]=k(e.substr(i))});var rt,it=Ne("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:De,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(2352)("./"+t),ut(r)}catch(e){}return at[t]}function ut(e,t){var n;return e&&(n=s(t)?ft(e):dt(e,t))&&(rt=n),rt._abbr}function dt(e,t){if(null!==t){var n=ot;if(t.abbr=e,null!=at[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=at[e]._config;else if(null!=t.parentLocale){if(null==at[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=at[t.parentLocale]._config}return at[e]=new M(I(n,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ut(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!o(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(i=lt(e[o]).split("-"),t=i.length,n=(n=lt(e[o+1]))?n.split("-"):null;t>0;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return null}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>je(n[ve],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[Ee]||0!==n[ke])?_e:n[we]<0||n[we]>59?we:n[Ee]<0||n[Ee]>59?Ee:n[ke]<0||n[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(t<ve||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=xe),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ht(t.GG,e._a[ve],$e(Nt(),1,4).year),r=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=$e(Nt(),o,a);n=ht(t.gg,e._a[ve],c.year),r=ht(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Ye(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=We(n,r,i,o,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[ve],r[ve]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[Ee]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,r,i,o,a,s=e._i,l=gt.exec(s)||vt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){o=(l[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!yt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Ct(e)}else e._isValid=!1}var kt=/^(?:(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{4}))$/;function xt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,a,s,l=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim());if(l){var c=(t=l[4],n=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[xt(t),De.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ct(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,a,s=""+e._i,l=s.length,c=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(de(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),H[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=(u=e._locale,d=e._a[_e],null==(f=e._meridiem)?d:null!=u.meridiemHour?u.meridiemHour(d,f):null!=u.isPM?((p=u.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Tt(e);else Et(e);var u,d,f,p}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(pt(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ct(t),m(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function At(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(pt(Ot(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Nt(e,t,n,r){return At(e,t,n,r,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var It=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Mt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function jt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Nt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=D(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oe.call(Lt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Lt.length;++r)if(e[Lt[r]]){if(n)return!1;parseFloat(e[Lt[r]])!==k(e[Lt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ft(),this._bubble()}function Dt(e){return e instanceof Pt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",se),ue("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Bt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Bt)||["-",0,0],o=60*i[1]+k(i[2]);return 0===o?0:"+"===i[0]?o:-o}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():Nt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Nt(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,i,o,a,s,c=e,u=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Wt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:k(u[be])*n,h:k(u[_e])*n,m:k(u[we])*n,s:k(u[Ee])*n,ms:k(Rt(1e3*u[ke]))*n}):(u=$t.exec(e))?(n="-"===u[1]?-1:(u[1],1),c={y:Vt(u[2],n),M:Vt(u[3],n),w:Vt(u[4],n),d:Vt(u[5],n),h:Vt(u[6],n),m:Vt(u[7],n),s:Vt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Nt(c.from),a=Nt(c.to),i=o.isValid()&&a.isValid()?(a=qt(a,o),o.isBefore(a)?s=Kt(o,a):((s=Kt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Pt(c),Dt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var o=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Ie(e,"Month")+s*n),a&&Me(e,"Date",Ie(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Yt.fn=Pt.prototype,Yt.invalid=function(){return Yt(NaN)};var Qt=Gt(1,"add"),Zt=Gt(-1,"subtract");function Jt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ft(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?$e(this,r,i).year:(o=Ye(e,r,i),t>o&&(t=o),function(e,t,n,r,i){var o=We(e,t,n,r,i),a=ze(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",oe),ue("g",oe),ue("GG",Z,K),ue("gg",Z,K),ue("GGGG",ne,X),ue("gggg",ne,X),ue("GGGGG",re,Q),ue("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),L("quarter","Q"),F("quarter",7),ue("Q",V),he("Q",function(e,t){t[ye]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),L("date","D"),F("date",9),ue("D",Z),ue("DD",Z,K),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=k(e.match(Z)[0])});var an=Ne("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",te),ue("DDDD",G),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),L("minute","m"),F("minute",14),ue("m",Z),ue("mm",Z,K),he(["m","mm"],we);var sn=Ne("Minutes",!1);W("s",["ss",2],0,"second"),L("second","s"),F("second",15),ue("s",Z),ue("ss",Z,K),he(["s","ss"],Ee);var ln,cn=Ne("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),F("millisecond",16),ue("S",te,V),ue("SS",te,K),ue("SSS",te,G),ln="SSSS";ln.length<=9;ln+="S")ue(ln,ie);function un(e,t){t[ke]=k(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,un);var dn=Ne("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var fn=_.prototype;function pn(e){return e}fn.add=Qt,fn.calendar=function(e,t){var n=e||Nt(),r=qt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(N(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Nt(n)))},fn.clone=function(){return new _(this)},fn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:E(o)},fn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Nt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Nt(),e)},fn.get=function(e){return N(this[e=P(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},fn.isBefore=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(s(t)?"millisecond":t))?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},fn.isBetween=function(e,t,n,r){return("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},fn.isSame=function(e,t){var n,r=w(e)?e:Nt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t||"millisecond"))?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},fn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fn.isValid=function(){return m(this)},fn.lang=tn,fn.locale=en,fn.localeData=nn,fn.max=Mt,fn.min=It,fn.parsingFlags=function(){return f({},h(this))},fn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(N(this[e=P(e)]))return this[e](t);return this},fn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},fn.subtract=Zt,fn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},fn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Ae,fn.isLeapYear=function(){return Ce(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Fe,fn.daysInMonth=function(){return je(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},fn.date=an,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=it,fn.minute=fn.minutes=sn,fn.second=fn.seconds=cn,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ht,fn.isUTC=Ht,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=T("dates accessor is deprecated. Use date instead.",an),fn.months=T("months accessor is deprecated. Use month instead",Fe),fn.years=T("years accessor is deprecated. Use year instead",Ae),fn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?p(e._a):Nt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function mn(e,t,n,r){var i=ft(),o=p().set(r,t);return i[n](o,e)}function gn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=ft(),a=e?o._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=mn(t,(i+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return N(i)?i(e,t,n,r):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)N(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,a))?i:null:-1!==(i=Oe.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,a))?i:-1!==(i=Oe.call(this._longMonthsParse,a))?i:null:-1!==(i=Oe.call(this._longMonthsParse,a))?i:-1!==(i=Oe.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ut),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ft);var yn=Math.abs;function bn(e,t,n,r){var i=Yt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var xn=kn("ms"),Sn=kn("s"),Tn=kn("m"),Cn=kn("h"),On=kn("d"),An=kn("w"),Nn=kn("M"),In=kn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Mn("milliseconds"),Ln=Mn("seconds"),Pn=Mn("minutes"),Dn=Mn("hours"),Rn=Mn("days"),Fn=Mn("months"),Bn=Mn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var o=E(i/12),a=i%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Hn(this._months)!==Hn(d)?"-":"",h=Hn(this._days)!==Hn(d)?"-":"",m=Hn(this._milliseconds)!==Hn(d)?"-":"";return f+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var $n=Pt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},$n.add=function(e,t){return bn(this,e,t,1)},$n.subtract=function(e,t){return bn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=xn,$n.asSeconds=Sn,$n.asMinutes=Tn,$n.asHours=Cn,$n.asDays=On,$n.asWeeks=An,$n.asMonths=Nn,$n.asYears=In,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(En(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=E(o/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=E(n/24),i=E(wn(a)),s+=i,a-=_n(En(i)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},$n.clone=function(){return Yt(this)},$n.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=jn,$n.seconds=Ln,$n.minutes=Pn,$n.hours=Dn,$n.days=Rn,$n.weeks=function(){return E(this.days()/7)},$n.months=Fn,$n.years=Bn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),c=Un(r.as("y")),u=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||l<=1&&["M"]||l<qn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Wn,$n.toString=Wn,$n.toJSON=Wn,$n.locale=en,$n.localeData=nn,$n.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),$n.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ue("x",oe),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(k(e))}),i.version="2.20.1",t=Nt,i.fn=fn,i.min=function(){return jt("isBefore",[].slice.call(arguments,0))},i.max=function(){return jt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Nt(1e3*e)},i.months=function(e,t){return gn(e,t,"months")},i.isDate=c,i.locale=ut,i.invalid=g,i.duration=Yt,i.isMoment=w,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Nt.apply(null,arguments).parseZone()},i.localeData=ft,i.isDuration=Dt,i.monthsShort=function(e,t){return gn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=dt,i.updateLocale=function(e,t){if(null!=t){var n,r,i=ot;null!=(r=ct(e))&&(i=r._config),t=I(i,t),(n=new M(t)).parentLocale=at[e],at[e]=n,ut(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return C(at)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=fn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(223)(e))},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"h",function(){return _}),n.d(t,"f",function(){return w}),n.d(t,"g",function(){return E}),n.d(t,"i",function(){return k});n(127),n(79);var r=n(330),i=n.n(r),o=n(199),a=n.n(o),s=n(48),l=n.n(s),c=n(8),u=n.n(c),d=l()(u.a)(window.env||{}),f="rise"===d("SERVICE_PRODUCT"),p=d("SESSION_COOKIE_NAME"),h=f?p:"_articulate_user_id",m=f?p:"_articulate_rise_",g=function(){return i.a.load(m)},v=function(){return g()?a()(g()).sub||a()(g()).aid:""},y=function(){return g()?a()(g()).roles:[]},b=function(){return g()&&a()(g()).subscription||{}},_=function(){return g()?a()(g()).tenantId:""},w=function(){return b().plan_id||""},E=function(){return b().status||""},k=function(){return!!g()&&a()(g()).staff}},function(e,t,n){var r=n(118),i=n(193),o=n(671),a=n(280).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return null==t||t!=t?e:t})},function(e,t,n){"use strict";n.d(t,"b",function(){return b}),n.d(t,"d",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"a",function(){return E});var r=n(743),i=n.n(r),o=n(398),a=n.n(o),s=n(1205),l=n.n(s),c=n(744),u=n.n(c),d=n(584),f=n.n(d),p=n(745),h=n.n(p),m=n(1206),g=n.n(m),v=n(32),y=n.n(v),b=h()(u.a),_=y()(u.a,function(){return{}}),w=h()(l.a),E=a()(i()(w),i()(f.a));g()(E)},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $}),n.d(t,"c",function(){return Y}),n.d(t,"d",function(){return V});var r=n(294),i=n.n(r),o=n(18),a=n.n(o),s=n(104),l=n.n(s),c=n(6),u=n.n(c),d=n(120),f=n.n(d),p=n(60),h=n.n(p),m=n(1174),g=n.n(m),v=n(46),y=n.n(v),b=n(115),_=n.n(b),w=n(48),E=n.n(w),k=n(55),x=n.n(k),S=n(72),T=n.n(S),C=n(335),O=n.n(C),A=n(17),N=n.n(A),I=n(99),M=n.n(I),j=n(23),L=n.n(j),P=n(8),D=n.n(P),R=n(724),F=n.n(R),B=n(332),U=n.n(B),q=h()(3,function(e,t,n){return n[e]==t}),z=f()(function(e,t,n){return i()(e,n,t)}),H=function(e){return-1===e},W=h()(3,function(e,t,n){return L()(_()(q("id",t)),x()(H,a()(n),z(e,n)))(n)}),$=(h()(3,function(e,t,n){return L()(_()(q(e,t)),H,M.a)(n)}),function(e){return y()(l()(q("id",e)))}),Y=h()(3,function(e,t,n){return O()(t,n[e],F()(e,1,n))}),V=h()(3,function(e,t,n){return W(E()(N.a)(t),e,n)}),K=(U()(g()(D()("createdAt"))),u()(M.a,T.a));y()(K)},function(e,t,n){var r=n(34),i=n(250);e.exports=r(i)},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){e.exports=n(799)},function(e,t,n){"use strict";n.d(t,"a",function(){return O}),n.d(t,"b",function(){return A});var r=n(3),i=n.n(r),o=n(96),a=n.n(o),s=n(1139),l=n.n(s),c=n(159),u=n.n(c),d=n(256),f=n.n(d),p=n(488),h=n.n(p),m=n(1140),g=n.n(m),v=n(184),y=n.n(v),b=n(472),_=n.n(b),w=n(1141),E=n.n(w),k=n(230),x=n.n(k),S=n(148);function T(e,t){return void 0===t?e:t}y()(E()(function(e,t){var n,r,i=t.split("=");return g()(h()(n=i[0]).call(n),h()(r=i[1]).call(r),e)},{}),x()(/; */));function C(e,t){var n,r,i=f()(t).call(t,":"),o=h()(n=t.substr(0,i)).call(n).toLowerCase(),a=h()(r=t.substr(i+1)).call(r);return o&&(e[o]=e[o]?e[o]+", "+a:a),e}function O(e){return Math.floor(e.loaded/e.total*100)}function A(e){var t,n=e.data,r=T(_.a,e.deserialize),o=T({},e.headers),s=T(!1,e.json),c=T(!1,e.jwt),d=T(null,e.token),f=T("GET",e.method),p=e.onUploadProgress,h=T(_.a,e.serialize),m=e.url,g=T(!1,e.withCredentials),v=new XMLHttpRequest;if(v.withCredentials=g,s&&(r=JSON.parse,h=l.a,o["Content-Type"]="application/json"),c){var y=d||Object(S.d)();o.Authorization="Bearer "+y}"GET"===f&&n&&(m+="?"+function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}(n));var b=new a.a(function(e,t){for(var i in v.addEventListener("abort",t),v.addEventListener("error",t),v.addEventListener("load",function(){var n,i;v.status>=400?t(r(v.response)):e({body:r(v.response),headers:(n=v.getAllResponseHeaders(),n?u()(i=n.split("\n")).call(i,C,{}):{}),status:v.status})}),v.upload&&"function"==typeof p&&v.upload.addEventListener("progress",p),v.open(f,m),o)v.setRequestHeader(i,o[i]);"GET"!==f&&n?v.send(h(n)):v.send()});return b.abort=i()(t=v.abort).call(t,v),b}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"i",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"g",function(){return d}),n.d(t,"f",function(){return f}),n.d(t,"b",function(){return p}),n.d(t,"c",function(){return h}),n.d(t,"e",function(){return m});var r=n(96),i=n.n(r),o=window.RiseDotCom,a=function(e){return o&&o[e]},s=function(){a("addFavorite")&&i.a.resolve().then(o.addFavorite).catch(console.error)},l=function(){a("removeFavorite")&&i.a.resolve().then(o.removeFavorite).catch(console.error)},c=function(){a("exit")&&o.exit()},u=function(){a("on")&&o.on.apply(o,arguments)},d=function(){a("off")&&o.off.apply(o,arguments)},f=function(){a("goToLearn")&&o.goToLearn.apply(o,arguments)},p=function(){if(a("downloadCertificate"))return o.downloadCertificate.apply(o,arguments)},h=function(){if(a("downloadCertificateCancel"))return o.downloadCertificateCancel.apply(o,arguments)},m=function(){if(a("fetchLpUpNext"))return o.fetchLpUpNext.apply(o,arguments)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Helpers=t.ScrollElement=t.ScrollLink=t.animateScroll=t.scrollSpy=t.Events=t.scroller=t.Element=t.Button=t.Link=void 0;var r=p(n(1816)),i=p(n(1823)),o=p(n(1824)),a=p(n(533)),s=p(n(684)),l=p(n(682)),c=p(n(888)),u=p(n(681)),d=p(n(890)),f=p(n(1825));function p(e){return e&&e.__esModule?e:{default:e}}t.Link=r.default,t.Button=i.default,t.Element=o.default,t.scroller=a.default,t.Events=s.default,t.scrollSpy=l.default,t.animateScroll=c.default,t.ScrollLink=u.default,t.ScrollElement=d.default,t.Helpers=f.default,t.default={Link:r.default,Button:i.default,Element:o.default,scroller:a.default,Events:s.default,scrollSpy:l.default,animateScroll:c.default,ScrollLink:u.default,ScrollElement:d.default,Helpers:f.default}},function(e,t,n){e.exports=n(1620)},function(e,t,n){var r=n(353),i=n(87),o=n(60);e.exports=i(function(e){return o(e.length,function(){var t=0,n=arguments[0],i=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var e=n.apply(this,r(arguments,[t,i]));return t+=1,e},e.apply(this,o)})})},function(e,t,n){var r=n(227);e.exports=r(-1)},function(e,t,n){e.exports=n(2174)()},function(e,t,n){var r=n(133),i=n(337);e.exports=n(125)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(293),i=n(564);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){var r=n(379),i=n(34),o=n(48),a=n(112);e.exports=i(function(e,t){return a(o(r)(e),t)})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(20),i=n(140),o=n.n(i),a=n(416),s=(o()(r.action,[a.a,null]),Object(r.action)(a.b))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";t.a={ANY:"ANY",CORRECT_INCORRECT:"CORRECT_INCORRECT",CHOICE:"CHOICE"}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(28),i=n.n(r)()("rise/items/"),o=i("PUT_ITEM"),a=i("PUT_ITEM_THROTTLE")},function(e,t,n){var r=n(891),i=n(892),o=n(1829),a=n(894);e.exports=a(3,function(e,t){return i(r(e),[t,o])})},function(e,t,n){(function(t){var n="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",r=t.crypto||t.msCrypto,i=Math.floor,o=Math.random;e.exports=r&&r.getRandomValues?function(e){void 0===e&&(e=16);var t=new Uint8Array(e);return r.getRandomValues(t),"function"!=typeof t.reduce&&(t=[].slice.call(t)),t.reduce(function(e,t){return e+n[t%64]},"")}:function(e){void 0===e&&(e=16);for(var t="";t.length<e;)t+=n[i(o()*n.length)];return t}}).call(this,n(69))},function(e,t,n){e.exports=n(2162)()},function(e,t,n){var r=n(125),i=n(427),o=n(337),a=n(188),s=n(242),l=n(142),c=n(763),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(309),i=n(495),o=n(143),a=n(117),s=n(432);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var m,g,v=o(t),y=i(v),b=r(s,h,3),_=a(y.length),w=0,E=n?p(t,_):l?p(t,0):void 0;_>w;w++)if((f||w in y)&&(g=b(m=y[w],w,v),e))if(n)E[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:E.push(m)}else if(u)return!1;return d?-1:c||u?u:E}}},function(e,t,n){var r=n(137);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,n){var r=n(129),i=n(250),o=n(352),a=n(862),s=n(19),l=n(36);e.exports=r(function e(t,n,r){if(0===t.length)return n;var c=t[0];if(t.length>1){var u=!l(r)&&i(c,r)?r[c]:a(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,u)}if(a(c)&&o(r)){var d=[].concat(r);return d[c]=n,d}return s(c,n,r)})},function(e,t){e.exports={"@@functional/placeholder":!0}},function(e,t,n){var r=n(456),i=n(1724),o=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return r(function(e){var n=typeof e;return"function"===n?e.apply(void 0,t):e&&"object"===n?o.apply(void 0,[e].concat(t)):e},e)};e.exports=i(o)},function(e,t,n){e.exports=n(2167)},function(e,t,n){var r=n(34),i=n(60);e.exports=r(function(e,t){return i(e,function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i})})},function(e,t,n){e.exports=n(2052)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(4),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2090),n(2)),d=n.n(u),f=n(1),p=n.n(f),h=n(18),m=n.n(h),g=n(398),v=n.n(g),y=n(32),b=n.n(y),_=n(258),w=n(399),E=n(270),k=n(400),x=n(88),S=function(e){return e&&(e.key||e.src)&&!e.isProcessing&&!e.error},T=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"renderAudio",value:function(t){var n,r=this.props,o=r.allowTabNavigation,a=r.index,s=r.labels,l=r.lessonNumber,c=t.audio,u=i()(n="audio-".concat(l,"-")).call(n,a);if(S(c))return e.createElement(_.b,{allowTabNavigation:o,id:u,key:u,labels:s,mediaSrc:c.key,shouldPause:c.pause})}},{key:"renderImage",value:function(t){var n=this.props,r=n.allowTabNavigation,i=n.index,o=n.onLoad,a=n.opts,s=t.image,l="image-".concat(i),c=a.disableZoom;if(S(s))return e.createElement(E.a,{key:l,id:l,src:Object(x.a)(s),alt:s.alt,disableZoom:c,allowTabNavigation:r,onLoad:o})}},{key:"renderVideo",value:function(t){var n,r,o=t.video,a=void 0===o?{}:o,s=this.props,l=s.allowTabNavigation,c=s.blockId,u=s.lessonNumber,d=s.index,f=s.labels,p=s.onFullScreenChange,h=s.enableVideoPlaybackSpeed,g=(r=c,b()(m()(r),v()("-".concat(r))))(i()(n="video-".concat(u,"-")).call(n,d));if(S(a))return e.createElement(k.a,{allowTabNavigation:l,captionUID:a.captionUID,captions:a.captions,id:g,key:g,labels:f,onFullScreenChange:p,poster:a.poster,shouldPause:a.pause,src:a.key,canAdjustPlaybackSpeed:h})}},{key:"renderEmbed",value:function(t){var n=this.props,r=n.allowTabNavigation,i=n.opts,o=n.labels,a=i.fullEmbed,s=i.showMetaData,l=void 0===s||s,c=t.embed,u="embed-".concat(this.props.index);if(S(c))return e.createElement(w.a,{labels:o,key:u,isLesson:a,id:u,showMetaData:l,data:c,allowTabNavigation:r,shouldPause:c.pause})}},{key:"render",value:function(){var t=this.props,n=t.media,r=t.hasPadding,i=d()({"media-group":r});return e.createElement("div",{className:i},this.renderAudio(n),this.renderImage(n),this.renderVideo(n),this.renderEmbed(n))}}],[{key:"propTypes",get:function(){return{allowTabNavigation:p.a.bool,blockId:p.a.string,hasPadding:p.a.bool,index:p.a.string,media:p.a.object,onLoad:p.a.func,opts:p.a.object}}},{key:"defaultProps",get:function(){return{media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(453),i=n(454),o=n(93),a="compose: Functions required";function s(e,t){if(!o(t))throw new TypeError(a);return function(){return t.call(null,e.apply(null,r(arguments)))}}e.exports=function(){if(!arguments.length)throw new TypeError(a);var e=r(arguments).slice().reverse(),t=e[0];if(!o(t))throw new TypeError(a);return e.slice(1).concat(i).reduce(s,t)}},function(e,t,n){"use strict";var r=!0,i="Invariant failed";t.a=function(e,t){if(!e)throw r?new Error(i):new Error(i+": "+(t||""))}},function(e,t,n){"use strict";var r=n(1073);n.d(t,"a",function(){return r.a});var i=n(1074);n.d(t,"b",function(){return i.a});var o=n(1075);n.d(t,"c",function(){return o.a});var a=n(1076);n.d(t,"d",function(){return a.a});var s=n(1077);n.d(t,"e",function(){return s.a});var l=n(1078);n.d(t,"f",function(){return l.a});var c=n(1079);n.d(t,"g",function(){return c.a})},function(e,t,n){"use strict";var r=n(66),i=n(155),o=n.n(i),a=n(236),s=n(4),l=n.n(s),c=(n(96),n(268)),u=n.n(c),d=n(127),f=n.n(d),p=n(104),h=n.n(p),m=n(36),g=n.n(m),v=n(199),y=n.n(v),b=n(1171),_=n.n(b);function w(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var E=function(e,t){var n;void 0===t&&(t=w);var r,i=[],o=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return o&&n===this&&t(a,i)?r:(r=e.apply(this,a),o=!0,n=this,i=a,r)}},k=n(41),x=n.n(k),S=n(109),T=n.n(S),C=n(1172),O=n.n(C),A=n(32),N=n.n(A),I=n(166),M=n.n(I),j=function(){return"visible"===document.visibilityState},L=function(e){document.addEventListener("visibilitychange",function(e){return N()(j,function(){return e()})}(e)),window.addEventListener("focus",function(){return e()})},P=n(29),D=n(21),R=n(200);n.d(t,"a",function(){return $}),n.d(t,"c",function(){return K}),n.d(t,"b",function(){return G}),n.d(t,"d",function(){return X}),n.d(t,"e",function(){return Q}),n.d(t,"f",function(){return Z});var F=h()(g.a),B=!1,U=null,q=[],z=!1,H=["id_token","token"],W=["openid","profile_name","staff"],$="/auth-callback",Y=function(e){return G().then(function(t){return Object(D.b)(e,t.tokenManager.renew,T()(function(){return function(e){return q=M()([e],q)}(e)}),x()(null,"accessToken"),N()(F,R.e))}).catch(function(e){console.error(e),window.location.reload(!0)})},V=function(e){"visible"===document.visibilityState?Y(e):function(e){f()(q).call(q,e)||q.push(e)}(e)},K=function(){return L(function(){var e=Object(R.b)(),t=Object(R.a)(),n=(t?y()(t):{}).exp,r=n&&n<u()()/1e3;g()(e)||!t||r?window.location.reload(!0):z||(z=!0,_()(Y,q).then(function(){return z=!1}))})},G=E(function(){return Promise.resolve().then(n.t.bind(null,1905,7)).then(function(e){var t,n=new(0,e.default)({issuer:Object(P.c)("OIDC_ISSUER_URI"),clientId:Object(P.c)("OKTA_CLIENT_ID"),redirectUri:l()(t="".concat(window.location.origin)).call(t,$),ignoreSignature:!0,tokenManager:{expireEarlySeconds:120,secure:!0}});return n.tokenManager.on("error",function(e){return console.error("tokenManager error; REPORT_ERROR",e)}),n.tokenManager.on("expired",V),n})}),X=function(){var e=Object(a.a)(o.a.mark(function e(t){var n,r,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!B){e.next=2;break}return e.abrupt("return");case 2:return n=O()(),r={responseType:H,state:n,scopes:W},B=!0,window.localStorage.setItem(n,t),e.next=8,G();case 8:return i=e.sent,e.abrupt("return",i.token.getWithRedirect(r));case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Q=function(){return g()(U)?U=G().then(function(e){return e.token.getWithoutPrompt({responseType:H,scopes:W})}).finally(function(){return U=null}):U},Z=function(){var e=Object(a.a)(o.a.mark(function e(t){var n,i,a,s;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(r.a)(t,2),i=n[0],a=n[1],e.next=3,G();case 3:(s=e.sent).tokenManager.add("idToken",i),s.tokenManager.add("accessToken",a);case 6:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()},function(e,t,n){var r=n(495),i=n(202);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(74),i=n(163),o=n(142),a=n(620),s=n(764),l=n(203),c=l.get,u=l.enforce,d=String(s).split("toString");n(428)("inspectSource",function(e){return s.call(e)}),(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||i(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s.call(this)})},function(e,t,n){var r=n(623),i=n(142),o=n(769),a=n(133).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(202),i=/"/g;e.exports=function(e,t,n,o){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(63);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(314),o=n(93),a=n(676);function s(e){return!!e&&o(e.type)}function l(e){return i(e)?"array":typeof e}e.exports=r(function(e,t){return s(e)||s(t)?function(e,t){return s(e)&&s(t)&&e.type()===t.type()}(e,t):a(e)||a(t)?e===t:function(e,t){return e.name===t.constructor.name||t.name===e.constructor.name}(e,t)||l(e)===l(t)})},function(e,t,n){var r=n(224),i=n(530);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){"use strict";var r=n(901),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){var r=n(34),i=n(35),o=n(8);e.exports=r(function(e,t){return i(o(e),t)})},function(e,t,n){"use strict";n.d(t,"b",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return y});var r,i=n(5),o=n(28),a=n.n(o),s=n(18),l=n.n(s),c=n(17),u=n.n(c),d=n(64),f=a()("rise/sessionPreferences/"),p=f("LOAD_SESSION_PREFERENCES"),h=f("SET_PREFERS_KEYBOARD_NAVIGATION"),m=f("SET_STARTING_COURSE_LESSON_SELECTED");t.a=Object(d.d)({prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},(r={},Object(i.a)(r,p,u.a),Object(i.a)(r,h,function(e,t){return u()(e,{prefersKeyboardNavigation:t})}),Object(i.a)(r,m,function(e,t){return u()(e,{startedCourseWithLessonSelected:t})}),r));var g=l()(Object(d.a)(p,null)),v=Object(d.a)(h),y=Object(d.a)(m)},function(e,t,n){"use strict";var r=n(1672);function i(e){this.message=e}i.prototype=new Error,i.prototype.name="InvalidTokenError",e.exports=function(e,t){if("string"!=typeof e)throw new i("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(r(e.split(".")[n]))}catch(e){throw new i("Invalid token specified: "+e.message)}},e.exports.InvalidTokenError=i},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f}),n.d(t,"c",function(){return p}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return m}),n.d(t,"f",function(){return g});var r=n(4),i=n.n(r),o=n(330),a=n.n(o),s=n(29),l=n(148),c=Object(s.c)("SESSION_COOKIE_DOMAIN"),u=function(e,t){var n,r;return i()(n=i()(r="".concat(e,"=")).call(r,t,"; domain=")).call(n,c,"; path=/; secure=true")},d=function(){return a.a.load(l.b)},f=function(){return a.a.load(l.a)},p=function(){return document.cookie="".concat(u(l.b,""),"; Max-Age=-99999999")},h=function(){return document.cookie="".concat(u(l.a,""),"; Max-Age=-99999999")},m=function(e){return document.cookie=u(l.b,e)},g=function(e){return document.cookie=u(l.a,e)}},function(e,t,n){"use strict";var r=n(1150),i=n.n(r),o=n(168),a=n(0),s=n.n(a),l=(n(1),n(113)),c=n(390),u=(n(391),n(185));function d(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function f(e,t,n,r){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(l.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(c.a)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function p(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}}"undefined"==typeof window||!window.document||window.document.createElement;function h(e,t,n){return Math.min(Math.max(e,t),n)}var m=n(731),g=n.n(m),v=(n(1790),n(211)),y=n(1151),b=n.n(y);n.d(t,"a",function(){return T}),n.d(t,"b",function(){return w}),n.d(t,"c",function(){return M}),n.d(t,"e",function(){return j}),n.d(t,"d",function(){return _});var _=function(e){var t=i()();return t.Provider.displayName=e+".Provider",t.Consumer.displayName=e+".Consumer",t}("Router"),w=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen(function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e})),n}Object(o.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return s.a.createElement(_.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(s.a.Component);s.a.Component;s.a.Component;var E={},k=1e4,x=0;function S(e,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,l=n.sensitive,c=void 0!==l&&l;return[].concat(r).reduce(function(t,n){if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=E[n]||(E[n]={});if(r[e])return r[e];var i=[],o={regexp:g()(e,i,t),keys:i};return x<k&&(r[e]=o,x++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,l=i.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),f=e===u;return o&&!f?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:f,params:a.reduce(function(e,t,n){return e[t.name]=d[n],e},{})}},null)}var T=function(e){function t(){return e.apply(this,arguments)||this}return Object(o.a)(t,e),t.prototype.render=function(){var e=this;return s.a.createElement(_.Consumer,null,function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),o=e.props,a=o.children,c=o.component,d=o.render;(Array.isArray(a)&&0===a.length&&(a=null),"function"==typeof a)&&(void 0===(a=a(i))&&(a=null));return s.a.createElement(_.Provider,{value:i},a&&!function(e){return 0===s.a.Children.count(e)}(a)?a:i.match?c?s.a.createElement(c,i):d?d(i):null:null)})},t}(s.a.Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function A(e){return"string"==typeof e?e:d(e)}function N(e){return function(){Object(u.a)(!1)}}function I(){}s.a.Component;var M=function(e){function t(){return e.apply(this,arguments)||this}return Object(o.a)(t,e),t.prototype.render=function(){var e=this;return s.a.createElement(_.Consumer,null,function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return s.a.Children.forEach(e.props.children,function(e){if(null==r&&s.a.isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?S(i.pathname,Object(l.a)({},e.props,{path:o})):t.match}}),r?s.a.cloneElement(n,{location:i,computedMatch:r}):null})},t}(s.a.Component);function j(e){var t=function(t){var n=t.wrappedComponentRef,r=Object(v.a)(t,["wrappedComponentRef"]);return s.a.createElement(T,{children:function(t){return s.a.createElement(e,Object(l.a)({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,b()(t,e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r,i,o,a=n(765),s=n(97),l=n(163),c=n(142),u=n(496),d=n(430),f=n(74).WeakMap;if(a){var p=new f,h=p.get,m=p.has,g=p.set;r=function(e,t){return g.call(p,e,t),t},i=function(e){return h.call(p,e)||{}},o=function(e){return m.call(p,e)}}else{var v=u("state");d[v]=!0,r=function(e,t){return l(e,v,t),t},i=function(e){return c(e,v)?e[v]:{}},o=function(e){return c(e,v)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(164);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){e.exports=n(1617)},function(e,t,n){var r=n(34),i=n(668),o=n(60),a=n(319),s=n(197),l=n(82);e.exports=r(function(e,t){return o(l(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,i(function(e){return e.apply(r,n)},t))})})},function(e,t,n){var r=n(528);e.exports=r(1,"join")},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(153),i=n.n(r),o=n(36),a=n.n(o),s=n(29),l=n(411),c=n(148),u={bigHeadMode:{name:"Big Head Mode",description:"Enables big head mode, a way to easily test feature flagging."},copyLink:{name:"Course Copy Link",description:"Enables course copy link availability."},customVideo:{name:"Custom Videos",description:"Enables custom video blocks for streaming videos."},modernOverview:{name:"Modern Overview",defaults:{rise:!0},description:"Enables modern course overview.",overrides:{360:!1}}},d=function(e){return"feature-".concat(e)},f=function(e){var t=u[e];return!!t&&(!(!t.defaults||!t.defaults[Object(s.c)("SERVICE_PRODUCT")])&&t.defaults[Object(s.c)("SERVICE_PRODUCT")])},p=function(e){return function(e){var t=(u[e]||{}).overrides,n=Object(s.c)("SERVICE_PRODUCT");return t&&i()(n,t)}(e)?function(e){var t=(u[e]||{}).overrides,n=Object(s.c)("SERVICE_PRODUCT");return t&&t[n]}(e):Object(c.i)()?function(e){if(u[e]){var t=d(e),n=Object(l.a)(t);return a()(n)?f(e):"true"===n}}(e):f(e)}},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){return n.replace(e,t)})},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(87),i=n(1602);e.exports=r(i(!0))},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(30),i=n.n(r),o=(n(26),function(e){return function(){return document.querySelector(e)}}),a=function(e){return i()(Array.prototype).call(e)}},function(e,t,n){var r=n(87),i=n(1906);e.exports=r(i)},function(e,t,n){e.exports=n(1740)},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(31),i=n(123),o=(n(2145),n(0)),a=n.n(o),s=function(e){var t=e.children,n=e.className;return a.a.createElement("div",{className:"authoring-tooltip ".concat(n||"")},t)},l=function(e){var t=e.children,n=e.side,o=Object(i.a)(e,["children","side"]);return a.a.createElement("span",Object(r.a)({},o,{className:"authoring-tooltip__content authoring-tooltip__content--".concat(n)}),t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s});var r=n(28),i=n.n(r)()("rise/collaborators/"),o=i("CREATE_COLLABORATOR"),a=i("DELETE_COLLABORATOR"),s=i("SET_COLLABORATOR_ROLE")},function(e,t,n){"use strict";n.d(t,"c",function(){return w}),n.d(t,"d",function(){return E}),n.d(t,"e",function(){return k}),n.d(t,"f",function(){return x}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return C}),n.d(t,"j",function(){return O}),n.d(t,"b",function(){return I}),n.d(t,"a",function(){return M});var r,i,o,a,s=n(182),l=n.n(s),c=n(66),u=n(4),d=n.n(u),f=n(120),p=n.n(f),h=n(83),m=n.n(h),g=n(26),v=n.n(g),y=n(25),b=n.n(y),_=["media","storyline"],w=b()(null,["payload","result"]),E=v()(_),k=v()(d()(r=[]).call(r,_,["thumbnail"])),x=v()(d()(i=[]).call(i,_,["meta","version"])),S=b()(null,d()(o=[]).call(o,_,["src"])),T=v()(["payload","result","completion"]),C=v()(d()(a=[]).call(a,_,["processing"])),O=b()(!1,["payload","result","score"]),A=p()(function(e,t){if(!t)return!1;var n=e.majorLimit,r=e.minorLimit,i=t.split("."),o=Object(c.a)(i,2),a=o[0],s=o[1],u=l()(a)===n&&s>=r;return a>n||u}),N={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},I=A({majorLimit:3,minorLimit:13}),M=function(e,t,n){var r,i,o,a=t&&(i=n,o=m()(i.split("-")),N[o]);return a?d()(r="".concat(e)).call(r,a):"".concat(e,"?rise=true")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(514),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(345);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(530);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(885),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){e.exports=n(1689)},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return Number(e)+Number(t)})},function(e,t,n){e.exports=n(1625)},function(e,t,n){e.exports=n(1634)},function(e,t,n){var r=n(528);e.exports=r(1,"split")},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e<t})},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){return e(n[t])})},function(e,t,n){e.exports=n(1857)},function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return s});var r=n(729),i=function(){return Math.random().toString(36).substring(7).split("").join(".")},o={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function a(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function s(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var l=e,c=t,u=[],d=u,f=!1;function p(){d===u&&(d=u.slice())}function h(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return c}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return p(),d.push(e),function(){if(t){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,p();var n=d.indexOf(e);d.splice(n,1),u=null}}}function g(e){if(!a(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,c=l(c,e)}finally{f=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}return g({type:o.INIT}),(i={dispatch:g,subscribe:m,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");l=e,g({type:o.REPLACE})}})[r.a]=function(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[r.a]=function(){return this},e},i}function l(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function c(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var a,s=Object.keys(n);try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:o.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:o.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,i={},o=0;o<s.length;o++){var c=s[o],u=n[c],d=e[c],f=u(d,t);if(void 0===f){var p=l(c,t);throw new Error(p)}i[c]=f,r=r||f!==d}return(r=r||s.length!==Object.keys(e).length)?i:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=u(i,t))}return n}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map(function(e){return e(i)});return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(n,!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n,{dispatch:r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}.apply(void 0,o)(n.dispatch)})}}}},function(e,t,n){var r=n(860),i=n(87);e.exports=i(function(e){return r.apply(null,[{}].concat(e))})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(96),i=n.n(r);function o(e,t,n,r,o,a,s){try{var l=e[a](s),c=l.value}catch(e){return void n(e)}l.done?t(c):i.a.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new i.a(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,l,"next",e)}function l(e){o(a,r,i,s,l,"throw",e)}s(void 0)})}}},function(e,t,n){"use strict";n.d(t,"d",function(){return p}),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return v}),n.d(t,"c",function(){return y});var r=n(66),i=n(20),o=n(60),a=n.n(o),s=n(45),l=n.n(s),c=n(267),u=n.n(c),d=n(21),f=n(414),p=(Object(i.action)(f.a),Object(i.action)(f.b)),h=function(e,t,n){return"debounce"===e||"throttle"===e?function(e){return t(e).run().bimap(n,l.a)}:function(e){return t(e).bimap(n,l.a)}},m=function e(t){return function(n,i){return function(o){var a=Object(r.a)(n,2),s=a[0],l=a[1],c=e(t)(n,i);Object(d.c)(i,u()([s,h(t,l,function(){return p({action:c,tryAgain:!0})})]),o)}}},g=a()(2,m("default")),v=a()(2,m("debounce")),y=a()(2,m("throttle"))},function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return h});var r=n(124),i=n.n(r),o=n(26),a=n.n(o),s=n(25),l=n.n(s),c=n(23),u=n.n(c),d=n(8),f=n.n(d),p=u()(l()({},[0]),i()(a()(["media","embed","embedType"]),a()(["media","embed","type"]))),h=i()(f()("embedType"),f()("type"))},function(e,t,n){"use strict";var r=n(747),i=n.n(r);i.a.dynamicDrop(!0),t.a=i.a},function(e,t,n){"use strict";n.d(t,"b",function(){return Z}),n.d(t,"g",function(){return J}),n.d(t,"h",function(){return ee}),n.d(t,"a",function(){return te}),n.d(t,"d",function(){return ne}),n.d(t,"c",function(){return re}),n.d(t,"e",function(){return ie}),n.d(t,"f",function(){return oe}),n.d(t,"i",function(){return ae});var r=n(0),i=n.n(r),o=n(18),a=n.n(o),s=n(590),l=n.n(s),c=n(6),u=n.n(c),d=n(79),f=n.n(d),p=n(40),h=n.n(p),m=n(46),g=n.n(m),v=n(115),y=n.n(v),b=n(48),_=n.n(b),w=n(83),E=n.n(w),k=n(45),x=n.n(k),S=n(106),T=n.n(S),C=n(51),O=n.n(C),A=n(35),N=n.n(A),I=n(23),M=n.n(I),j=n(197),L=n.n(j),P=n(8),D=n.n(P),R=n(41),F=n.n(R),B=n(14),U=n.n(B),q=n(332),z=n.n(q),H=n(395),W=n.n(H),$=n(271),Y=n.n($),V=n(32),K=n.n(V),G=n(47),X=l()(x.a),Q=g()(U()("correct",!0)),Z=u()(K()(h()(-1),a()(0)),y()(U()("correct",!0))),J=function(e){var t=e.answers,n=e.fillinValue,r=e.isCaseSensitive?Y.a:u()(Y.a,W.a);return M()(N()(F()("","title")),N()(r),f()(r(n)))(t)},ee=function(e){var t=e.answers,n=e.selectedIndices;return h()(z()(X,n),u()(z()(X),N()(u()(_()(y.a)(t),U()("id"))),ne)(t))},te=function(e){return{MATCHING:x.a,FILL_IN_THE_BLANK:ie,MULTIPLE_CHOICE:x.a,MULTIPLE_RESPONSE:x.a}[e]},ne=u()(L()("id"),Q),re=u()(E.a,ne),ie=g()(U()("correct",!0)),oe=u()(D()("id"),E.a),ae=u()(O.a,T.a);i.a.createElement(G.x,null),i.a.createElement(G.y,null),i.a.createElement(G.s,null),i.a.createElement(G.w,null)},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(5),a=n(4),s=n.n(a),l=n(123),c=n(31),u=n(96),d=n.n(u),f=n(37),p=n.n(f),h=n(10),m=n(7),g=n(11),v=n(9),y=n(12),b=(n(2456),n(0)),_=n.n(b),w=n(119),E=n(261),k=n(158),x=n.n(k),S=n(178),T=n.n(S),C=n(139),O=n.n(C),A=n(2),N=n.n(A),I=n(104),M=n.n(I),j=n(6),L=n.n(j),P=n(28),D=n.n(P),R=n(46),F=n.n(R),B=n(39),U=n.n(B),q=n(36),z=n.n(q),H=n(35),W=n.n(H),$=n(17),Y=n.n($),V=n(147),K=n.n(V),G=n(77),X=n.n(G),Q=n(26),Z=n.n(Q),J=n(42),ee=n.n(J),te=n(14),ne=n.n(te),re=n(41),ie=n.n(re),oe=n(1291),ae=n.n(oe),se=n(418),le=n.n(se),ce=n(84),ue=n(47),de=n(18),fe=n.n(de),pe=n(209),he=fe()(null),me=n(88),ge=n(29),ve=n(364),ye=n(105),be=n(81),_e=n(602),we=n(604),Ee=n(52),ke=n(30),xe=n.n(ke),Se=n(573),Te=n(576),Ce=n(574);var Oe=n(159),Ae=n.n(Oe),Ne=(n(2457),n(605)),Ie=n(3),Me=n.n(Ie),je=n(13),Le=(n(2458),n(201)),Pe=n(50),De=n(198),Re=n(405),Fe=n(216),Be=n(606),Ue=function(e){function t(){var e,n,r,i,o;Object(h.a)(this,t);for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];return(o=Object(g.a)(this,(e=Object(v.a)(t)).call.apply(e,s()(n=[this]).call(n,l)))).handleClick=Me()(r=o.handleClick).call(r,Object(je.a)(o)),o.handleRestrictedClick=Me()(i=o.handleRestrictedClick).call(i,Object(je.a)(o)),o}return Object(y.a)(t,e),Object(m.a)(t,[{key:"handleClick",value:function(e){var t=this.props.history,n=e.currentTarget.hash;e.preventDefault(),x.a.Events.scrollEvent.register("end",function(){t.push(xe()(n).call(n,1)),x.a.Events.scrollEvent.remove("end")}),x.a.animateScroll.scrollTo(0,{containerId:"overview"}),Object(Pe.a)(Object(De.d)(!0))}},{key:"handleRestrictedClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var e,t=this.props,n=t.isRestricted,r=t.lesson,i=r.icon,o=r.id,a=r.title,l=t.passedQuiz,c=t.percentComplete,u=t.restrictedText,d="#/lessons/".concat(o),f=_.a.createElement(b.Fragment,null,_.a.createElement("div",{className:"overview-list-item__icon","aria-hidden":"true"},_.a.createElement(Re.a,{icon:i})),_.a.createElement("div",{className:"overview-list-item__title brand--ui"},a),_.a.createElement("div",{className:"overview-list-item__pie"},_.a.createElement(Be.a,{percentComplete:c,passedQuiz:l})));return n?_.a.createElement("li",{className:"overview-list-item overview-list-item--restricted",role:"listitem"},_.a.createElement(Fe.a,{className:"runtime-tooltip"},_.a.createElement("a",{"aria-disabled":"true","aria-label":s()(e="The ".concat(a," lesson is currently unavailable: ")).call(e,u,"."),className:"overview-list-item__link",disabled:!0,href:"#/",onClick:this.handleRestrictedClick},f,_.a.createElement(Fe.b,{"aria-hidden":"true",side:"top"},u)))):_.a.createElement("li",{className:"overview-list-item",role:"listitem"},_.a.createElement("a",{className:"overview-list-item__link",href:d,onClick:this.handleClick},f))}}]),t}(b.PureComponent),qe=Object(Le.e)(Ue),ze=Object(pe.a)("modernOverview"),He=Object(b.memo)(function(e){var t=e.course,n=e.courseProgress,r=e.labels,o=e.lessons,a=e.restrictingQuiz,s=function(e){return Ae()(e).call(e,function(e,t){return"section"===t.type?e.push([t]):e[e.length-1].push(t),e},[[]])}(o),l=N()("overview-list",{"overview-list--modern":ze});return _.a.createElement("nav",{className:l},i()(s).call(s,function(e,o){var s,l=(s=e,Object(Se.a)(s)||Object(Te.a)(s)||Object(Ce.a)()),c=l[0],u=void 0===c?{}:c,d=xe()(l).call(l,1),f=u.title,p="section"===u.type,h=p?d:e;return _.a.createElement("section",{key:o},p&&f&&_.a.createElement("h3",{className:"overview-list__section-title brand--ui"},f),_.a.createElement("ol",{className:"overview-list__list",role:"list"},i()(h).call(h,function(e){var i=Object(ye.b)({course:t,courseProgress:n,lesson:e,restrictingQuiz:a}),o=Object(ye.a)({labels:r,restrictions:i}),s=Object(Ne.a)(n,e.id),l=s.percentComplete,c=s.passedQuiz;return _.a.createElement(qe,{isRestricted:i.isRestricted,key:e.id,lesson:e,passedQuiz:c,percentComplete:l,restrictedText:o,failedQuizWithNoAttempts:void 0})})))}))}),We=n(150),$e=n.n(We),Ye=n(208),Ve=n.n(Ye),Ke=n(23),Ge=n.n(Ke),Xe=n(587),Qe=n.n(Xe),Ze=n(271),Je=n.n(Ze),et=Ge()($e()({}),Qe()(["first_name","last_name"]),Ve()(" "),Je.a),tt=(n(2459),function(e){var t=e.className,n=e.decorative,r=e.size,i=Object(l.a)(e,["className","decorative","size"]),o=Z()(["avatars","medium"],i),a=n?"":et(i)||"Unknown User";return o?_.a.createElement("img",{alt:a,className:t||"user-avatar",src:o,style:{height:r,width:r}}):_.a.createElement(ue.A,{decorative:n,height:r,title:a,width:r})}),nt=n(366);n.d(t,"j",function(){return st}),n.d(t,"e",function(){return lt}),n.d(t,"d",function(){return ct}),n.d(t,"a",function(){return mt}),n.d(t,"i",function(){return gt}),n.d(t,"b",function(){return yt}),n.d(t,"c",function(){return bt}),n.d(t,"f",function(){return _t}),n.d(t,"h",function(){return Pt}),n.d(t,"g",function(){return Dt});var rt,it=Object(pe.a)("modernOverview"),ot=ae()(W()(L()(X()(T.a,!it),D()("brand--"))),Y.a,{}),at=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N()(e,ot(n))},st=function(e){function t(){return Object(h.a)(this,t),Object(g.a)(this,Object(v.a)(t).apply(this,arguments))}return Object(y.a)(t,e),Object(m.a)(t,[{key:"render",value:function(){var e=N()("overview",{"overview--modern":it});return _.a.createElement("div",{className:e,"data-overview":!0,id:"overview"},this.props.children)}},{key:"animate",value:function(e){var t=this,n=this.props.sidebarOpen,r=document.querySelector("[data-overview]"),i=document.querySelector("[data-overview-side]"),o=document.querySelector("[data-overview-side-panel]"),a=document.querySelector("[data-overview-side-panel-content]"),s=n?document.querySelector("[data-lesson-side] [data-overview-sidebar-header-wrap]"):{offsetWidth:0,offsetHeight:0},l={width:e?s.offsetWidth:i.offsetWidth,height:e?s.offsetHeight:i.offsetHeight},c={width:e?i.offsetWidth:s.offsetWidth,height:e?i.offsetHeight:s.offsetHeight};return a.style.width="".concat(s.offsetWidth,"px"),o.style.width="".concat(l.width,"px"),o.style.height="".concat(l.height,"px"),r.classList.add(e?"overview--will-enter":"overview--will-exit"),p()(function(){r.classList.add(e?"overview--will-enter-active":"overview--will-exit-active"),(e&&window.innerWidth<960||window.innerWidth>=960)&&(o.style.width="".concat(c.width,"px"),o.style.height="".concat(c.height,"px"))},10),new d.a(function(n){r.addEventListener("transitionend",t.sidePanelTransitionEndRef=function(i){var a=i.target;(e&&a.hasAttribute("data-overview-content")||!e&&a.hasAttribute("data-overview-side-panel-content")||!e&&a.hasAttribute("data-overview")&&window.innerWidth<960)&&(r.removeEventListener("transitionend",t.sidePanelTransitionEndRef),o.style.width=o.style.height="",r.classList.remove("overview--will-enter","overview--will-enter-active","overview--will-exit","overview--will-exit-active"),n())})})}}]),t}(_.a.Component),lt=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(g.a)(this,Object(v.a)(t).call(this,e))).state={coverImageLoaded:!1},n}return Object(y.a)(t,e),Object(m.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,i=r.key,o=r.src,a=i?Object(me.a)(r):o;(i||o)&&(this.image=new Image,this.image.src=a,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})}))}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null)}},{key:"render",value:function(){var e=this.props.coverImage,t=e.media,n=void 0===t?{}:t,r=e.alpha,i=n.image,o=void 0===i?{}:i,a=o.key,s=_.a.Children.toArray(this.props.children),l=a?{backgroundImage:"url('".concat(Object(me.a)(o),"')")}:null,c=N()("overview__side-panel",{"brand--background":!a});return _.a.createElement("div",{className:"overview__side","data-overview-side":!0},_.a.createElement("div",{className:c,"data-overview-side-panel":!0,style:l},this.state.coverImageLoaded?_.a.createElement(we.a,{alpha:r}):null,_.a.createElement("div",{className:"overview__side-panel-content","data-overview-side-panel-content":!0},F()(ne()("type",nt.a),s))),_.a.createElement("div",{className:"overview__side-content","data-overview-content":!0},_.a.createElement("div",{className:"overview__side-container"},_.a.createElement("div",{className:"overview__side-container-content"},F()(M()(ne.a)("type",nt.a),s)))))}}]),t}(_.a.Component),ct=function(e){var t=e.children;return _.a.createElement("div",{className:"overview__main",id:"overview-main",tabIndex:"-1"},_.a.createElement("div",{className:"overview__content"},_.a.createElement("div",{className:"overview__container"},t)))},ut=function(e){return _.a.createElement("div",Object(c.a)({},e,{className:"overview__columns"}))},dt=function(e){return _.a.createElement("div",Object(c.a)({},e,{className:"overview__main-col"}))},ft=(rt="modernOverview",function(e){return Object(pe.a)(rt)?e:he})(function(e){return _.a.createElement("div",Object(c.a)({},e,{className:"overview__aside"}))}),pt=function(e){var t=it?"overview__section-header":"visually-hidden";return _.a.createElement("header",Object(c.a)({},e,{className:t}))},ht=function(e){var t=e.children,n=Object(l.a)(e,["children"]),r=it?at("overview__heading","ui"):null;return _.a.createElement("h2",Object(c.a)({},n,{className:r}),t)},mt=function(e){var t=e.avatar,n=e.authorName;return t&&n?_.a.createElement("div",{className:at("overview__author","ui")},_.a.createElement("div",{className:"overview__author-image",style:{backgroundImage:"url(".concat(Object(be.l)(t),")")}}),_.a.createElement("div",null,_.a.createElement("span",{"aria-hidden":"true"},n),_.a.createElement("span",{className:"visually-hidden"},"By ",n))):null},gt=function(e){var t=e.children;return _.a.createElement("div",{className:"overview__title-wrap"},_.a.createElement(Ee.a,{className:at("overview__title","head"),tagName:"h1",value:t}))},vt=L()(ee()(["hasModernOverview","isPreview"]),ie()({},"global")),yt=Object(E.b)(vt,{})(function(e){var t=e.children,n=e.coverImage,r=e.enrolled,i=e.favoritedAt,o=e.hasModernOverview,a=e.isPreview,s=e.startAgain,u=Object(l.a)(e,["children","coverImage","enrolled","favoritedAt","hasModernOverview","isPreview","startAgain"]),d=Z()(["media","image","key"],n),f=N()("overview__button",{"brand--color":!d,"brand--ui":!o,"overview__outline-btn":s,"overview__start-again":s,"overview__button-enrolled":r||i||a});return _.a.createElement(w.a,Object(c.a)({className:f},u),t)}),bt=function(e){var t=e.text;return _.a.createElement(x.a.Link,{className:"overview__details-trigger",containerId:"overview",duration:1e3,href:"#overview-main",smooth:!0,to:"overview-main"},_.a.createElement("span",{className:at("overview__details-trigger-text","ui")},t),_.a.createElement(ue.f,null))},_t=function(e){var t=e.src,n=e.width,r=e.height;return t?_.a.createElement("div",{className:"overview__logo"},_.a.createElement("img",{src:t,width:n,height:r,alt:"Logo"})):null},wt=function(e){return"<p><br></p>"===e?"":e},Et=function(e){var t=e.publishedAt,n=K()(t);return n.isValid()&&_.a.createElement("span",{className:"overview__description-published"},n.format("[Published] MMMM D, YYYY"))},kt=le()("(min-width: 960px)","isDesktop")(function(e){var t=e.text,n=e.publishedAt,r=e.numLessons,i=e.timeToComplete,o=e.showTimeToComplete,a=e.isDesktop;return wt(t)?_.a.createElement(b.Fragment,null,_.a.createElement(pt,null,_.a.createElement(ht,null,"Description"),ge.e&&a&&_.a.createElement(Et,{publishedAt:n}),!a&&_.a.createElement(St,{numLessons:r,timeToComplete:i,showTimeToComplete:o,standalone:!1})),_.a.createElement(Ee.a,{key:"text",value:wt(t),className:at("overview__description brand--linkColor","body")})):null}),xt=function(e,t){return 1===e?t:s()(t).call(t,"s")},St=function(e){var t,n=e.numLessons,r=e.timeToComplete,i=e.showTimeToComplete,o=e.standalone,a=void 0===o||o,s=r>=36e5?(t=K.a.duration(r).asHours(),Math.round(10*t)/10):K.a.duration(r).asMinutes(),l=N()("overview__stat",{"overview__stat-standalone":!a});return _.a.createElement("ul",{className:l,role:"list"},_.a.createElement("li",{className:"overview__stat-value-wrap",role:"listitem"},_.a.createElement("span",{className:"overview__stat-value"},n),"  Lessons"),ge.e&&i&&_.a.createElement("li",{className:"overview__stat-value-wrap",role:"listitem"},_.a.createElement("span",{className:"overview__stat-value"},s)," ",xt(s,r>=36e5?"Hour":"Minute")))},Tt=function(e){var t=e.avatar,n=e.authorName,r=e.authorTitle;return t&&n?_.a.createElement("section",{className:at("overview__author-card","ui")},_.a.createElement("h2",{className:"visually-hidden"},"Course Author"),_.a.createElement("img",{className:"overview__author-card-image",src:Object(be.l)(t),alt:""}),_.a.createElement("span",{className:"overview__author-card-wrap"},_.a.createElement("span",{className:"overview__author-card-name"},n),r&&_.a.createElement("span",{className:"overview__author-card-title"},r))):null},Ct=function(e){var t,n=e.dueAt;if(!n)return null;var r=Object(ve.b)(n),i=N()("overview__due-date","brand--border",(t={},Object(o.a)(t,"brand--color",!r),Object(o.a)(t,"overview__due-date--urgent brand--background",r),t));return _.a.createElement("div",{className:i},Object(ve.a)(n))},Ot=function(e){var t=e.component;return _.a.createElement("span",{"aria-hidden":"true",className:"overview__requirements-icon"},_.a.createElement(t,{className:"overview__requirements-icon-svg"}))},At=function(e){var t,n=e.completedAt,r=e.courseProgress,i=e.dueAt,o=e.lessons,a=void 0===o?[]:o,l=e.numLessons,c=e.trackingCompletionPercentage,u=e.trackingQuizId,d=!z()(c),f=!!u,p=Math.ceil(c/100*l),h=U()(O()(ne()("type","quiz"),ne()("id",u)),a),m=ie()(void 0,"title",h),g=Z()(["settings","passingScore"],h),v=!d||r.percentComplete>=c,y=Object(ye.d)(r,h,u),w=y.outOfAttempts,E=y.quizPassed,k=!E&&w,x=v&&(E||k);return d||f?_.a.createElement("section",{className:"overview__requirements"},_.a.createElement("h2",{className:"overview__requirements-header"},"Course Requirements"),_.a.createElement("ul",{className:"overview__requirements-list",role:"list"},d&&!isNaN(p)&&_.a.createElement("li",{className:"overview__requirements-list-item",role:"listitem"},v?_.a.createElement("span",{className:"overview__requirements-icon"},_.a.createElement(ue.e,{title:"Requirement complete"})):_.a.createElement(Ot,{component:ue.B}),_.a.createElement("span",null,"Complete",p===l?" all ":s()(t=" ".concat(p," of ")).call(t,l," "),"lessons in this course")),f&&m&&_.a.createElement("li",{className:"overview__requirements-list-item",role:"listitem"},E?_.a.createElement("span",{className:"overview__requirements-icon"},_.a.createElement(ue.e,{title:"Requirement complete"})):k?_.a.createElement("span",{className:"overview__requirements-icon"},_.a.createElement(ue.G,{title:"Quiz failed"})):_.a.createElement(Ot,{component:ue.s}),_.a.createElement("div",null,_.a.createElement("span",null,m,!z()(g)&&_.a.createElement(b.Fragment,null,_.a.createElement("span",{"aria-hidden":"true",className:"overview__requirements-separator"}," | "),"Score of ",g,"% or higher")),k&&_.a.createElement("div",{className:"overview__requirements-no-attempts"},"No attempts remaining."))),ge.e&&!x&&i&&_.a.createElement("li",{role:"listitem"},_.a.createElement(Ct,{dueAt:i})),n&&_.a.createElement("li",{className:"overview__requirements-completed",role:"listitem"},"Completed ",K()(n).format("L")))):null},Nt=function(e){return _.a.createElement("div",Object(c.a)({},e,{className:"overview__author-requirements-wrap"}))},It=function(e){var t=e.categories,n=void 0===t?[]:t;return 0===n.length?null:_.a.createElement("div",{className:"overview__categories-wrap"},_.a.createElement("section",{className:"overview__categories"},_.a.createElement("h2",{className:"overview__categories-header"},"Categories"),_.a.createElement("ul",{className:"overview__categories-list",role:"list"},i()(n).call(n,function(e,t){return _.a.createElement("li",{className:"overview__categories-list-item",key:t,role:"listitem"},_.a.createElement("span",{className:"overview__categories-icon","aria-hidden":"true"},_.a.createElement(ue.c,null)),_.a.createElement("span",{className:"overview__categories-name"},e))}))))},Mt=function(e){var t=e.favoritedAt,n=e.onClick,r=e.onRemove,i=t?r:n,o=t?"Saved to My List":"Save to My List",a=N()({"overview__enroll-heart-filled":t,"overview__enroll-heart-outline":!t});return _.a.createElement("button",{"aria-pressed":!!t,className:"overview__enroll-button",onClick:i,type:"button"},_.a.createElement(ue.u,{isFilled:t,className:a}),o)},jt="".concat(Object(ge.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/trophy.svg"),Lt=le()("(max-width: 500px)","smallAvatar")(function(e){var t=e.certificateDownload,n=e.currentUser,r=e.smallAvatar;return _.a.createElement("div",{className:"overview__completion-wrap"},_.a.createElement("div",{className:"overview__completion-avatar"},_.a.createElement(tt,Object(c.a)({},n,{decorative:!0,size:r?40:60})),_.a.createElement("img",{className:"overview__trophy",src:jt,alt:""})),_.a.createElement("div",{className:"overview__completed"},_.a.createElement("span",{"aria-hidden":"true"},"Completed"),_.a.createElement("span",{className:"visually-hidden"},"Course Completed")),t&&_.a.createElement("div",{className:"overview__certificate"},_.a.createElement(_e.b,null)))}),Pt=function(e){var t=e.certificateDownload,n=e.completedQuizRequirement,r=e.courseBtnText,i=e.coverImage,o=e.currentUser,a=e.enrolled,s=e.enrollmentType,l=e.favoritedAt,c=e.handleAddFavoriteClick,u=e.handleRemoveFavoriteClick,d=e.nextLessonId,f=e.percentComplete,p=e.startAgain;return _.a.createElement("div",{className:N()("overview__continueWrapper",{"overview__start-again-wrapper":p&&a})},_.a.createElement("div",{className:"overview__continueButtonsWrap"},_.a.createElement(ce.CSSTransition,{classNames:"overview__button-transition",in:a||!!l,timeout:0},_.a.createElement(yt,{to:"/lessons/".concat(d),coverImage:i,startAgain:p,enrolled:a,favoritedAt:l},_.a.createElement("span",{className:"overview__continueBtn"},r))),ge.e&&"preview"!==window.viewType&&_.a.createElement(Mt,{enrolled:a,enrollmentType:s,favoritedAt:l,onClick:c,onRemove:u,percentComplete:f,startAgain:p})),_.a.createElement("span",{className:"overview__spacer"}),p&&n&&_.a.createElement(Lt,{currentUser:o,certificateDownload:t}))},Dt=le()("(min-width: 960px)","isDesktop")(function(e){var t=e.authorName,n=e.authorTitle,r=e.avatar,i=e.categories,o=e.completedAt,a=e.course,s=e.courseProgress,l=e.dueAt,c=e.isDesktop,u=e.labels,d=e.lessons,f=e.numLessons,p=e.restrictingQuiz,h=e.showTimeToComplete,m=e.sidebarEnabled,g=e.timeToComplete,v=e.trackingCompletionPercentage,y=e.trackingQuizId;return c?_.a.createElement(b.Fragment,null,_.a.createElement(ut,null,_.a.createElement(ft,null,_.a.createElement("section",null,_.a.createElement("h2",{className:"visually-hidden"},"Course Length"),_.a.createElement(St,{numLessons:f,timeToComplete:g,showTimeToComplete:h})),_.a.createElement(Nt,null,_.a.createElement(Tt,{avatar:r,authorName:t,authorTitle:n}),_.a.createElement(At,{lessons:d,numLessons:f,trackingCompletionPercentage:v,trackingQuizId:y,courseProgress:s,dueAt:l,completedAt:o})),_.a.createElement(It,{categories:i})),_.a.createElement(dt,null,_.a.createElement("section",null,_.a.createElement(kt,{text:a.description,publishedAt:a.publishedAt})),m&&_.a.createElement("section",null,_.a.createElement(pt,null,_.a.createElement(ht,null,"Course Outline"),!a.description&&_.a.createElement(Et,{publishedAt:a.publishedAt})),_.a.createElement(He,{course:a,courseProgress:s,labels:u,lessons:d,restrictingQuiz:p,trackingQuizId:y}))))):_.a.createElement(b.Fragment,null,_.a.createElement(ut,null,it?_.a.createElement(ft,null,_.a.createElement("section",null,_.a.createElement(kt,{text:a.description,publishedAt:a.publishedAt,numLessons:f,timeToComplete:g,showTimeToComplete:h})),_.a.createElement(Nt,null,_.a.createElement(At,{lessons:d,numLessons:f,trackingCompletionPercentage:v,trackingQuizId:y,courseProgress:s,dueAt:l,completedAt:o})),_.a.createElement(It,{categories:i})):_.a.createElement("section",null,_.a.createElement(kt,{text:a.description,publishedAt:a.publishedAt,numLessons:f,timeToComplete:g,showTimeToComplete:h})),_.a.createElement(dt,null,m&&_.a.createElement("section",null,_.a.createElement(pt,null,_.a.createElement(ht,null,"Course Outline"),!a.description&&_.a.createElement(Et,{publishedAt:a.publishedAt})),_.a.createElement(He,{course:a,courseProgress:s,labels:u,lessons:d,restrictingQuiz:p,trackingQuizId:y})))))})},function(e,t,n){var r=n(97);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(133).f,i=n(142),o=n(110)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(142),i=n(143),o=n(496)("IE_PROTO"),a=n(627),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(512),i=n(345);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(176),i=n(280),o=n(343);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(352),i=n(1599);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a))return t.apply(null,o)(a)}return n.apply(this,arguments)}}},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(1091),i=n(98);var o=function(e){i.extend(this,e),this.initialize.apply(this,arguments)};i.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=i.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,o=t._view;return n&&1!==e?(o||(o=t._view={}),i||(i=t._start={}),function(e,t,n,i){var o,a,s,l,c,u,d,f,p,h=Object.keys(n);for(o=0,a=h.length;o<a;++o)if(u=n[s=h[o]],t.hasOwnProperty(s)||(t[s]=u),(l=t[s])!==u&&"_"!==s[0]){if(e.hasOwnProperty(s)||(e[s]=l),(d=typeof u)==typeof(c=e[s]))if("string"===d){if((f=r(c)).valid&&(p=r(u)).valid){t[s]=p.mix(f,i).rgbString();continue}}else if("number"===d&&isFinite(c)&&isFinite(u)){t[s]=c+(u-c)*i;continue}t[s]=u}}(i,o,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return i.isNumber(this._model.x)&&i.isNumber(this._model.y)}}),o.extend=i.inherits,e.exports=o},function(e,t,n){var r=n(666),i=n(129);e.exports=i(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}))},function(e,t,n){e.exports=n(1644)},function(e,t,n){"use strict";var r=n(0),i=n(1777),o=n(1782);function a(){}a.prototype=Object.create(r.Component.prototype),a.displayName="DocumentTitle",a.propTypes={title:i.string.isRequired},a.prototype.render=function(){return this.props.children?r.Children.only(this.props.children):null},e.exports=o(function(e){var t=e[e.length-1];if(t)return t.title},function(e){var t=e||"";t!==document.title&&(document.title=t)})(a)},function(e,t,n){"use strict";n.d(t,"b",function(){return N}),n.d(t,"a",function(){return I});var r=n(30),i=n.n(r),o=n(3),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(1809),n(0)),h=n.n(p),m=n(2),g=n.n(m),v=n(1),y=n.n(v),b=n(44),_=n.n(b),w=n(25),E=n.n(w),k=n(49),x=n(29),S=n(27),T=n(22),C=n(90),O=n(302),A=n(85),N=function(e){function t(){var e,n,r;return Object(s.a)(this,t),(r=Object(c.a)(this,Object(u.a)(t).call(this))).state={},r.handleChange=a()(e=r.handleChange).call(e,Object(d.a)(r)),r.onPlayClick=a()(n=r.onPlayClick).call(n,Object(d.a)(r)),r}return Object(f.a)(t,e),Object(l.a)(t,[{key:"mouseSeek",value:function(e){var n=e.currentTarget,r=e.nativeEvent,i=e.pageX,o=this.audio,a=(r.touches?r.touches[0].pageX:i)-t.getElementOffset(n).left,s=n.offsetWidth,l=o.duration;a>s?a=s:a<1&&(a=1),o.currentTime=a/s*l,this.props.onSeek(t.timeMs(o.currentTime))}},{key:"keySeek",value:function(e){var n=this;this.setState({isSeeking:!0},function(){var r=n.audio,i=r.duration;r.currentTime=e<0?Math.max(r.currentTime+e,0):Math.min(r.currentTime+e,i),n.props.onSeek(t.timeMs(r.currentTime)),n.onSeekEnd()})}},{key:"componentDidMount",value:function(){k.a.addChangeListener(this.handleChange)}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&k.a.isPlaying&&(this.audio.pause(),k.a.pause())}},{key:"componentWillUnmount",value:function(){k.a.pause(),k.a.removeChangeListener(this.handleChange)}},{key:"handleChange",value:function(){k.a.playerId===this.props.id&&(k.a.isPlaying?this.audio.play():this.audio&&this.audio.pause(),this.audio&&(this.audio.muted=k.a.isMuted),this.forceUpdate())}},{key:"render",value:function(){var e,t,n,r,i,o,s,l,c,u,d,f=this,p=this.props,m=p.allowTabNavigation,v=p.id,y=p.labels,b=p.mediaSrc,_=k.a.isPlaying&&k.a.playerId===v,w=k.a.isMuted&&k.a.playerId===v,S=g()("audio-player__play",{"audio-player__play--pause":_}),C=g()("audio-player__volume",{"audio-player__volume--muted":w}),O=E()(null,["audio","currentTime"],this),N=E()(null,["audio","duration"],this),I=Object(T.l)(m),M=y.audioPlayerGroup,j=y.pauseButtonLabel,L=y.playButtonLabel,P=y.seekSliderLabel;return h.a.createElement("div",{key:"player-"+v,className:"audio-player"},h.a.createElement("div",{"aria-hidden":!m,"aria-label":M,className:"audio-player__housing",onKeyDown:a()(e=this.onKeyDown).call(e,this),role:A.a,tabIndex:I},h.a.createElement("div",{"aria-label":_?j:L,className:S,onClick:this.onPlayClick,role:"button",tabIndex:I}),h.a.createElement("div",{className:"audio-player__tracker",onMouseDown:a()(t=this.onMouseSeekStart).call(t,this),onTouchStart:a()(n=this.onMouseSeekStart).call(n,this),onMouseUp:a()(r=this.onSeekEnd).call(r,this),onTouchEnd:a()(i=this.onSeekEnd).call(i,this),onMouseMove:a()(o=this.onSeek).call(o,this),onTouchMove:a()(s=this.onSeek).call(s,this)},h.a.createElement("div",{ref:function(e){return f.trackerbar=e},className:"audio-player__tracker-bar brand--background"}),h.a.createElement("div",{className:"audio-player__tracker-handle brand--background","aria-label":P,"aria-live":"polite","aria-valuemax":N,"aria-valuemin":"0","aria-valuenow":O,ref:function(e){return f.trackerhandle=e},role:"slider",tabIndex:I})),h.a.createElement("div",{className:"audio-player__timer"},this.state.currentTime),h.a.createElement("div",{className:C,onClick:a()(l=this.onVolumeClick).call(l,this)},h.a.createElement("i",{className:"icon-volume"}),h.a.createElement("i",{className:"icon-mute"}))),h.a.createElement("audio",{ref:function(e){return f.audio=e},className:"audio-player__audio-element",onTimeUpdate:a()(c=this.onTimeUpdate).call(c,this),onLoadedMetadata:a()(u=this.onLoadedMetadata).call(u,this),onEnded:a()(d=this.onEnded).call(d,this),src:Object(x.g)("".concat(b)),key:"audio-"+v}))}},{key:"onKeyDown",value:function(e){var t=this,n=Object(C.b)(this.onPlayClick),r=Object(C.b)(function(){return t.keySeek(5)}),i=Object(C.b)(function(){return t.keySeek(-5)});_()([[S.d,n],[S.i,r],[S.g,i]])(e)}},{key:"onPlayClick",value:function(e){e.preventDefault();var n=this.props,r=n.id,i=n.onPlay,o=n.onPause,a=this.audio.currentTime;k.a.isPlaying&&k.a.playerId!==r&&(k.a.isPlaying=!1),k.a.playerId=r,k.a.isPlaying=!k.a.isPlaying,k.a.isPlaying?i(t.timeMs(a)):o(t.timeMs(a))}},{key:"onVolumeClick",value:function(){k.a.isMuted?k.a.isMuted=!1:k.a.isMuted=!0}},{key:"onMouseSeekStart",value:function(e){this.setState({isSeeking:!0}),this.mouseSeek(e)}},{key:"onSeekEnd",value:function(){var e=this.props,n=e.id,r=e.onPlay,i=this.audio.currentTime;this.setState({isSeeking:!1}),k.a.isPlaying&&k.a.playerId!==n&&(k.a.isPlaying=!1),k.a.playerId=n,k.a.isPlaying=!0,r(t.timeMs(i))}},{key:"onSeek",value:function(e){this.state.isSeeking&&this.mouseSeek(e)}},{key:"onLoadedMetadata",value:function(e){this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)})}},{key:"onEnded",value:function(e){this.audio.currentTime=0,this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)}),k.a.isPlaying=!1,this.props.onEnd(t.timeMs(e.target.currentTime)),this.forceUpdate()}},{key:"onTimeUpdate",value:function(e){Object(x.h)();var n=e.target.currentTime/e.target.duration*100;this.trackerbar.style.width=n+"%",this.trackerhandle.style.left=n+"%",this.setState({currentTime:t.calcTime(e.target.duration,e.target.currentTime)})}},{key:"currentTime",value:function(){return t.timeMs(this.audio.currentTime)}}],[{key:"calcTime",value:function(e,t){var n=Math.round(e-t),r=Math.floor(n/60),o=n-60*r;function a(e,t,n){var r;return i()(r=new Array(n+1).join(t)+e).call(r,-n)}return a(r,"0",2)+":"+a(o,"0",2)}},{key:"getElementOffset",value:function(e){var t=document.documentElement,n=e.getBoundingClientRect();return{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}},{key:"timeMs",value:function(e){return Math.round(1e3*e)}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{audioPlayerGroup:O.a.audioPlayerGroup,pauseButtonLabel:O.a.pauseButtonLabel,playButtonLabel:O.a.playButtonLabel,seekSliderLabel:O.a.seekSliderLabel},mediaSrc:null,onEnd:function(){},onPause:function(){},onPlay:function(){},onSeek:function(){},shouldPause:!1}}},{key:"propTypes",get:function(){return{allowTabNavigation:y.a.bool,labels:y.a.object,mediaSrc:y.a.string,shouldPause:y.a.bool}}}]),t}(h.a.Component),I=h.a.createElement(N,null).type},function(e,t,n){(function(t,r){var i;
/**
 * [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
 *
 * @version 0.3.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */
/**
 * [js-htmlencode]{@link https://github.com/emn178/js-htmlencode}
 *
 * @version 0.3.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2014-2017
 * @license MIT
 */
!function(){"use strict";var o="object"==typeof window?window:{};!o.JS_HTMLENCODE_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(o=r);var a=!o.JS_HTMLENCODE_NO_COMMON_JS&&"object"==typeof e&&e.exports,s=n(700),l={"&nbsp;":" ","&iexcl;":"¡","&cent;":"¢","&pound;":"£","&curren;":"¤","&yen;":"¥","&brvbar;":"¦","&sect;":"§","&uml;":"¨","&copy;":"©","&ordf;":"ª","&laquo;":"«","&not;":"¬","&shy;":"­","&reg;":"®","&macr;":"¯","&deg;":"°","&plusmn;":"±","&sup2;":"²","&sup3;":"³","&acute;":"´","&micro;":"µ","&para;":"¶","&middot;":"·","&cedil;":"¸","&sup1;":"¹","&ordm;":"º","&raquo;":"»","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&iquest;":"¿","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&times;":"×","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&divide;":"÷","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&quot;":'"',"&amp;":"&","&lt;":"<","&gt;":">","&apos;":"'","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&circ;":"ˆ","&tilde;":"˜","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&zwnj;":"‌","&zwj;":"‍","&lrm;":"‎","&rlm;":"‏","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&permil;":"‰","&lsaquo;":"‹","&rsaquo;":"›","&euro;":"€","&fnof;":"ƒ","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigmaf;":"ς","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&thetasym;":"ϑ","&upsih;":"ϒ","&piv;":"ϖ","&bull;":"•","&hellip;":"…","&prime;":"′","&Prime;":"″","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&trade;":"™","&alefsym;":"ℵ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&forall;":"∀","&part;":"∂","&exist;":"∃","&empty;":"∅","&nabla;":"∇","&isin;":"∈","&notin;":"∉","&ni;":"∋","&prod;":"∏","&sum;":"∑","&minus;":"−","&lowast;":"∗","&radic;":"√","&prop;":"∝","&infin;":"∞","&ang;":"∠","&and;":"∧","&or;":"∨","&cap;":"∩","&cup;":"∪","&int;":"∫","&there4;":"∴","&sim;":"∼","&cong;":"≅","&asymp;":"≈","&ne;":"≠","&equiv;":"≡","&le;":"≤","&ge;":"≥","&sub;":"⊂","&sup;":"⊃","&nsub;":"⊄","&sube;":"⊆","&supe;":"⊇","&oplus;":"⊕","&otimes;":"⊗","&perp;":"⊥","&sdot;":"⋅","&lceil;":"⌈","&rceil;":"⌉","&lfloor;":"⌊","&rfloor;":"⌋","&lang;":"〈","&rang;":"〉","&loz;":"◊","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦"},c=function(e){if("#"!==e.charAt(1))return l[e]||e;var t,n=e.charAt(2);return"x"===n||"X"===n?(n=e.substring(3,e.length-1),t=parseInt(n,16)):(n=e.substring(2,e.length-1),t=parseInt(n)),isNaN(t)?e:String.fromCharCode(t)},u=function(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},d=function(e){return e.replace(/&#?\w+;/g,c)},f=u;u.htmlEncode=u,u.htmlDecode=d,a?e.exports=f:(o.htmlEncode=u,o.htmlDecode=d,s&&(void 0===(i=function(){return f}.call(f,n,f,e))||(e.exports=i)))}()}).call(this,n(284),n(69))},function(e,t,n){"use strict";var r=n(29);t.a=function(e){return Object(r.d)()?e:((t=e)?"".concat(t," | "):"")+r.a;var t}},function(e,t,n){"use strict";var r=n(168),i=n(0),o=n.n(i),a=n(1),s=n.n(a),l=s.a.shape({trySubscribe:s.a.func.isRequired,tryUnsubscribe:s.a.func.isRequired,notifyNestedSubs:s.a.func.isRequired,isSubscribed:s.a.func.isRequired}),c=s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired});o.a.forwardRef;var u=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",o=function(t){Object(r.a)(a,t);var o=a.prototype;function a(n,r){var i;return(i=t.call(this,n,r)||this)[e]=n.store,i}return o.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},o.render=function(){return i.Children.only(this.props.children)},a}(i.Component);return o.propTypes={store:c.isRequired,children:s.a.element.isRequired},o.childContextTypes=((t={})[e]=c.isRequired,t[n]=l,t),o}();function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var f=n(113),p=n(211),h=n(1134),m=n.n(h),g=n(608),v=n.n(g),y=n(1135),b=null,_={notify:function(){}};var w=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=_}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=b,e=b},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==b&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=_)},e}(),E=void 0!==o.a.forwardRef,k=0,x={};function S(){}function T(e,t){var n,o;void 0===t&&(t={});var a=t,s=a.getDisplayName,u=void 0===s?function(e){return"ConnectAdvanced("+e+")"}:s,h=a.methodName,g=void 0===h?"connectAdvanced":h,b=a.renderCountProp,_=void 0===b?void 0:b,T=a.shouldHandleStateChanges,C=void 0===T||T,O=a.storeKey,A=void 0===O?"store":O,N=a.withRef,I=void 0!==N&&N,M=Object(p.a)(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),j=A+"Subscription",L=k++,P=((n={})[A]=c,n[j]=l,n),D=((o={})[j]=l,o);return function(t){v()(Object(y.isValidElementType)(t),"You must pass a component to the function returned by "+g+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=u(n),a=Object(f.a)({},M,{getDisplayName:u,methodName:g,renderCountProp:_,shouldHandleStateChanges:C,storeKey:A,withRef:I,displayName:o,wrappedComponentName:n,WrappedComponent:t}),s=function(n){function s(e,t){var r;return(r=n.call(this,e,t)||this).version=L,r.state={},r.renderCount=0,r.store=e[A]||t[A],r.propsMode=Boolean(e[A]),r.setWrappedInstance=r.setWrappedInstance.bind(d(d(r))),v()(r.store,'Could not find "'+A+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+A+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}Object(r.a)(s,n);var l=s.prototype;return l.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[j]=t||this.context[j],e},l.componentDidMount=function(){C&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.componentWillReceiveProps=function(e){this.selector.run(e)},l.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=S,this.store=null,this.selector.run=S,this.selector.shouldComponentUpdate=!1},l.getWrappedInstance=function(){return v()(I,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+g+"() call."),this.wrappedInstance},l.setWrappedInstance=function(e){this.wrappedInstance=e},l.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var i=e(t.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},l.initSubscription=function(){if(C){var e=(this.propsMode?this.props:this.context)[j];this.subscription=new w(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(x)):this.notifyNestedSubs()},l.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.addExtraProps=function(e){if(!(I||_||this.propsMode&&this.subscription))return e;var t=Object(f.a)({},e);return I&&(t.ref=this.setWrappedInstance),_&&(t[_]=this.renderCount++),this.propsMode&&this.subscription&&(t[j]=this.subscription),t},l.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(i.createElement)(t,this.addExtraProps(e.props))},s}(i.Component);return E&&(s.prototype.UNSAFE_componentWillReceiveProps=s.prototype.componentWillReceiveProps,delete s.prototype.componentWillReceiveProps),s.WrappedComponent=t,s.displayName=o,s.childContextTypes=D,s.contextTypes=P,s.propTypes=P,m()(s,t)}}var C=Object.prototype.hasOwnProperty;function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!C.call(t,n[i])||!O(e[n[i]],t[n[i]]))return!1;return!0}var N=n(234);function I(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function M(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function j(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=M(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=M(i),i=r(t,n)),i},r}}var L=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:I(function(e){return{dispatch:e}})},function(e){return e&&"object"==typeof e?I(function(t){return Object(N.b)(e,t)}):void 0}];var P=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:I(function(){return{}})}];function D(e,t,n){return Object(f.a)({},n,e,t)}var R=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,s){var l=e(t,n,s);return a?i&&o(l,r)||(r=l):(a=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return D}}];function F(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function B(e,t,n,r,i){var o,a,s,l,c,u=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function h(i,p){var h,m,g=!d(p,a),v=!u(i,o);return o=i,a=p,g&&v?(s=e(o,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(o,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a)):v?(h=e(o,a),m=!f(h,s),s=h,m&&(c=n(s,l,a)),c):c}return function(i,u){return p?h(i,u):(s=e(o=i,a=u),l=t(r,a),c=n(s,l,a),p=!0,c)}}function U(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),s=r(e,o),l=i(e,o);return(o.pure?B:F)(a,s,l,e,o)}function q(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function z(e,t){return e===t}var H,W,$,Y,V,K,G,X,Q,Z,J,ee,te=($=(W=void 0===H?{}:H).connectHOC,Y=void 0===$?T:$,V=W.mapStateToPropsFactories,K=void 0===V?P:V,G=W.mapDispatchToPropsFactories,X=void 0===G?L:G,Q=W.mergePropsFactories,Z=void 0===Q?R:Q,J=W.selectorFactory,ee=void 0===J?U:J,function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.pure,a=void 0===o||o,s=i.areStatesEqual,l=void 0===s?z:s,c=i.areOwnPropsEqual,u=void 0===c?A:c,d=i.areStatePropsEqual,h=void 0===d?A:d,m=i.areMergedPropsEqual,g=void 0===m?A:m,v=Object(p.a)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=q(e,K,"mapStateToProps"),b=q(t,X,"mapDispatchToProps"),_=q(n,Z,"mergeProps");return Y(ee,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:b,initMergeProps:_,pure:a,areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:h,areMergedPropsEqual:g},v))});n.d(t,"a",function(){return u}),n.d(t,"b",function(){return te})},function(e,t,n){"use strict";var r=n(5),i=n(178),o=n.n(i),a=n(19),s=n.n(a),l=n(6),c=n.n(l),u=n(28),d=n.n(u),f=n(33),p=n.n(f),h=n(35),m=n.n(h),g=n(17),v=n.n(g),y=n(77),b=n.n(y),_=n(23),w=n.n(_),E=n(14),k=n.n(E),x=n(112),S=n.n(x),T=n(730),C=n.n(T),O=n(64),A=n(81),N=n(122),I=n.n(N),M=n(60),j=n.n(M),L=n(150),P=n.n(L),D=n(124),R=n.n(D),F=n(581),B=n.n(F),U=n(121),q=n.n(U),z=n(26),H=n.n(z),W=n(86),$=n.n(W),Y=I()(function(e){return p()({avatar:X(e),back:X(e),background:X(e),front:X(e),media:Z(e)})}),V=I()(function(e){return p()({items:m()(Y(e)),media:Z(e)})}),K=I()(function(e){return p()({coverImage:X(e),lessons:m()($()(B()(String),G(e))),media:Z(e)})}),G=I()(function(e){return p()({items:m()(V(e)),media:Z(e)})}),X=I()(function(e){return p()({media:Z(e)})}),Q=(I()(function(e){return w()(R()(H()(["media",e]),H()(["media","tmp",e])),P()({}))}),I()(function(e,t,n){return"tmp"===n?Z(e,t):"string"==typeof t?e[t]:t})),Z=j()(2,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return q()(Q(e),t)});var J,ee=n(301),te=n(266);n.d(t,"a",function(){return ne}),n.d(t,"c",function(){return ae});var ne=d()("rise/course/")("LOAD_COURSE"),re=function(e){return c()(v()(e),b()("lessonsOnly"),S()(k()("type","section")))(e.lessons)},ie=C()(s()("favoritedAt",new Date)),oe=C()(s()("favoritedAt",null)),ae=(t.b=Object(O.d)({},(J={},Object(r.a)(J,ee.a,ie),Object(r.a)(J,ee.b,oe),Object(r.a)(J,ne,function(e,t){var n=t.completedAt,r=t.course,i=t.favoritedAt,a=t.media,s=t.riseComCurrentUser,l=t.riseComCourseId,c=t.riseComEnrollmentType,u=t.riseComLearningPathId;return w()(K(a),re,p()({lessons:m()(G(a))}),v()(o.a,{completedAt:n,favoritedAt:i,riseComCourseId:l,riseComEnrollmentType:c,riseComCurrentUser:s,riseComLearningPathId:u}))(r)}),J)),function(){return function(e){return Object(A.b)().then(function(t){return e(Object(O.a)(ne,t))}).then(function(){return e(Object(te.c)(!0))}).catch(function(e){return function(t){404===t.statusCode&&e(Object(te.f)(!0))}}(e))}})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t,n){if(!i(e))throw new TypeError("flip: Function required for first argument");return r(e)(n,t)})},function(e,t,n){var r=n(87),i=n(250);e.exports=r(function(e){var t=[];for(var n in e)i(n,e)&&(t[t.length]=[n,e[n]]);return t})},function(e,t,n){"use strict";n.d(t,"c",function(){return pe}),n.d(t,"b",function(){return he}),n.d(t,"d",function(){return ve}),n.d(t,"a",function(){return Se});var r=n(227),i=n.n(r),o=n(322),a=n.n(o),s=n(18),l=n.n(s),c=n(19),u=n.n(c),d=n(139),f=n.n(d),p=n(104),h=n.n(p),m=n(6),g=n.n(m),v=n(122),y=n.n(v),b=n(150),_=n.n(b),w=n(320),E=n.n(w),k=n(40),x=n.n(k),S=n(46),T=n.n(S),C=n(48),O=n.n(C),A=n(55),N=n.n(A),I=n(94),M=n.n(I),j=n(36),L=n.n(j),P=n(106),D=n.n(P),R=n(51),F=n.n(R),B=n(75),U=n.n(B),q=n(61),z=n.n(q),H=n(17),W=n.n(H),$=n(321),Y=n.n($),V=n(62),K=n.n(V),G=n(53),X=n.n(G),Q=n(25),Z=n.n(Q),J=n(42),ee=n.n(J),te=n(8),ne=n.n(te),re=n(14),ie=n.n(re),oe=n(67),ae=n.n(oe),se=n(32),le=n.n(se),ce=n(81),ue=n(78),de=n(21),fe=n(65),pe=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object(fe.g)({id:n,updateFn:me({activeIndex:t})}))}},he=function(e){var t=e.currentPassingScore,n=e.id;return function(e){return e(Object(fe.g)({id:n,updateFn:ge(t)}))}},me=function(e){var t=e.activeIndex;return u()("activeIndex",t)},ge=function(e){return g()(X()(z()("retryAttempts"),g()(M.a,_()(0))),le()(ie()("passed",!1),K()(["passed"])),le()(ie()("isComplete",!1),K()(["isComplete"])),K()(["activeIndex","percentComplete","score","reportResults"]),X()(z()("items"),Object(ue.e)(ee()(["id","index"]))),X()(z()("passingScore"),l()(e)))},ve=function(e){var t=e.id,n=e.isCorrect,r=e.itemId,i=e.passingScore,o=e.passToContinue;return function(e){return e(Object(fe.g)({id:t,type:"quiz",updateFn:ye({id:t,isCorrect:n,itemId:r,passingScore:i,passToContinue:o})}))}},ye=function(e){var t=e.id,n=e.itemId,r=e.isCorrect,i=e.passingScore,o=e.passToContinue;return g()(le()(ie()("percentComplete",100),be({id:t,passingScore:i,passToContinue:o})),fe.f,_e,X()(U()(["items",n]),O()(W.a)({isComplete:!0,isCorrect:r})))},be=function(e){var t=e.id,n=e.passingScore,r=e.passToContinue;return function(e){var i=ne()("score",e),o=i>=n,a=!r||o;return Object(ce.d)(o,i,t),W()({passed:o,isComplete:a,reportResults:!0},e)}},_e=function(e){return u()("score",g()(Math.round,Y()(100),O()(E.a)(g()(F.a,D.a,ne()("items"))(e)),F.a,T()(ie()("isCorrect",!0)),ae.a,ne()("items"))(e),e)},we=f()(g()(x()(3),F.a),a()(h()(L.a))),Ee=g()(ae.a,ee()(["passed","retryAttempts","score"])),ke=g()(we,Ee),xe=function(e){var t=e.id,n=e.state;return Object(de.c)(n,Z()({},["lessons",t,"items"]),D.a,F.a,i()(1))},Se=y()(function(e){return N()(ke,function(e){return function(t){var n=t.id,r=t.passed,i=t.passingScore,o=t.score,a=t.retryAttempts;return X()(U()(["lessons",n]),O()(W.a)({isComplete:!0,activeIndex:xe({id:n,state:e}),reportResults:!0,passed:r,passingScore:i,percentComplete:100,retryAttempts:a,score:o}),e)}}(e),l()(e))})},function(e,t,n){"use strict";n.d(t,"e",function(){return u}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"f",function(){return h});var r=n(5),i=n(28),o=n.n(i),a=n(17),s=n.n(a),l=n(64),c=o()("rise/status/")("SET_LOADED");t.a=Object(l.d)({courseLoaded:!1,fontsLoaded:!1,connection:"connected",notFound:!1},Object(r.a)({},c,function(e,t){return s()(e,t)}));var u=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{fontsLoaded:e})},d=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{courseLoaded:e})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"connected";return Object(l.a)(c,{connection:e})},p=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{coverLoaded:e})},h=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(l.a)(c,{notFound:e})}},function(e,t,n){var r=n(87),i=n(207);e.exports=r(function(e){return i(function(){return Array.prototype.slice.call(arguments,0)},e)})},function(e,t,n){e.exports=n(1900)},function(e,t,n){!function(t){"use strict";var n=0,r=Math.pow(36,4),i=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},o=function(){return i((Math.random()*r<<0).toString(36),4)},a=function(){return n=n<r?n:0,++n-1},s=function(){var e=(new Date).getTime().toString(36),t=s.fingerprint(),n=o()+o();return"c"+e+i(a().toString(36),4)+t+n};s.slug=function(){var e,t=(new Date).getTime().toString(36),n=s.fingerprint().slice(0,1)+s.fingerprint().slice(-1),r=o().slice(-2);return e=a().toString(36).slice(-4),t.slice(-2)+e+n+r},s.globalCount=function(){var e=function(){var e,t=0;for(e in window)t++;return t}();return s.globalCount=function(){return e},e},s.fingerprint=function(){return i((navigator.mimeTypes.length+navigator.userAgent.length).toString(36)+s.globalCount().toString(36),4)},t.register?t.register("cuid",s):e.exports=s}(this.applitude||this)},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(13),u=n(12),d=n(31),f=(n(2077),n(1185)),p=n.n(f),h=n(17),m=n.n(h),g=n(27),v=n(22),y=function(t){var n=t.image;return e.createElement("img",Object(d.a)({},n,{"aria-describedby":n.alt}))},b=function(t){function n(e){var t,r;return Object(o.a)(this,n),(r=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={isZoomed:!1},r.toggleZoom=i()(t=r.toggleZoom).call(t,Object(c.a)(r)),r}return Object(u.a)(n,t),Object(a.a)(n,[{key:"toggleZoom",value:function(){if(!this.imageRef.isClosing){var e=this.props,t=e.onUnzoom,n=e.onZoom,r=!this.state.isZoomed;this.setState({isZoomed:r},function(){r?n():t()})}}},{key:"handleControlledKeyDown",value:function(e){Object(g.d)(e)&&(e.preventDefault(),this.toggleZoom())}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.allowTabNavigation,i=n.alt,o=n.isControlled,a=n.disableZoom,s=n.src,l=n.title,c=this.state.isZoomed;return r!==e.allowTabNavigation||i!==e.alt||o!==e.isControlled||a!==e.disableZoom||s!==e.src||l!==e.title||c!==t.isZoomed}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.alt,o=n.isControlled,a=n.disableZoom,s=n.onLoad,l=n.src,c=n.title,u=this.state.isZoomed,d=a?y:p.a,f='""'===i?"":i||c,h={image:{src:l,alt:f,className:"figure-image__image",onLoad:s,tabIndex:Object(v.l)(r)},zoomImage:{className:"figure-image__image--zoom"},shouldRespectMaxDimension:!0},g={isZoomed:u,onZoom:function(){u||t.toggleZoom()},onUnzoom:function(){u&&t.toggleZoom()},ref:function(e){t.imageRef=e}},b=m()(h,o&&g||{});return e.createElement("figure",{className:"figure-image",title:f},e.createElement(d,b))}}]),n}(e.Component);b.defaultProps={isControlled:!1,allowTabNavigation:!0},t.a=b}).call(this,n(0))},function(e,t,n){var r,i=n(87);e.exports=(r="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff","function"==typeof String.prototype.trim&&!r.trim()&&"​".trim()?i(function(e){return e.trim()}):i(function(e){var t=new RegExp("^["+r+"]["+r+"]*"),n=new RegExp("["+r+"]["+r+"]*$");return e.replace(t,"").replace(n,"")}))},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c});var r=n(104),i=n.n(r),o=n(14),a=n.n(o),s=a()("navigationMode","restricted"),l=i()(a()("sidebarMode","hidden")),c=a()("sidebarMode","open")},function(e,t,n){"use strict";n.d(t,"a",function(){return v}),n.d(t,"b",function(){return y});var r=n(19),i=n.n(r),o=n(177),a=n.n(o),s=n(207),l=n.n(s),c=n(138),u=n.n(c),d=n(415),f=n.n(d),p=n(26),h=n.n(p),m=n(8),g=n.n(m),v=function(e){return l()(a()(["tmp",e]),[g()(e),u()(e)])},y=function(e){return l()(i()(e),[h()(["tmp",e]),f()(["tmp",e])])}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"}},function(e,t,n){var r=n(34),i=n(936);e.exports=r(function(e,t){return i(function(e,t,n){return n},e,t)})},function(e,t,n){"use strict";var r=n(1080);n.d(t,"a",function(){return r.a});var i=n(1081);n.d(t,"b",function(){return i.a});var o=n(1084);n.d(t,"c",function(){return o.a});var a=n(1086);n.d(t,"d",function(){return a.a})},function(e,t,n){"use strict";(function(e){n.d(t,"h",function(){return T}),n.d(t,"g",function(){return C}),n.d(t,"f",function(){return O}),n.d(t,"b",function(){return A}),n.d(t,"c",function(){return N}),n.d(t,"d",function(){return I}),n.d(t,"e",function(){return M}),n.d(t,"a",function(){return j});var r=n(31),i=n(3),o=n.n(i),a=n(30),s=n.n(a),l=n(15),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(12),m=(n(1826),n(1)),g=n.n(m),v=n(2),y=n.n(v),b=n(68),_=n(58),w=n(57),E=n(324),k=n(100),x=n(56),S=n(85),T=function(t){function n(){return Object(u.a)(this,n),Object(f.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(d.a)(n,[{key:"handleHeadingChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(_.a)(Object(w.g)({lessonId:r,blockId:i,itemId:e,payload:{heading:t}}))}},{key:"handleTextChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(_.a)(Object(w.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"render",value:function(){var t,n,r=this,i=this.props,a=i.items,l=i.type,u=i.heading,d=i.columns,f=i.settings,p=i.editable,h=f.paddingTop,m=f.paddingBottom,g=f.backgroundColor,v=f.entranceAnimation,_=y()("block-text block-text--".concat(l),{"block-text--no-animation":!v}),w={backgroundColor:Object(b.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},x=u?"heading"===u?"h2":"h3":"span";return e.createElement("div",{className:_,style:w},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},""!==u?c()(t=s()(a).call(a,0,1)).call(t,function(t){var n,i=t.id,a=t.heading,s=a||null;return e.createElement("div",{className:"block-text__col brand--head",key:i},e.createElement(x,null,e.createElement(E.a,{locked:!p,allowBold:!1,value:s,placeholder:"Enter a heading",onChange:o()(n=r.handleHeadingChange).call(n,r,i)})))}):null),e.createElement("div",{className:"block-text__row"},"heading"!==l?c()(n=s()(a).call(a,0,d)).call(n,function(t){var n,i=t.id,a=t.paragraph;return e.createElement(k.a,{key:i,className:"block-text__col brand--body",value:a||"",placeholder:"Enter some paragraph text",onChange:o()(n=r.handleTextChange).call(n,r,i),editable:p})}):null)))}}],[{key:"propTypes",get:function(){return{lessonId:g.a.any,blockId:g.a.any,items:g.a.array.isRequired,settings:g.a.object.isRequired,type:g.a.string,heading:g.a.string,columns:g.a.number,editable:g.a.bool}}},{key:"defaultProps",get:function(){return{type:"onecol",heading:"",columns:1,editable:!1,items:[]}}}]),n}(e.Component),C=function(t){return e.createElement(T,Object(r.a)({type:"twocol",columns:2},t))},O=function(t){return e.createElement(T,Object(r.a)({type:"threecol",columns:3},t))},A=function(t){return e.createElement(T,Object(r.a)({type:"heading",heading:"heading"},t))},N=function(t){return e.createElement(T,Object(r.a)({type:"heading",heading:"subheading"},t))},I=function(t){return e.createElement(T,Object(r.a)({heading:"heading"},t))},M=function(t){return e.createElement(T,Object(r.a)({heading:"subheading"},t))},j=function(t){function n(){return Object(u.a)(this,n),Object(f.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(d.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(_.a)(Object(w.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.animateBlockEntrance,a=r.editable,l=r.isLearner,u=r.items,d=r.labels.codeGroup,f=r.settings,p=f.paddingTop,h=f.paddingBottom,m=f.backgroundColor,g=f.entranceAnimation,v=f.snippetBackgroundColor,_=y()("block-text block-text--code",{"block-text--padding-top":2===Number(p),"block-text--padding-bottom":2===Number(h),"block-text--no-animation":!g}),w={backgroundColor:Object(b.a)("",m),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*h,"px")};return e.createElement("div",{className:_,style:w},e.createElement(x.a,{animateBlockEntrance:i,animateIn:"fadeIn",isLearner:l},e.createElement("div",{className:"block-text__container"},c()(t=s()(u).call(u,0,1)).call(t,function(t){var r,i=t.id,s=t.code,l=t.caption;return e.createElement("div",{className:"block-text__row",key:i},e.createElement("div",{"aria-label":d,className:"block-text__col",role:S.a},e.createElement("figure",{className:"block-text__figure"},e.createElement("pre",{className:"block-text__code",style:{backgroundColor:Object(b.a)("",v)},dangerouslySetInnerHTML:{__html:s}}),e.createElement(k.a,{className:"block-text__code-caption brand--body brand--linkColor",value:l||"",placeholder:"Add a caption",onChange:o()(r=n.handleCaptionChange).call(r,n,i),component:"figcaption",editable:a}))))}))))}}],[{key:"propTypes",get:function(){return{lessonId:g.a.any,blockId:g.a.any,items:g.a.array.isRequired,settings:g.a.object.isRequired,editable:g.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";if(n(125)){var r=n(74),i=n(24),o=n(641),a=n(111),s=n(629),l=n(310),c=n(337),u=n(163),d=n(117),f=n(780),p=n(793),h=n(242),m=n(142),g=n(500),v=n(97),y=n(339),b=n(436),_=n(338).f,w=n(794),E=n(175)(0),k=n(372),x=n(133),S=n(174),T=n(203),C=T.get,O=T.set,A=x.f,N=S.f,I=r.RangeError,M=s.ArrayBuffer,j=s.DataView,L=a.NATIVE_ARRAY_BUFFER_VIEWS,P=a.TYPED_ARRAY_TAG,D=a.TypedArray,R=a.TypedArrayPrototype,F=a.aTypedArrayConstructor,B=a.isTypedArray,U=function(e,t){for(var n=0,r=t.length,i=new(F(e))(r);r>n;)i[n]=t[n++];return i},q=function(e,t){A(e,t,{get:function(){return C(this)[t]}})},z=function(e){var t;return e instanceof M||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},H=function(e,t){return B(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},W=function(e,t){return H(e,t=h(t,!0))?c(2,e[t]):N(e,t)},$=function(e,t,n){return!(H(e,t=h(t,!0))&&v(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?A(e,t,n):(e[t]=n.value,e)};L||(S.f=W,x.f=$,q(R,"buffer"),q(R,"byteOffset"),q(R,"byteLength"),q(R,"length")),i({target:"Object",stat:!0,forced:!L},{getOwnPropertyDescriptor:W,defineProperty:$}),e.exports=function(e,t,n,a){var s=e+(a?"Clamped":"")+"Array",c="get"+e,h="set"+e,m=r[s],g=m,x=g&&g.prototype,S={},T=function(e,n){A(e,n,{get:function(){return function(e,n){var r=C(e);return r.view[c](n*t+r.byteOffset,!0)}(this,n)},set:function(e){return function(e,n,r){var i=C(e);a&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.view[h](n*t+i.byteOffset,r,!0)}(this,n,e)},enumerable:!0})};L?o&&(g=n(function(e,n,r,i){return l(e,g,s),v(n)?z(n)?void 0!==i?new m(n,p(r,t),i):void 0!==r?new m(n,p(r,t)):new m(n):B(n)?U(g,n):w.call(g,n):new m(f(n))}),b&&b(g,D),E(_(m),function(e){e in g||u(g,e,m[e])}),g.prototype=x):(g=n(function(e,n,r,i){l(e,g,s);var o,a,c,u=0,h=0;if(v(n)){if(!z(n))return B(n)?U(g,n):w.call(g,n);o=n,h=p(r,t);var m=n.byteLength;if(void 0===i){if(m%t)throw I("Wrong length");if((a=m-h)<0)throw I("Wrong length")}else if((a=d(i)*t)+h>m)throw I("Wrong length");c=a/t}else c=f(n),o=new M(a=c*t);for(O(e,{buffer:o,byteOffset:h,byteLength:a,length:c,view:new j(o)});u<c;)T(e,u++)}),b&&b(g,D),x=g.prototype=y(R)),x.constructor!==g&&u(x,"constructor",g),P&&u(x,P,s),S[s]=g,i({global:!0,forced:g!=m,sham:!L},S),"BYTES_PER_ELEMENT"in g||u(g,"BYTES_PER_ELEMENT",t),"BYTES_PER_ELEMENT"in x||u(x,"BYTES_PER_ELEMENT",t),k(s)}}else e.exports=function(){}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(176),i=n(801),o=n(205),a=n(513),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=!0},function(e,t,n){var r=n(118),i=n(144),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(651),i=n(344),o=n(134)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(176),i=n(137),o=n(193),a=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(o(s,e))return s[e];t||(t={});var n=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,u=o(t,0)?t[0]:l,d=o(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(c&&!r)return!0;var e={length:-1};c?a(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)})}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(93);e.exports=function(e,t){return r(t[e])||r(t["@@implements"])&&!!t["@@implements"](e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"function"==typeof e}},function(e,t,n){(function(r){function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=Object({BUGSNAG_API_KEY:"f3fd51abf4bdabb1dd460597574d9972",CLIENT_VERSION:"8329025f49882de425c4fdd607f2e8dd5fad3a17",NODE_ENV:"production"}).DEBUG),e}(t=e.exports=n(1984)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,n(284))},function(e,t,n){var r=n(468),i=n(215);function o(e){return(o="function"==typeof i&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof i&&"symbol"===o(r)?e.exports=a=function(e){return o(e)}:e.exports=a=function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":o(e)},a(t)}e.exports=a},function(e,t,n){var r=n(1107),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(564);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(353),i=n(129);e.exports=i(function(e,t,n){if(t>=n.length||t<-n.length)return n;var i=(t<0?n.length:0)+t,o=r(n);return o[i]=e(n[i]),o})},function(e,t,n){"use strict";var r=n(2009),i=n(2010);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=b(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),f=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(2011);function b(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(s);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var _=l.exec(b);if(_)return this.path=b,this.href=b,this.pathname=_[1],_[2]?(this.search=_[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var E=(w=w[0]).toLowerCase();this.protocol=E,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===b.substr(0,2);!k||w&&g[w]||(b=b.substr(2),this.slashes=!0)}if(!g[w]&&(k||w&&!v[w])){for(var x,S,T=-1,C=0;C<f.length;C++){-1!==(O=b.indexOf(f[C]))&&(-1===T||O<T)&&(T=O)}-1!==(S=-1===T?b.lastIndexOf("@"):b.lastIndexOf("@",T))&&(x=b.slice(0,S),b=b.slice(S+1),this.auth=decodeURIComponent(x)),T=-1;for(C=0;C<d.length;C++){var O;-1!==(O=b.indexOf(d[C]))&&(-1===T||O<T)&&(T=O)}-1===T&&(T=b.length),this.host=b.slice(0,T),b=b.slice(T),this.parseHost(),this.hostname=this.hostname||"";var A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!A)for(var N=this.hostname.split(/\./),I=(C=0,N.length);C<I;C++){var M=N[C];if(M&&!M.match(p)){for(var j="",L=0,P=M.length;L<P;L++)M.charCodeAt(L)>127?j+="x":j+=M[L];if(!j.match(p)){var D=N.slice(0,C),R=N.slice(C+1),F=M.match(h);F&&(D.push(F[1]),R.unshift(F[2])),R.length&&(b="/"+R.join(".")+b),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+B,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[E])for(C=0,I=u.length;C<I;C++){var q=u[C];if(-1!==b.indexOf(q)){var z=encodeURIComponent(q);z===q&&(z=escape(q)),b=b.split(q).join(z)}}var H=b.indexOf("#");-1!==H&&(this.hash=b.substr(H),b=b.slice(0,H));var W=b.indexOf("?");if(-1!==W?(this.search=b.substr(W),this.query=b.substr(W+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,W)):t&&(this.search="",this.query={}),b&&(this.pathname=b),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var $=this.search||"";this.path=B+$}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(n[u]=e[u])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),f=0;f<d.length;f++){var p=d[f];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||g[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",y=n.search||"";n.path=m+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||b||n.host&&e.pathname,E=w,k=n.pathname&&n.pathname.split("/")||[],x=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===k[0]?k[0]=n.host:k.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===k[0])),_)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,k=h;else if(h.length)k||(k=[]),k.pop(),k=k.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(x)n.hostname=n.host=k.shift(),(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!k.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=k.slice(-1)[0],T=(n.host||e.host||k.length>1)&&("."===S||".."===S)||""===S,C=0,O=k.length;O>=0;O--)"."===(S=k[O])?k.splice(O,1):".."===S?(k.splice(O,1),C++):C&&(k.splice(O,1),C--);if(!w&&!E)for(;C--;C)k.unshift("..");!w||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),T&&"/"!==k.join("/").substr(-1)&&k.push("");var A,N=""===k[0]||k[0]&&"/"===k[0].charAt(0);x&&(n.hostname=n.host=N?"":k.length?k.shift():"",(A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=A.shift(),n.host=n.hostname=A.shift()));return(w=w||n.host&&k.length)&&!N&&k.unshift(""),k.length?n.pathname=k.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(129),i=n(40),o=n(26);e.exports=r(function(e,t,n){return i(o(e,n),t)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(453),i=n(380),o=n(381),a=n(251).type("Async"),s=n(677),l=n(315),c=n(1712),u=n(1713),d=n(314),f=n(527),p=n(93),h=n(1714),m=n(194),g=function(e){return e.reduce(function(e,t){return e&&m(y,t)},!0)},v=function(e){return y(function(t,n){return n(e)})};function y(e,t){if(!p(e))throw new TypeError("Async: Function required");var n,r=l(function(){n=!0},p(t)?t:u);function i(t,i,o){if(!p(t)||!p(i))throw new TypeError("Async.fork: Reject and resolve functions required");var a=p(o)?o:u;return e(function(e){return n?u():t(e)},function(e){return n?u():i(e)}),c(l(a,r))}return{fork:i,toPromise:function(){return new Promise(function(e,t){i(t,e)})},inspect:function(){return"Async"+o(e)},type:a,swap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.swap: Functions required for both arguments");return y(function(n,r){i(l(r,e),l(n,t))},r)},coalesce:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return y(function(n,r){i(l(r,e),l(r,t))},r)},map:function(e){if(!p(e))throw new TypeError("Async.map: Function required");return y(function(t,n){i(t,l(n,e))},r)},bimap:function(e,t){if(!p(e)||!p(t))throw new TypeError("Async.bimap: Functions required for both arguments");return y(function(n,r){i(l(n,e),l(r,t))},r)},alt:function(e){var t=u;if(!m(y,e))throw new TypeError("Async.alt: Async required");return y(function(n,r){i(function(){t=e.fork(n,r)},r)},c(function(){return t(r())}))},ap:function(e){var t,n,o=!1,a=!1,s=u;if(!m(y,e))throw new TypeError("Async.ap: Async required");return y(function(r,u){var d=c(r);function f(){o&&a&&l(u,t)(n)}i(d,function(e){if(!p(e))throw new TypeError("Async.ap: Wrapped value must be a function");o=!0,t=e,f()}),s=e.fork(d,function(e){a=!0,n=e,f()})},c(function(){s(r())}))},chain:function(e){var t=u;if(!p(e))throw new TypeError("Async.chain: Async returning function required");return y(function(n,r){i(n,function(i){var o=e(i);if(!m(y,o))throw new TypeError("Async.chain: Function must return another Async");t=o.fork(n,r)})},c(function(){t(r())}))},of:v}}y.type=a,y.of=v,y.Rejected=function(e){return y(function(t){return t(e)})},y.Resolved=v,y.fromPromise=function(e){if(!p(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return y(function(n,r){var i=e.apply(null,t);if(!h(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r).catch(n)})}},y.fromNode=function(e,t){if(!p(e))throw new TypeError("Async.fromNode: CPS function required");return function(){var n=r(arguments);return y(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},y.all=function(e){if(!f(e)||!g(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return d(e)?s.sequence(y.of,e):e.sequence(y.of)},y["@@implements"]=i(["alt","ap","bimap","chain","map","of"]),e.exports=y},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e>t})},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(2060),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){"use strict";n.d(t,"a",function(){return Z}),n.d(t,"c",function(){return ie}),n.d(t,"b",function(){return se}),n.d(t,"e",function(){return le}),n.d(t,"d",function(){return ce});var r=n(123),i=n(159),o=n.n(i),a=n(5),s=n(19),l=n.n(s),c=n(6),u=n.n(c),d=n(320),f=n.n(d),p=n(40),h=n.n(p),m=n(33),g=n.n(m),v=n(46),y=n.n(v),b=n(48),_=n.n(b),w=n(72),E=n.n(w),k=n(106),x=n.n(k),S=n(51),T=n.n(S),C=n(75),O=n.n(C),A=n(61),N=n.n(A),I=n(17),M=n.n(I),j=n(62),L=n.n(j),P=n(466),D=n.n(P),R=n(53),F=n.n(R),B=n(23),U=n.n(B),q=n(8),z=n.n(q),H=n(14),W=n.n(H),$=n(67),Y=n.n($),V=n(32),K=n.n(V),G=n(78),X=n(65),Q=n(409),Z=u()(_()(M.a)({isComplete:!0,percentComplete:100}),F()(N()("items"),Object(G.e)(u()(F()(N()("items"),Object(G.e)(l()("isComplete",!0))),l()("isComplete",!0))))),J=function(e){var t=e.id,n=e.items;return U()(F()(O()(["items",t,"items"]),ae(n)),F()(O()(["items",t]),oe),X.f,K()(W()("percentComplete",100),l()("isComplete",!0)))},ee=function(e,t){var n=t.id;return M()(e,Object(a.a)({},n,l()("isComplete",!0)))},te=L()(["correctlyAnswered","percentComplete","percentViewed","isComplete"]),ne=F()(N()("items"),Object(G.e)(L()(["isComplete","isCorrect","isViewed"]))),re=Object(G.e)(u()(ne,te)),ie=U()(L()(["isComplete","percentComplete"]),F()(N()("items"),re)),oe=K()(function(e){return D()(u()(E.a,z()("items"))(e),function(e){return U()(z()("items"),Y.a,y()(W()("isComplete",!0)),T.a,_()(f.a)(u()(T.a,x.a,z()("items"))(e)),h()(1))(e)}(e))},l()("isComplete",!0)),ae=function(e){return function(t){return g()(o()(e).call(e,ee,{}),t)}},se=function(e){var t=e.lessonId,n=Object(r.a)(e,["lessonId"]);return function(e){return e(Object(X.g)({id:t,updateFn:(r=n,i=r.blockId,F()(O()(["items",i]),Q.a))}));var r,i}},le=function(e){var t=e.id,n=e.lessonId,r=e.items;return function(e){return e(Object(X.g)({id:n,updateFn:J({id:t,items:r})}))}},ce=function(e){var t=e.lessonId,n=Object(r.a)(e,["lessonId"]);return function(e){return e(Object(X.g)({id:t,updateFn:(r=n,i=r.itemId,o=r.blockId,a=r.isCorrect,U()(F()(O()(["items",o]),Object(Q.b)({itemId:i,isCorrect:a})),X.f))}));var r,i,o,a}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"f",function(){return f}),n.d(t,"e",function(){return p});var r=n(28),i=n.n(r),o=n(64),a=n(157),s=i()("rise/rise-com/"),l=s("FAVORITE_ADDED"),c=s("FAVORITE_REMOVED"),u=function(){return Object(o.e)(a.a)},d=function(){return Object(o.a)(l,void 0)},f=function(){return Object(o.e)(a.i)},p=function(){return Object(o.a)(c,void 0)}},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var r,i,o=n(229),a=n.n(o),s=n(4),l=n.n(s),c=n(139),u=n.n(c),d=n(104),f=n.n(d),p=n(39),h=n.n(p),m=n(212),g=n.n(m),v=n(35),y=n.n(v),b=n(235),_=n.n(b),w=n(23),E=n.n(w),k=n(197),x=n.n(k),S=n(8),T=n.n(S),C=n(29),O=function(e){return"Accessibility"===e.title},A=f()(O),N=[{title:"Course Overview",labels:l()(r=[{name:"courseStart",text:"START COURSE"},{name:"courseResume",text:"RESUME COURSE"}]).call(r,C.e?[]:[{name:"courseDetails",text:"DETAILS"}])},{title:"Global",labels:l()(i=[{name:"courseHome",text:"Home"},{name:"lessonComplete",text:"80% COMPLETE"},{name:"lessonName",text:"Lesson 4 of 7"},{name:"lessonRestricted",text:"Lessons must be completed in order"},{name:"courseSkipToLesson",text:"SKIP TO LESSON"},{name:"search",text:"search"},{name:"results",text:"20 results"},{name:"result",text:"1 result"},{name:"noResults",text:'No results for "abc"'}]).call(i,C.e?[{name:"courseFinish",text:"Finish"}]:[])},{title:"Quiz & Knowledge Check",labels:[{name:"quizStart",text:"START QUIZ"},{name:"quizAcceptableResponses",text:"Acceptable responses"},{name:"quizQuestion",text:"Question"},{name:"quizAnswerPlaceholder",text:"Type your answer here"},{name:"quizSubmit",text:"SUBMIT"},{name:"quizNext",text:"NEXT"},{name:"quizIncorrect",text:"Incorrect"},{name:"quizCorrect",text:"Correct"},{name:"quizResults",text:"Quiz Results"},{name:"quizScore",text:"Your score 90%"},{name:"quizPassing",text:"PASSING 80%"},{name:"quizTakeAgain",text:"TAKE AGAIN"},{name:"quizRequirePassingScore",text:"Must pass quiz before continuing"},{name:"quizContinue",text:"Continue"}]},{title:"Process",labels:[{name:"processStepName",text:"Step 3 of 6"},{name:"processNextStep",text:"NEXT STEP"},{name:"processLessonName",text:"Lesson 5 Complete"},{name:"processStart",text:"START"},{name:"processStartAgain",text:"START AGAIN"},{name:"processSwipe",text:"Swipe to continue"}]},{title:"Sorting",labels:[{name:"sortingCardsCorrect",text:"6/8 Cards Correct"},{name:"sortingReplay",text:"REPLAY"}]},{title:"Embeds",labels:[{name:"embedViewOn",text:"VIEW ON YOUTUBE"},{name:"embedReadMore",text:"Read more"}]},{title:"Flashcards",labels:[{name:"blocksClickToFlip",text:"Click cards to flip"},{name:"blocksPreposition",text:"1 of 3"}]},{title:"Scenario",labels:[{name:"scenarioTryAgain",text:"TRY AGAIN"},{name:"scenarioContinue",text:"CONTINUE"},{name:"scenarioComplete",text:"Scenario Complete"},{name:"scenarioStartOver",text:"START OVER"}]},{title:"Exit Course (LMS)",labels:[{name:"courseExit",text:"EXIT COURSE"},{name:"salutation",text:"👋 Bye!"},{name:"exitMessage",text:"You may now leave this page."}]},{title:"Accessibility",labels:[{name:"overviewPageTitleSuffix",text:"Overview Page Title"},{name:"lessonHeaderLandmark",text:"Lesson Header"},{name:"timelineLandmark",text:"Timeline"},{name:"timelineCardGroupPrefix",text:"Timeline Card"},{name:"labeledGraphicMarkerLabel",text:"Labeled graphic marker"},{name:"labeledGraphicBubbleLabel",text:"Labeled graphic bubble"},{name:"labeledGraphicPreviousMarkerLabel",text:"Previous marker"},{name:"labeledGraphicNextMarkerLabel",text:"Next marker"},{name:"audioPlayerGroup",text:"Audio player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"seekSliderLabel",text:"Seek"},{name:"playButtonLabel",text:"Play"},{name:"pauseButtonLabel",text:"Pause"},{name:"videoPlayerGroup",text:"Video player. You can use the space bar to toggle playback and arrow keys to scrub."},{name:"embedPlayerGroup",text:"Embedded media player"},{name:"embedPhotoGroup",text:"Embedded photo"},{name:"embedLinkGroup",text:"Embedded web content"},{name:"embedVideoGroup",text:"Embedded video"},{name:"noteGroup",text:"Note"},{name:"statementGroup",text:"Statement"},{name:"numberedListGroup",text:"Numbered list"},{name:"checkboxListGroup",text:"Checkbox list"},{name:"bulletedListGroup",text:"Bulleted list"},{name:"quoteGroup",text:"Quote"},{name:"lessonContentLandmark",text:"Lesson Content"},{name:"imageGalleryGroup",text:"Image gallery"},{name:"imageAndTextGroup",text:"Image and text"},{name:"textOnImageGroup",text:"Text on image"},{name:"attachmentGroup",text:"File Attachment"},{name:"codeGroup",text:"Code"},{name:"numberedDividerGroup",text:"Numbered divider"},{name:"accordionGroup",text:"Accordion"},{name:"tabGroup",text:"Tab"},{name:"flashcardStackGroup",text:"Flashcard stack"},{name:"flashcardGridGroup",text:"Flashcard grid"},{name:"buttonGroup",text:"Button"},{name:"buttonStackGroup",text:"Button stack"},{name:"knowledgeCheckGroup",text:"Knowledge check"},{name:"storylineGroup",text:"Storyline"},{name:"processLandmark",text:"Process"},{name:"quizLandmark",text:"Quiz"},{name:"labeledGraphicLandmark",text:"Labeled Graphic"},{name:"sortingLandmark",text:"Sorting Activity"},{name:"urlEmbedLandmark",text:"URL/Embed"},{name:"flashcardFrontLabel",text:"Flashcard front"},{name:"flashcardBackLabel",text:"Flashcard back"},{name:"previousFlashCardLabel",text:"Previous flashcard"},{name:"nextFlashCardLabel",text:"Next flashcard"},{name:"feedbackGroup",text:"Feedback"}]}],I=(E()(h()(O),T()("labels"),x()("name"))(N),E()(y()(T()("labels")),g.a,y()(function(e){var t={};return t[e.name]=e.text,t}),_.a)(N));a()(N).call(N,u()(A,function(e){var t=e.title;return!C.e||"Exit Course (LMS)"!==t}))},function(e,t,n){var r=n(2119),i=n(2121),o=n(253);e.exports=function(e){return(o(e)?r:i)(e)}},function(e,t,n){"use strict";n.d(t,"b",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return y}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return _});var r,i=n(5),o=n(19),a=n.n(o),s=n(64),l=n(28),c=n.n(l)()("rise/search/"),u=c("RESET_SEARCH"),d=c("SET_SEARCH_ACTIVE"),f=c("SET_SEARCH_ACTIVE_LESSONS"),p=c("SET_SEARCH_LESSONS"),h=c("SET_SEARCH_TERM"),m={active:!1,activeLessons:[],lessons:[],term:null};t.a=Object(s.d)(m,(r={},Object(i.a)(r,u,function(e,t){return t?a()("active",e.active,m):e}),Object(i.a)(r,d,function(e,t){return a()("active",t,e)}),Object(i.a)(r,f,function(e,t){return a()("activeLessons",t,e)}),Object(i.a)(r,p,function(e,t){return a()("lessons",t,e)}),Object(i.a)(r,h,function(e,t){return a()("term",t,e)}),r));var g=Object(s.a)(u),v=Object(s.a)(d),y=Object(s.a)(f),b=Object(s.a)(p),_=Object(s.a)(h)},function(e,t,n){"use strict";n.d(t,"b",function(){return B});var r=n(259),i=n(95),o=n(1189),a=n.n(o),s=n(18),l=n.n(s),c=n(1190),u=n.n(c),d=n(184),f=n.n(d),p=n(122),h=n.n(p),m=n(40),g=n.n(m),v=n(263),y=n.n(v),b=n(83),_=n.n(b),w=n(368),E=n.n(w),k=n(1191),x=n.n(k),S=n(1192),T=n.n(S),C=n(230),O=n.n(C),A=n(1193),N=n.n(A),I=n(86),M=n.n(I),j=n(76),L=n.n(j),P=E()(g.a,["http","https"]),D=f()(_.a,O()(":")),R=f()(y()(x()(a.a),P),u.a),F=f()(T()(N()("//"),R),D),B=h()(function(e){return f()(function(e){return M()((t=e,n=F,function(e){return!t(e)||n(e)}),l()(""));var t,n}(e),r.htmlDecode,i.e)}),U=B(L.a);t.a=U},function(e,t,n){e.exports=n(1814).default},function(e,t,n){var r=n(204),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t,n){var r=n(110)("unscopables"),i=n(339),o=n(163),a=Array.prototype;null==a[r]&&o(a,r,i(null)),e.exports=function(e){a[r][e]=!0}},function(e,t,n){var r=n(220);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(102),i=n(220),o=n(110)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){n(443);var r=n(1520),i=n(144),o=n(283),a=n(246),s=n(347),l=n(134)("toStringTag");for(var c in r){var u=i[c],d=u&&u.prototype;d&&o(d)!==l&&a(d,l,c),s[c]=s.Array}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";var r=n(126),i=n(98),o=n(459);e.exports={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=i.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?i.merge({},[r.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=i.extend(this.defaults[e],t))},addScalesToLayout:function(e){i.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,o.addBox(e,t)})}}},function(e,t,n){"use strict";e.exports={},e.exports.Arc=n(2187),e.exports.Line=n(2188),e.exports.Point=n(2189),e.exports.Rectangle=n(2190)},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return t>e?t:e})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e/t})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e*t})},function(e,t,n){var r=n(34),i=n(248),o=n(1692);e.exports=r(i(["all"],o,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))},function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"b",function(){return E});var r=n(6),i=n.n(r),o=n(46),a=n.n(o),s=n(298),l=n.n(s),c=n(83),u=n.n(c),d=n(99),f=n.n(d),p=n(26),h=n.n(p),m=n(1159),g=n.n(m),v=n(8),y=n.n(v),b=y()("lessons"),_=g()(function(e){return!!e},["settings","passToContinue"]),w=function(e){var t,n=e.course,r=e.courseProgress;return i()(u.a,a()((t=b(r),i()(f.a,function(e){return h()([e,"passed"],t)},y()("id")))),a()(_),b)(n)||{}},E=function(e){var t=e.courseProgress,n=e.lesson,r=e.restrictingQuiz,o=function(e){return h()([e,"index"],b(t))},a=o(y()("id",n));return i()(l()(a),o,y()("id"))(r)?r:{}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return j});var r=n(5),i=n(4),o=n.n(i),a=n(406),s=n(3),l=n.n(s),c=n(10),u=n(11),d=n(9),f=n(13),p=n(7),h=n(12),m=(n(2015),n(2016),n(2017),n(2018),n(2019),n(2020),n(2021),n(2022),n(2023),n(2024),n(2025),n(2026),n(2027),n(2028),n(2029),n(2030),n(2031),n(2032),n(2033),n(2034),n(2039),n(2040),n(52)),g=n(2),v=n.n(g),y=n(6),b=n.n(y),_=n(17),w=n.n(_),E=n(1182),k=n.n(E),x=n(107),S=n(1183),T=n(95),C=function(e,t){return function(e){return/^(https?:\/\/)|(mailto:)/gi.test(e)}(t)?e:'href="http://'.concat(t,'"')},O=function(e){return e.replace(/href="([^"]+)"/gi,C)},A=function(e){return function(e){return!e||""===e||"<p><br></p>"===e||"<p><br /></p>"===e}(e)?"":e},N=function(e){return e.currentTarget.parentElement.parentElement.classList.remove("fr-show-counter")},I=function(e){return e.currentTarget.parentElement.parentElement.classList.add("fr-show-counter")},M=["#5dbe6a","#00bd9c","#50abd4","#2580cc","#9462ba","#465478","#cccccc","#3ca95c","#00a984","#388dbb","#2467b2","#553684","#313537","#000000","#f8db5a","#fda100","#ed6a51","#e44f3b","#a38f83","#efefef","#ffffff","#fbc600","#f57926","#d3473c","#ba302a","#7c706b","#d1d5d8","REMOVE"],j=function(t){function n(e){var t,r;return Object(c.a)(this,n),(r=Object(u.a)(this,Object(d.a)(n).call(this,e))).onModelChange=l()(t=r.onModelChange).call(t,Object(f.a)(r)),r}return Object(h.a)(n,t),Object(p.a)(n,null,[{key:"defaultProps",get:function(){return{allowBold:!0,generateNewInstance:!1,hasQuickInsert:!0,locked:!1,maxLength:-1,multiLine:!0,options:{},value:"",onChange:function(){},onDrop:S.a,onFocus:function(){},onKeyDown:function(){}}}}]),Object(p.a)(n,[{key:"shouldComponentUpdate",value:function(e){return e.value!==this.props.value||this.props.locked!=e.locked}},{key:"setFocusAtEnd",value:function(){var e=this.editor.$editor[0],t=e.children.length>0?e.lastChild:e;if(this.setFocus(),void 0!==window.getSelection&&void 0!==document.createRange){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var r=window.getSelection();r.removeAllRanges(),r.addRange(n)}else if(void 0!==document.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(t),i.collapse(!1),i.select()}}},{key:"setFocus",value:function(){this.editor.$editor[0].focus()}},{key:"onModelChange",value:function(e){return b()(this.props.onChange,O,A)(e)}},{key:"render",value:function(){var t,n=this,i=this.props,s=i.allowBold,l=i.className,c=i.generateNewInstance,u=i.hasQuickInsert,d=i.onDrop,f=i.onFocus,p=i.onKeyDown,h=i.locked,g=i.maxLength,y=i.multiLine,b=i.options,_=i.placeholder,E=i.value,S=["italic","underline","strikeThrough","subscript","superscript","|","fontSize","color","insertLink","-","alignWithDefault","formatOL","formatUL","outdent","indent","selectAll","clearFormatting","undo","redo"];s&&S.unshift("bold");var C=o()(t=["alignWithDefault","charCounterV2","codeBeautifier","codeView","colors","draggable","entities","fontSize","fullscreen","inlineStyle","lineBreaker","link","lists"]).call(t,Object(a.a)(u?["quickInsert"]:[]),["paragraphFormat","save","table","url","wordPaste"]),O=["img","iframe","script"],A=w()({uniquifier:c?new Date:"",charCounterMax:g,colorsBackground:M,colorsText:M,events:{"froalaEditor.initialized":function(e,t){t.events.on("keydown",p,!0),t.events.on("drop",d,!0),g>0&&(t.events.on("focus",I,!0),t.events.on("blur",N,!0),t.events.trigger("charCounter.update"))},"froalaEditor.focus":function(e,t){t.events.on("focus",f,!0),g>0&&t.events.trigger("charCounter.update")}},fontSize:["12","13","14","15","16","17","18","20","22","24","26","28","30","32","34","36","38","40","42","44","46","48","50","52"],htmlAllowedTags:T.a,immediateReactModelUpdate:!0,keepFormatOnDelete:!0,key:Object(x.d)("FROALA_KEY"),lineBreakerTags:["table"],linkAlwaysBlank:!0,linkEditButtons:["linkEdit","linkRemove"],linkInsertButtons:["linkBack","|"],listAdvancedTypes:!1,multiLine:y,pasteDeniedTags:O,pastePlain:!0,placeholderText:_,pluginsEnabled:C,quickInsertButtons:["table","ol","ul"],tabSpaces:4,toolbarButtons:S,toolbarButtonsMD:S,toolbarButtonsSM:S,toolbarButtonsXS:S,toolbarInline:!0,wordDeniedTags:O,wordPasteModal:!1},b),j=v()("brand--linkColor",Object(r.a)({},l,l));return e.createElement("div",{className:j},h?e.createElement(m.a,{value:E}):e.createElement(k.a,{tag:"textarea",config:A,onModelChange:this.onModelChange,ref:function(e){n.editor=e},model:E}))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return t.match(e)||[]})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(31),i=n(3),o=n.n(i),a=n(10),s=n(7),l=n(11),c=n(9),u=n(13),d=n(12),f=n(84),p=function(t){function n(e){var t,r,i,s,d,f;return Object(a.a)(this,n),(f=Object(l.a)(this,Object(c.a)(n).call(this,e))).handleTransition=o()(t=f.handleTransition).call(t,Object(u.a)(f)),f.onEnter=o()(r=f.onEnter).call(r,Object(u.a)(f)),f.onEntered=o()(i=f.onEntered).call(i,Object(u.a)(f)),f.onExit=o()(s=f.onExit).call(s,Object(u.a)(f)),f.onExited=o()(d=f.onExited).call(d,Object(u.a)(f)),f}return Object(d.a)(n,t),Object(s.a)(n,[{key:"handleTransition",value:function(e,t){var n=this.transitionState;"entering"===n?this.onEnter(t):"exiting"===n&&this.onExit(t)}},{key:"onEnter",value:function(e){var t=this.child;t&&t.componentWillEnter?t.componentWillEnter(e):e()}},{key:"onEntered",value:function(){var e=this.child;e&&e.componentDidEnter&&e.componentDidEnter()}},{key:"onExit",value:function(e){var t=this.child;t&&t.componentWillExit?t.componentWillExit(e):e()}},{key:"onExited",value:function(){var e=this.child;e&&e.componentDidExit&&e.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props.children;return e.createElement(f.Transition,Object(r.a)({addEndListener:this.handleTransition,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0},this.props),function(r){return t.transitionState=r,n&&e.cloneElement(e.Children.only(n),{ref:function(e){return t.child=e}})})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(1087)),i=u(n(1088)),o=u(n(0)),a=u(n(103)),s=u(n(1089)),l=u(n(1090)),c=u(n(2143));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=d(this,e.call.apply(e,[this].concat(o))),r.setContainer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.props;r._portalContainerNode=(0,s.default)(e.container,(0,l.default)(r).body)},r.getMountNode=function(){return r._portalContainerNode},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.setContainer(),this.forceUpdate(this.props.onRendered)},t.prototype.componentWillReceiveProps=function(e){e.container!==this.props.container&&this.setContainer(e)},t.prototype.componentWillUnmount=function(){this._portalContainerNode=null},t.prototype.render=function(){return this.props.children&&this._portalContainerNode?a.default.createPortal(this.props.children,this._portalContainerNode):null},t}(o.default.Component);f.displayName="Portal",f.propTypes={container:r.default.oneOfType([i.default,r.default.func]),onRendered:r.default.func},t.default=a.default.createPortal?f:c.default,e.exports=t.default},function(e,t,n){var r=n(955),i=n(2325),o=n(714),a=n(252),s=n(2327),l=n(2329),c=n(2332),u=n(1119),d=n(549),f=30,p="...",h=/\w*$/;e.exports=function(e,t){var n=f,m=p;if(a(t)){var g="separator"in t?t.separator:g;n="length"in t?u(t.length):n,m="omission"in t?r(t.omission):m}var v=(e=d(e)).length;if(o(e)){var y=c(e);v=y.length}if(n>=v)return e;var b=n-l(m);if(b<1)return m;var _=y?i(y,0,b).join(""):e.slice(0,b);if(void 0===g)return _+m;if(y&&(b+=_.length-b),s(g)){if(e.slice(b).search(g)){var w,E=_;for(g.global||(g=RegExp(g.source,d(h.exec(g))+"g")),g.lastIndex=0;w=g.exec(E);)var k=w.index;_=_.slice(0,void 0===k?b:k)}}else if(e.indexOf(r(g),b)!=b){var x=_.lastIndexOf(g);x>-1&&(_=_.slice(0,x))}return _+m}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return P}),n.d(t,"a",function(){return D});var r=n(30),i=n.n(r),o=n(182),a=n.n(o),s=n(15),l=n.n(s),c=n(3),u=n.n(c),d=n(37),f=n.n(d),p=n(10),h=n(11),m=n(9),g=n(13),v=n(7),y=n(12),b=(n(2344),n(2)),_=n.n(b),w=n(94),E=n.n(w),k=n(51),x=n.n(k),S=n(26),T=n.n(S),C=n(327),O=n.n(C),A=n(41),N=n.n(A),I=n(1),M=n.n(I),j=n(210),L=n.n(j),P=function(t){function n(e){var t;return Object(p.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={isSticky:!1},f()(function(){var e;document.getElementsByClassName("page-wrap")[0].addEventListener("scroll",t.onScrollRef=u()(e=t.onScroll).call(e,Object(g.a)(t)))},10),t}return Object(y.a)(n,t),Object(v.a)(n,null,[{key:"propTypes",get:function(){return{id:M.a.any.isRequired,lessonProgress:M.a.object.isRequired,type:M.a.string.isRequired,items:M.a.array}}}]),Object(v.a)(n,[{key:"componentWillUnmount",value:function(){document.getElementsByClassName("page-wrap")[0].removeEventListener("scroll",this.onScrollRef)}},{key:"onScroll",value:function(){var e=document.getElementsByClassName("page-wrap")[0],t=e.scrollTop,n=e.scrollTop,r=t>this.progresswrap.getBoundingClientRect().top+n;this.state.isSticky!==r&&this.setState({isSticky:r})}},{key:"isLessonPreview",value:function(){return!!document.querySelector(".lesson--preview")}},{key:"timelineProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=N()(-1,"activeIndex",n),i=x()(t);return-1===r?0:E()(r)===i?100:L()("%","",T()([r,"linePosition"],t))}},{key:"processProgressValue",value:function(){var e=this.props,t=e.items,n=e.lessonProgress,r=N()(0,"activeIndex",n),i=x()(t);return r>i?100:Math.round(r/i*100)}},{key:"progressValue",value:function(){var e=this.props,t=e.lessonProgress;switch(e.type){case"process":return this.processProgressValue();case"sorting":return N()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return N()(0,"percentComplete",t)}}},{key:"render",value:function(){var t=this,n=this.props,r=n.type,o=n.items,s=n.menuOpen,c=n.mobileMenuOpen,u=this.state.isSticky,d=_()("progress-wrap",{}),f=_()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":u&&!c,"lesson--open":s&&!this.isLessonPreview(),"lesson--open-mobile":c&&!this.isLessonPreview()}),p=_()("progress",{"progress--timeline":"timeline"===r,"progress--video":"video"===r}),h=this.progressValue(),m="timeline"===r&&o&&l()(o).call(o,function(t){var n,r=_()("progress__marker",{"progress__marker--active brand--background":a()(h)>=a()(i()(n=t.linePosition).call(n,0,-1))});return e.createElement("div",{className:r,style:{left:t.linePosition},key:t.id})}),g=e.createElement("div",{className:d},e.createElement("div",{className:p},e.createElement("div",{className:"progress__container"},e.createElement("div",{className:"progress__indicator brand--background",style:{transform:"translate3d(".concat(h,"%,0px,0px)")}}),m)));return e.createElement("div",{ref:function(e){return t.progresswrap=e}},g,e.createElement(O.a,null,e.createElement("div",{className:f},g)))}}]),n}(e.Component),D=e.createElement(P,{id:"abc123",lessonProgress:{},type:"foo"}).type}).call(this,n(0))},function(e,t,n){var r=n(1671);"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e});var i={},o=void 0;function a(){return!!o&&!0!==o.headersSent}function s(e){i=e?r.parse(e):{}}var l={load:function(e,t){var n="undefined"==typeof document?i:r.parse(document.cookie),o=n&&n[e];if(void 0===t&&(t=!o||"{"!==o[0]&&"["!==o[0]),!t)try{o=JSON.parse(o)}catch(e){}return o},select:function(e){var t="undefined"==typeof document?i:r.parse(document.cookie);return t?e?Object.keys(t).reduce(function(n,r){if(!e.test(r))return n;var i={};return i[r]=t[r],Object.assign({},n,i)},{}):t:{}},save:function(e,t,n){i[e]=t,"object"==typeof t&&(i[e]=JSON.stringify(t)),"undefined"!=typeof document&&(document.cookie=r.serialize(e,i[e],n)),a()&&o.cookie&&o.cookie(e,t,n)},remove:function(e,t){delete i[e],t=void 0===t?{}:"string"==typeof t?{path:t}:Object.assign({},t),"undefined"!=typeof document&&(t.expires=new Date(1970,1,1,0,0,1),t.maxAge=0,document.cookie=r.serialize(e,"",t)),a()&&o.clearCookie&&o.clearCookie(e,t)},setRawCookie:s,plugToRequest:function(e,t){return e.cookie?i=e.cookie:e.cookies?i=e.cookies:e.headers&&e.headers.cookie?s(e.headers.cookie):i={},o=t,function(){o=null,i={}}}};"undefined"!=typeof window&&(window.reactCookie=l),e.exports=l},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(5),a=n(123),s=(n(1796),n(2)),l=n.n(s),c=n(36),u=n.n(c),d=n(0),f=n.n(d),p=function(e){var t;return l()("button",(t={},Object(o.a)(t,e.className,!u()(e.className)),Object(o.a)(t,"button--default",void 0===e.mode),Object(o.a)(t,"button--extraPadding",e.extraPadding),Object(o.a)(t,"button--menu",e.menu),Object(o.a)(t,"button--menu button--menuMobile",e.mobileMenu),Object(o.a)(t,"button--sidebar brand--ui",e.sidebar),Object(o.a)(t,"button--header",e.header),Object(o.a)(t,"button--header-done",e.headerDone),Object(o.a)(t,"button--outline",e.outline),Object(o.a)(t,"button--outline button--outline-transparent",e.outlineTransparent),Object(o.a)(t,"button--condensed",e.condensed),Object(o.a)(t,"button--inverted",e.inverted),Object(o.a)(t,"button--inline","inline"===e.mode),Object(o.a)(t,"button--next",e.next),Object(o.a)(t,"button--disabled",e.disabled),Object(o.a)(t,"button--controls",e.controls),Object(o.a)(t,"brand--ui",e.accent),Object(o.a)(t,"brand--background brand--border",e.branded),t))},h=function(e){return e?f.a.createElement("i",{className:"button__icon icon-".concat(e)}):null},m=function(e){var t,n=e.onlyIcon,r=e.children;return i()(t=f.a.Children).call(t,r,function(e){return n&&void 0===e.type?null:e})};t.a=function(e){var t=e.ariaControls,n=e.ariaExpanded,r=e.ariaHidden,i=e.ariaLabel,o=e.ariaPressed,s=e.onClick,l=e.tabIndex,c=Object(a.a)(e,["ariaControls","ariaExpanded","ariaHidden","ariaLabel","ariaPressed","onClick","tabIndex"]);return f.a.createElement("button",{"aria-expanded":n,"aria-hidden":r,"aria-label":i,"aria-controls":t,"aria-pressed":o,className:p(c),disabled:c.disabled,onClick:s,tabIndex:l},h(c.icon),m(c))}},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(e)})},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(69))},function(e,t,n){"use strict";n.d(t,"c",function(){return b}),n.d(t,"a",function(){return _}),n.d(t,"b",function(){return w});var r=n(6),i=n.n(r),o=n(28),a=n.n(o),s=n(46),l=n.n(s),c=n(39),u=n.n(c),d=n(115),f=n.n(d),p=n(8),h=n.n(p),m=n(14),g=n.n(m),v=n(82),y=n.n(v),b=function(e){var t="";return y()(function(e,n){if("section"===n.type)return t=n.id,n.children=[],a()(e,[n]);if(t){n.sectionId=t;var r=f()(g()("id",t))(e);return e[r].children=a()(e[r].children,[n]),e}return a()(e,[n])},[],e)},_=function(e,t){var n=i()(u()(g()("id",t)),h()("children")),r=i()(u()(n),l()(g()("type","section")),b)(e);return r?[r.id]:[]},w=function(e){return f()(g()("id",e))}},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){e=e<n.length&&e>=0?e:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(e,0,t),r})},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(767),i=n(622).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(102),i=n(770),o=n(622),a=n(771),s=n(619),l=n(496)("IE_PROTO"),c=function(){},u=function(){var e,t=s("iframe"),n=o.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[o[n]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[l]=e):n=u(),void 0===t?n:i(n,t)},n(430)[l]=!0},function(e,t,n){"use strict";var r=n(242),i=n(133),o=n(337);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){var r=n(429)("meta"),i=n(437),o=n(97),a=n(142),s=n(133).f,l=0,c=Object.isExtensible||function(){return!0},u=function(e){s(e,r,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].objectID},getWeakData:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].weakData},onFreeze:function(e){return i&&d.REQUIRED&&c(e)&&!a(e,r)&&u(e),e}};n(430)[r]=!0},function(e,t,n){var r=n(176),i=n(511),o=n(343),a=n(245),s=n(513),l=n(193),c=n(801),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(651),i=n(280).f,o=n(246),a=n(193),s=n(1518),l=n(134)("toStringTag");e.exports=function(e,t,n,c){if(e){var u=n?e:e.prototype;a(u,l)||i(u,l,{configurable:!0,value:t}),c&&!r&&o(u,"toString",s)}}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var r=n(1542),i=n(1543),o=n(829);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(e,o+f)!==c(t,f)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return z(U(t,e.length-n),e,n,r)}function _(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return _(e,t,n,r)}function E(e,t,n,r){return z(q(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=T));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return C(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){o=c[d],a=u[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function C(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=B(e[o]);return i}function N(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,o){return o||P(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return o||P(e,0,n,8),i.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=l.isBuffer(e)?e:U(new l(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(69))},function(e,t,n){"use strict";var r=n(522),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=d;var o=n(447);o.inherits=n(247);var a=n(828),s=n(657);o.inherits(d,a);for(var l=i(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),r(t,e)}},function(e,t,n){var r=n(851),i=n(852),o=n(1598);e.exports=function(){function e(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function t(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var n="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";return function(o,a,s){if("function"==typeof o&&(o=i(o)),r(s))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(o,a,s);if("function"==typeof s["fantasy-land/reduce"])return t(o,a,s,"fantasy-land/reduce");if(null!=s[n])return e(o,a,s[n]());if("function"==typeof s.next)return e(o,a,s);if("function"==typeof s.reduce)return t(o,a,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}()},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e,t){var n;t=t||[];var r=(e=e||[]).length,i=t.length,o=[];for(n=0;n<r;)o[o.length]=e[n],n+=1;for(n=0;n<i;)o[o.length]=t[n],n+=1;return o}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(287),i=n(535);e.exports=function(e,t){return!!t&&(function(e,t){return r(t[i[e]])||r(t[e])}(e,t)||function(e,t){return r(t["@@implements"])&&!!t["@@implements"](e)}(e,t))}},function(e,t,n){var r=n(537);e.exports=function(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}},function(e,t,n){var r=n(355),i=n(537);e.exports=function(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return i(n)?t:r(function(t){return e(n,t)});default:return i(n)&&i(o)?t:i(n)?r(function(t){return e(t,o)}):i(o)?r(function(t){return e(n,t)}):e(n,o)}}}},function(e,t,n){var r=n(1918),i=n(1921);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return At(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var v=i.momentProperties=[];function y(e,t){var n,r,i;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)r=v[n],s(i=t[r])||(e[r]=i);return e}var b=!1;function _(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function w(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function E(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=E(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&k(e[r])!==k(t[r]))&&a++;return a+o}function S(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return f(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){for(var r,o=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];o.push(r)}S(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var C,O={};function A(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),O[e]||(S(t),O[e]=!0)}function N(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function I(e,t){var n,r=f({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=f({},r[n]));return r}function M(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var j={};function L(e,t){var n=e.toLowerCase();j[n]=j[n+"s"]=j[t]=e}function P(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function D(e){var t,n,r={};for(n in e)d(e,n)&&(t=P(n))&&(r[t]=e[n]);return r}var R={};function F(e,t){R[e]=t}function B(e,t,n){var r=""+Math.abs(e),i=t-r.length,o=e>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},H={};function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function $(e,t){return e.isValid()?(t=Y(t,e.localeData()),z[t]=z[t]||function(e){var t,n,r,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=(r=i[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=N(i[r])?i[r].call(t,e):i[r];return o}}(t),z[t](e)):e.localeData().invalidDate()}function Y(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(q.lastIndex=0;n>=0&&q.test(e);)e=e.replace(q,r),q.lastIndex=0,n-=1;return e}var V=/\d/,K=/\d\d/,G=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=N(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ge(e,t,n){null!=t&&d(pe,e)&&pe[e](t,n._a,n,e)}var ve=0,ye=1,be=2,_e=3,we=4,Ee=5,ke=6,xe=7,Se=8;function Te(e){return Ce(e)?366:365}function Ce(e){return e%4==0&&e%100!=0||e%400==0}W("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),W(0,["YY",2],0,function(){return this.year()%100}),W(0,["YYYY",4],0,"year"),W(0,["YYYYY",5],0,"year"),W(0,["YYYYYY",6,!0],0,"year"),L("year","y"),F("year",1),ue("Y",oe),ue("YY",Z,K),ue("YYYY",ne,X),ue("YYYYY",re,Q),ue("YYYYYY",re,Q),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):k(e)}),he("YY",function(e,t){t[ve]=i.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var Oe,Ae=Ne("FullYear",!0);function Ne(e,t){return function(n){return null!=n?(Me(this,e,n),i.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Me(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ce(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ce(e)?29:28:31-r%7%2}Oe=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},W("M",["MM",2],"Mo",function(){return this.month()+1}),W("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),W("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),F("month",8),ue("M",Z),ue("MM",Z,K),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=k(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ye]=i:h(n).invalidMonth=e});var Le=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Pe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),De="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Re(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=k(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),je(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Fe(e){return null!=e?(Re(this,e),i.updateOffset(this,!0),this):Ie(this,"Month")}var Be=le,Ue=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),i[t]=fe(i[t]);for(t=0;t<24;t++)o[t]=fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function He(e,t,n){var r=7+t-n,i=(7+ze(e,0,r).getUTCDay()-t)%7;return-i+r-1}function We(e,t,n,r,i){var o,a,s=(7+n-r)%7,l=He(e,r,i),c=1+7*(t-1)+s+l;return c<=0?a=Te(o=e-1)+c:c>Te(e)?(o=e+1,a=c-Te(e)):(o=e,a=c),{year:o,dayOfYear:a}}function $e(e,t,n){var r,i,o=He(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?(i=e.year()-1,r=a+Ye(i,t,n)):a>Ye(e.year(),t,n)?(r=a-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function Ye(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Te(e)-r+i)/7}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),ue("w",Z),ue("ww",Z,K),ue("W",Z),ue("WW",Z,K),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=k(e)}),W("d",0,"do","day"),W("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),W("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),W("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ue("d",Z),ue("e",Z),ue("E",Z),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=k(e)});var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xe=le,Qe=le,Ze=le;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),c[t]=fe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){W(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,et),W("k",["kk",2],0,function(){return this.hours()||24}),W("hmm",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)}),W("hmmss",0,0,function(){return""+et.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),W("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),W("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),tt("a",!0),tt("A",!1),L("hour","h"),F("hour",13),ue("a",nt),ue("A",nt),ue("H",Z),ue("h",Z),ue("k",Z),ue("HH",Z,K),ue("hh",Z,K),ue("kk",Z,K),ue("hmm",J),ue("hmmss",ee),ue("Hmm",J),ue("Hmmss",ee),he(["H","HH"],_e),he(["k","kk"],function(e,t,n){var r=k(e);t[_e]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[_e]=k(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Ee]=k(e.substr(i)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[_e]=k(e.substr(0,r)),t[we]=k(e.substr(r,2)),t[Ee]=k(e.substr(i))});var rt,it=Ne("Hours",!0),ot={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:De,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(2201)("./"+t),ut(r)}catch(e){}return at[t]}function ut(e,t){var n;return e&&((n=s(t)?ft(e):dt(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null!==t){var n,r=ot;if(t.abbr=e,null!=at[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new M(I(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ut(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!o(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o<e.length;){for(i=lt(e[o]).split("-"),t=i.length,n=(n=lt(e[o+1]))?n.split("-"):null;t>0;){if(r=ct(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>je(n[ve],n[ye])?be:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[we]||0!==n[Ee]||0!==n[ke])?_e:n[we]<0||n[we]>59?we:n[Ee]<0||n[Ee]>59?Ee:n[ke]<0||n[ke]>999?ke:-1,h(e)._overflowDayOfYear&&(t<ve||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=xe),h(e)._overflowWeekday&&-1===t&&(t=Se),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,o,a,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,i,o,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,a=4,n=ht(t.GG,e._a[ve],$e(Nt(),1,4).year),r=ht(t.W,1),((i=ht(t.E,1))<1||i>7)&&(l=!0);else{o=e._locale._week.dow,a=e._locale._week.doy;var c=$e(Nt(),o,a);n=ht(t.gg,e._a[ve],c.year),r=ht(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o}r<1||r>Ye(n,o,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=We(n,r,i,o,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[ve],r[ve]),(e._dayOfYear>Te(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=ze(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[we]&&0===e._a[Ee]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?ze:function(e,t,n,r,i,o,a){var s=new Date(e,t,n,r,i,o,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Et(e){var t,n,r,i,o,a,s=e._i,l=gt.exec(s)||vt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){i=bt[t][0],r=!1!==bt[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){o=(l[2]||" ")+_t[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!yt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Ct(e)}else e._isValid=!1}var kt=/^(?:(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{4}))$/;function xt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tt(e){var t,n,r,i,o,a,s,l=kt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],i=l[5],o=l[6],a=l[7],s=[xt(t),De.indexOf(n),parseInt(r,10),parseInt(i,10),parseInt(o,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return St[e];if(t)return 0;var r=parseInt(n,10),i=r%100,o=(r-i)/100;return 60*o+i}(l[8],l[9],l[10]),e._d=ze.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Ct(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,a,s=""+e._i,l=s.length,c=0;for(r=Y(e._f,e._locale).match(U)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(de(o,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),H[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),ge(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[_e]<=12&&!0===h(e).bigHour&&e._a[_e]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[_e]=(u=e._locale,d=e._a[_e],null==(f=e._meridiem)?d:null!=u.meridiemHour?u.meridiemHour(d,f):null!=u.isPM?((p=u.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Tt(e);else Et(e);var u,d,f,p}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new _(pt(t)):(c(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ct(t),m(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;s(t)?e._d=new Date(i.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Et(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=D(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function At(e,t,n,r,i){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=i,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new _(pt(Ot(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Nt(e,t,n,r){return At(e,t,n,r,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var It=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Mt=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Nt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()});function jt(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Nt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Lt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pt(e){var t=D(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Oe.call(Lt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Lt.length;++r)if(e[Lt[r]]){if(n)return!1;parseFloat(e[Lt[r]])!==k(e[Lt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ft(),this._bubble()}function Dt(e){return e instanceof Pt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){W(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),ue("Z",se),ue("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ut(se,e)});var Bt=/([\+\-]|\d\d)/gi;function Ut(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Bt)||["-",0,0],o=60*i[1]+k(i[2]);return 0===o?0:"+"===i[0]?o:-o}function qt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||c(e)?e.valueOf():Nt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Nt(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ht(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Wt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,r,i,o,a,s,c=e,u=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Wt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:k(u[be])*n,h:k(u[_e])*n,m:k(u[we])*n,s:k(u[Ee])*n,ms:k(Rt(1e3*u[ke]))*n}):(u=$t.exec(e))?(n="-"===u[1]?-1:1,c={y:Vt(u[2],n),M:Vt(u[3],n),w:Vt(u[4],n),d:Vt(u[5],n),h:Vt(u[6],n),m:Vt(u[7],n),s:Vt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(o=Nt(c.from),a=Nt(c.to),i=o.isValid()&&a.isValid()?(a=qt(a,o),o.isBefore(a)?s=Kt(o,a):((s=Kt(a,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new Pt(c),Dt(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function Vt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Xt(this,Yt(n="string"==typeof n?+n:n,r),e),this}}function Xt(e,t,n,r){var o=t._milliseconds,a=Rt(t._days),s=Rt(t._months);e.isValid()&&(r=null==r||r,s&&Re(e,Ie(e,"Month")+s*n),a&&Me(e,"Date",Ie(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Yt.fn=Pt.prototype,Yt.invalid=function(){return Yt(NaN)};var Qt=Gt(1,"add"),Zt=Gt(-1,"subtract");function Jt(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),o=e.clone().add(i,"months");return t-o<0?(n=e.clone().add(i-1,"months"),r=(t-o)/(o-n)):(n=e.clone().add(i+1,"months"),r=(t-o)/(n-o)),-(i+r)||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ft(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function nn(){return this._locale}function rn(e,t){W(0,[e,e.length],0,t)}function on(e,t,n,r,i){var o;return null==e?$e(this,r,i).year:(o=Ye(e,r,i),t>o&&(t=o),function(e,t,n,r,i){var o=We(e,t,n,r,i),a=ze(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,i))}W(0,["gg",2],0,function(){return this.weekYear()%100}),W(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ue("G",oe),ue("g",oe),ue("GG",Z,K),ue("gg",Z,K),ue("GGGG",ne,X),ue("gggg",ne,X),ue("GGGGG",re,Q),ue("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=k(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),W("Q",0,"Qo","quarter"),L("quarter","Q"),F("quarter",7),ue("Q",V),he("Q",function(e,t){t[ye]=3*(k(e)-1)}),W("D",["DD",2],"Do","date"),L("date","D"),F("date",9),ue("D",Z),ue("DD",Z,K),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=k(e.match(Z)[0])});var an=Ne("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),F("dayOfYear",4),ue("DDD",te),ue("DDDD",G),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=k(e)}),W("m",["mm",2],0,"minute"),L("minute","m"),F("minute",14),ue("m",Z),ue("mm",Z,K),he(["m","mm"],we);var sn=Ne("Minutes",!1);W("s",["ss",2],0,"second"),L("second","s"),F("second",15),ue("s",Z),ue("ss",Z,K),he(["s","ss"],Ee);var ln,cn=Ne("Seconds",!1);for(W("S",0,0,function(){return~~(this.millisecond()/100)}),W(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,function(){return 10*this.millisecond()}),W(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),W(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),W(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),W(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),W(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),F("millisecond",16),ue("S",te,V),ue("SS",te,K),ue("SSS",te,G),ln="SSSS";ln.length<=9;ln+="S")ue(ln,ie);function un(e,t){t[ke]=k(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,un);var dn=Ne("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var fn=_.prototype;function pn(e){return e}fn.add=Qt,fn.calendar=function(e,t){var n=e||Nt(),r=qt(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(N(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Nt(n)))},fn.clone=function(){return new _(this)},fn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=qt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=Jt(this,r)/12;break;case"month":o=Jt(this,r);break;case"quarter":o=Jt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:E(o)},fn.endOf=function(e){return void 0===(e=P(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=$(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Nt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Nt(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Nt(),e)},fn.get=function(e){return N(this[e=P(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},fn.isBefore=function(e,t){var n=w(e)?e:Nt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},fn.isBetween=function(e,t,n,r){var i=w(e)?e:Nt(e),o=w(t)?t:Nt(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},fn.isSame=function(e,t){var n,r=w(e)?e:Nt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},fn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},fn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},fn.isValid=function(){return m(this)},fn.lang=tn,fn.locale=en,fn.localeData=nn,fn.max=Mt,fn.min=It,fn.parsingFlags=function(){return f({},h(this))},fn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:R[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=D(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(N(this[e=P(e)]))return this[e](t);return this},fn.startOf=function(e){switch(e=P(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},fn.subtract=Zt,fn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},fn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},fn.toDate=function(){return new Date(this.valueOf())},fn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?$(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",$(n,"Z")):$(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Ae,fn.isLeapYear=function(){return Ce(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Fe,fn.daysInMonth=function(){return je(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=$e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Ye(this.year(),1,4)},fn.date=an,fn.day=fn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},fn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},fn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},fn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},fn.hour=fn.hours=it,fn.minute=fn.minutes=sn,fn.second=fn.seconds=cn,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ut(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Xt(this,Yt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Nt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ht,fn.isUTC=Ht,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=T("dates accessor is deprecated. Use date instead.",an),fn.months=T("months accessor is deprecated. Use month instead",Fe),fn.years=T("years accessor is deprecated. Use year instead",Ae),fn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),fn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?p(e._a):Nt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=M.prototype;function mn(e,t,n,r){var i=ft(),o=p().set(r,t);return i[n](o,e)}function gn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=mn(e,r,n,"month");return i}function vn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,o=ft(),a=e?o._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=mn(t,(i+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return N(i)?i(e,t,n,r):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)N(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,a))?i:null:-1!==(i=Oe.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Oe.call(this._shortMonthsParse,a))?i:-1!==(i=Oe.call(this._longMonthsParse,a))?i:null:-1!==(i=Oe.call(this._longMonthsParse,a))?i:-1!==(i=Oe.call(this._shortMonthsParse,a))?i:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||qe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ue),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||qe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return $e(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:o(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Oe.call(this._minWeekdaysParse,a))?i:-1!==(i=Oe.call(this._weekdaysParse,a))?i:-1!==(i=Oe.call(this._shortWeekdaysParse,a))?i:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Xe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ze),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ut("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",ut),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ft);var yn=Math.abs;function bn(e,t,n,r){var i=Yt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function _n(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function kn(e){return function(){return this.as(e)}}var xn=kn("ms"),Sn=kn("s"),Tn=kn("m"),Cn=kn("h"),On=kn("d"),An=kn("w"),Nn=kn("M"),In=kn("y");function Mn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Mn("milliseconds"),Ln=Mn("seconds"),Pn=Mn("minutes"),Dn=Mn("hours"),Rn=Mn("days"),Fn=Mn("months"),Bn=Mn("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11},zn=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=zn(this._milliseconds)/1e3,r=zn(this._days),i=zn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var o=E(i/12),a=i%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Hn(this._months)!==Hn(d)?"-":"",h=Hn(this._days)!==Hn(d)?"-":"",m=Hn(this._milliseconds)!==Hn(d)?"-":"";return f+"P"+(o?p+o+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(u?m+u+"S":"")}var $n=Pt.prototype;return $n.isValid=function(){return this._isValid},$n.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},$n.add=function(e,t){return bn(this,e,t,1)},$n.subtract=function(e,t){return bn(this,e,t,-1)},$n.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},$n.asMilliseconds=xn,$n.asSeconds=Sn,$n.asMinutes=Tn,$n.asHours=Cn,$n.asDays=On,$n.asWeeks=An,$n.asMonths=Nn,$n.asYears=In,$n.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},$n._bubble=function(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*_n(En(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=E(o/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,a+=E(n/24),i=E(wn(a)),s+=i,a-=_n(En(i)),r=E(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},$n.clone=function(){return Yt(this)},$n.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},$n.milliseconds=jn,$n.seconds=Ln,$n.minutes=Pn,$n.hours=Dn,$n.days=Rn,$n.weeks=function(){return E(this.days()/7)},$n.months=Fn,$n.years=Bn,$n.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Yt(e).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),l=Un(r.as("M")),c=Un(r.as("y")),u=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||l<=1&&["M"]||l<qn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},$n.toISOString=Wn,$n.toString=Wn,$n.toJSON=Wn,$n.locale=en,$n.localeData=nn,$n.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),$n.lang=tn,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ue("x",oe),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(k(e))}),i.version="2.23.0",t=Nt,i.fn=fn,i.min=function(){return jt("isBefore",[].slice.call(arguments,0))},i.max=function(){return jt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(e){return Nt(1e3*e)},i.months=function(e,t){return gn(e,t,"months")},i.isDate=c,i.locale=ut,i.invalid=g,i.duration=Yt,i.isMoment=w,i.weekdays=function(e,t,n){return vn(e,t,n,"weekdays")},i.parseZone=function(){return Nt.apply(null,arguments).parseZone()},i.localeData=ft,i.isDuration=Dt,i.monthsShort=function(e,t){return gn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return vn(e,t,n,"weekdaysMin")},i.defineLocale=dt,i.updateLocale=function(e,t){if(null!=t){var n,r,i=ot;null!=(r=ct(e))&&(i=r._config),t=I(i,t),(n=new M(t)).parentLocale=at[e],at[e]=n,ut(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},i.locales=function(){return C(at)},i.weekdaysShort=function(e,t,n){return vn(e,t,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==qn[e]&&(void 0===t?qn[e]:(qn[e]=t,"s"===e&&(qn.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=fn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(223)(e))},function(e,t,n){var r=n(2231),i=n(2236);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(34),i=n(449);e.exports=r(function(e,t){var n=e<0?t.length+e:e;return i(t)?t.charAt(n):t[n]})},function(e,t,n){var r=n(87);e.exports=r(function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})},function(e,t,n){"use strict";var r,i,o,a,s,l,c=n(960).toUnsigned,u=n(960).toHexString;r=function(e,t){var n,o,a,s,l,u=[];if(!t.length)return null;for(n=0;n<e.byteLength;)o=c(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),a=i(e.subarray(n+4,n+8)),s=o>1?n+o:e.byteLength,a===t[0]&&(1===t.length?u.push(e.subarray(n+8,s)):(l=r(e.subarray(n+8,s),t.slice(1))).length&&(u=u.concat(l))),n=s;return u},i=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},o=function(e){return r(e,["moov","trak"]).reduce(function(e,t){var n,i,o,a,s;return(n=r(t,["tkhd"])[0])?(i=n[0],a=c(n[o=0===i?12:20]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3]),(s=r(t,["mdia","mdhd"])[0])?(o=0===(i=s[0])?12:20,e[a]=c(s[o]<<24|s[o+1]<<16|s[o+2]<<8|s[o+3]),e):null):null},{})},a=function(e,t){var n,i,o;return n=r(t,["moof","traf"]),i=[].concat.apply([],n.map(function(t){return r(t,["tfhd"]).map(function(n){var i,o;return i=c(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),o=e[i]||9e4,(r(t,["tfdt"]).map(function(e){var t,n;return t=e[0],n=c(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=c(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n})[0]||1/0)/o})})),o=Math.min.apply(null,i),isFinite(o)?o:0},s=function(e){var t=r(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=r(e,["mdia","hdlr"]),o=r(e,["tkhd"]);t.forEach(function(e,t){var r,a,s=i(e.subarray(8,12)),l=o[t];"vide"===s&&(a=0===(r=new DataView(l.buffer,l.byteOffset,l.byteLength)).getUint8(0)?r.getUint32(12):r.getUint32(20),n.push(a))})}),n},l=function(e){var t=r(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,o,a={},s=r(e,["tkhd"])[0];s&&(o=(t=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),a.id=0===o?t.getUint32(12):t.getUint32(20));var l=r(e,["mdia","hdlr"])[0];if(l){var d=i(l.subarray(8,12));a.type="vide"===d?"video":"soun"===d?"audio":d}var f=r(e,["mdia","minf","stbl","stsd"])[0];if(f){var p=f.subarray(8);a.codec=i(p.subarray(4,8));var h,m=r(p,[a.codec])[0];m&&(/^[a-z]vc[1-9]$/i.test(a.codec)?(h=m.subarray(78),"avcC"===i(h.subarray(4,8))&&h.length>11?(a.codec+=".",a.codec+=u(h[9]),a.codec+=u(h[10]),a.codec+=u(h[11])):a.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(a.codec)&&(h=m.subarray(28),"esds"===i(h.subarray(4,8))&&h.length>20&&0!==h[19]?(a.codec+="."+u(h[19]),a.codec+="."+u(h[20]>>>2&63).replace(/^0/,"")):a.codec="mp4a.40.2"))}var g=r(e,["mdia","mdhd"])[0];if(g&&s){var v=0===o?12:20;a.timescale=c(g[v]<<24|g[v+1]<<16|g[v+2]<<8|g[v+3])}n.push(a)}),n},e.exports={findBox:r,parseType:i,timescale:o,startTime:a,videoTrackIds:s,tracks:l}},function(e,t,n){var r=n(2178)();r.helpers=n(98),n(2182)(r),r.Animation=n(1092),r.animationService=n(1093),r.defaults=n(126),r.Element=n(254),r.elements=n(318),r.Interaction=n(1094),r.layouts=n(459),r.platform=n(1095),r.plugins=n(1096),r.Scale=n(460),r.scaleService=n(317),r.Ticks=n(461),r.Tooltip=n(1097),n(2193)(r),n(2194)(r),n(2195)(r),n(2196)(r),n(2197)(r),n(2198)(r),n(2199)(r),n(2200)(r),n(2202)(r),n(2203)(r),n(2204)(r),n(2205)(r),n(2206)(r),n(2207)(r),n(2208)(r),n(2209)(r),n(2210)(r),n(2211)(r),n(2212)(r),n(2213)(r),n(2214)(r),n(2215)(r);var i=n(2216);for(var o in i)i.hasOwnProperty(o)&&r.plugins.register(i[o]);r.platform.initialize(),e.exports=r,"undefined"!=typeof window&&(window.Chart=r),r.Legend=i.legend._element,r.Title=i.title._element,r.pluginService=r.plugins,r.PluginBase=r.Element.extend({}),r.canvasHelpers=r.helpers.canvas,r.layoutService=r.layouts},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(147),i=n.n(r),o=function(e){if(!e)return"";var t=i()(e),n=i()(),r=i()(n).add(24,"hours");return t.isBefore(n)?"Overdue":t.isBefore(r)?"Due in ".concat(n.to(t,!0)):"Due ".concat(t.format("MMM D"))},a=function(e){return i()(e).isSameOrBefore(i()().add(3,"d"),"days")}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});n(2451);var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=function(e){var t=a()("progress-bar__line",{"progress-bar__line-rounded":e.rounded}),n=a()("progress-bar",{"progress-bar-rounded":e.rounded,"progress-bar-lg":e.lg});return i.a.createElement("div",{className:n},i.a.createElement("div",{className:"progress-bar__percentage-top"},e.value,"% ",e.lessonComplete),i.a.createElement("div",{className:t},i.a.createElement("div",{className:"progress-bar__fill",style:{width:e.value+"%"}})),i.a.createElement("div",{className:"progress-bar__percentage-bottom"},e.value,"% ",e.lessonComplete))},l=i.a.createElement(s,{value:0,lessonComplete:"complete"}).type;t.b=s},function(e,t,n){"use strict";var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(13),u=n(12),d=(n(2450),n(0)),f=n.n(d),p=n(327),h=n.n(p),m=n(135),g=n.n(m),v=n(15),y=n.n(v),b=n(37),_=n.n(b),w=n(2),E=n.n(w),k=n(570),x=n(604),S=n(84),T=n(88),C=n(119),O=n(46),A=n.n(O),N=n(72),I=n.n(N),M=n(35),j=n.n(M),L=n(23),P=n.n(L),D=n(79),R=n.n(D),F=n(259),B=n(121),U=n.n(B),q=n(325),z=n.n(q),H=n(67),W=n.n(H),$=n(582),Y=n(226),V=n.n(Y),K=n(36),G=n.n(K),X=V.a,Q=function(e){return!G()(e)&&"object"===Object($.a)(e)},Z=function(e){return"string"==typeof e},J=function(e,t){return function(n){return P()(U.a,W.a,R()(!0))(function(e,t){return function(n,r){var i=R()(r,e);return Q(n)?J(e,t)(n):!(!i||!Z(n)||I()(z()(t,Object(F.htmlDecode)(n))))}}(e,t),n)}},ee=J,te=n(227),ne=n.n(te),re=n(19),ie=n.n(re),oe=n(212),ae=n.n(oe),se=n(51),le=n.n(se),ce=n(82),ue=n.n(ce),de=function(e,t){return function(n){return U()(function(e,t){return function(n,r){var i=R()(r,e);return X(n)?W()(de(e,t)(n)):Q(n)?de(e,t)(n):i&&Z(n)?le()(z()(t,Object(F.htmlDecode)(n))):0}}(e,t),n)}},fe=function e(t){return X(t)?j()(e,t):Q(t)?e(W()(t)):function(e){return"number"==typeof e}(t)?t:void 0},pe=function(e,t){return function(n){return P()(de(e,t),W.a,j()(fe),ae.a,ue()(ne.a,0),function(e){return ie()("results",e,n)})(n)}},he=n(210),me=n.n(he),ge=function(e,t,n){return function(r){return U()(function(e,t,n){return function(r,i){var o=R()(i,e);return X(r)?W()(ge(e,t,n)(r)):Q(r)?ge(e,t,n)(r):o&&Z(r)?me()(t,n,Object(F.htmlDecode)(r)):r}}(e,t,n),r)}},ve=ge,ye=function(e,t,n){var r=["caption","code","description","heading","message","name","paragraph","title","type"];if(I()(e))return!1;var i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),o=new RegExp("(".concat(i,")(?![^<]*>)"),"ig"),a=ve(r,o,function(e){return"<mark>".concat(e,"</mark>")}),s=j()(a,t),l=ee(r,o),c=pe(r,o);n(e,P()(A()(l),j()(c))(t),s)},be=n(470),_e=n(22),we=n(50),Ee=n(27),ke=n(365),xe=n(304),Se=function(e){function t(e){var n,r,a,u,d,f,p;return Object(o.a)(this,t),(p=Object(s.a)(this,Object(l.a)(t).call(this,e))).state={coverImageLoaded:!1,displaySkipButton:!1,searchActive:!1},p.handleSearchClose=i()(n=p.handleSearchClose).call(n,Object(c.a)(p)),p.handleSearchSubmit=i()(r=p.handleSearchSubmit).call(r,Object(c.a)(p)),p.handleSearchToggle=i()(a=p.handleSearchToggle).call(a,Object(c.a)(p)),p.handleSkipButtonBlur=i()(u=p.setDisplaySkipButton).call(u,Object(c.a)(p),!1),p.handleSkipButtonFocus=i()(d=p.setDisplaySkipButton).call(d,Object(c.a)(p),!0),p.handleSkipButtonClick=i()(f=p.handleSkipButtonClick).call(f,Object(c.a)(p)),p}return Object(u.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.coverImage,n=t.media,r=void 0===n?{}:n,i=t.displaySidebar,o=r.image,a=void 0===o?{}:o,s=a.key,l=s&&Object(T.a)(a);s&&i&&(this.image=new Image,this.image.src=l,this.image.addEventListener("load",this.imageLoadRef=function(){e.setState({coverImageLoaded:!0})}))}},{key:"componentWillUnmount",value:function(){this.image&&(this.image.removeEventListener("load",this.imageLoadRef),this.image=null)}},{key:"focus",value:function(){this.props.sessionPreferences.prefersKeyboardNavigation?Object(_e.c)(this.header):this.header.focus()}},{key:"handleSkipButtonClick",value:function(){(0,this.props.focusLessonContent)()}},{key:"handleSearchChange",value:function(){Object(we.a)([Object(xe.b)(!0)])}},{key:"handleSearchClose",value:function(e){Object(Ee.e)(e)&&this.handleSearchToggle()}},{key:"handleSearchSubmit",value:function(e){e.preventDefault();var t=e.target.lastChild.value,n=this.props.lessons;ye(t,n,function(e,t,n){return Object(we.a)([Object(xe.f)(e),Object(xe.d)(t),Object(xe.e)(n)])})}},{key:"handleSearchToggle",value:function(){var e=this,t=this.state.searchActive;Object(we.a)([Object(xe.b)(t),Object(xe.c)(!t)]),this.setState({searchActive:!t},function(){t||e.searchInput.focus()})}},{key:"setDisplaySkipButton",value:function(e){var t=this;this.setState({displaySkipButton:e}),_()(function(){t.forceUpdate()},0)}},{key:"renderInfo",value:function(){var e=this,t=this.props,n=t.allowTabNavigation,r=t.children,i=t.courseTitle,o=t.skipLinkText,a=Object(_e.l)(n),s=this.state,l=s.displaySkipButton,c=s.searchActive,u=E()("overview-sidebar__info",{"overview-sidebar__info--faded":c}),d=E()("overview-sidebar__skip-button",{"overview-sidebar__skip-button--offscreen":!l});return f.a.createElement("div",{className:u,ref:function(t){return e.header=t},tabIndex:_e.h},f.a.createElement(C.a,{to:"/",className:"overview-sidebar__title",tabIndex:a},i),f.a.createElement("button",{"aria-label":o,className:d,onBlur:this.handleSkipButtonBlur,onClick:this.handleSkipButtonClick,onFocus:this.handleSkipButtonFocus},o),f.a.createElement("div",{className:"overview-sidebar__progress brand--ui"},Oe(r)))}},{key:"renderSearch",value:function(){var e=this,t=this.state.searchActive,n=this.props,r=n.allowTabNavigation,i=n.labels.search,o=f.a.createElement(S.CSSTransition,{classNames:"overview-sidebar__search",timeout:600},f.a.createElement("form",{className:"overview-sidebar__search",onSubmit:this.handleSearchSubmit},f.a.createElement("span",{"aria-hidden":"true",className:"overview-sidebar__search__search-icon"},f.a.createElement(be.a,{height:13,width:13})),f.a.createElement("button",{"aria-label":"Close The Search Form",className:"overview-sidebar__search__close-icon",onClick:this.handleSearchToggle,tabIndex:Object(_e.l)(r),type:"button"},f.a.createElement(k.a,{height:8,width:8})),f.a.createElement("input",{"aria-label":"Search",className:"overview-sidebar__search__input",placeholder:i,onChange:this.handleSearchChange,onKeyDown:this.handleSearchClose,ref:function(t){return e.searchInput=t},tabIndex:Object(_e.l)(r),type:"search"})));return f.a.createElement(S.TransitionGroup,null,t&&o)}},{key:"renderSearchIcon",value:function(){var e=this.props.allowTabNavigation,t=this.state.searchActive,n=f.a.createElement(S.CSSTransition,{appear:!0,classNames:"overview-sidebar__search-icon",timeout:2e3},f.a.createElement("button",{"aria-label":"Show Search Bar",className:"overview-sidebar__search-icon",onClick:this.handleSearchToggle,tabIndex:Object(_e.l)(e),type:"button"},f.a.createElement(be.a,null)));return f.a.createElement(S.TransitionGroup,null,!t&&n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowSearch,r=t.allowTabNavigation,i=t.coverImage.alpha,o=this.state,a=o.coverImageLoaded,s=o.searchActive,l=this.headerWrapper?this.headerWrapper.offsetHeight:"none",c=E()("overview-sidebar__header-outer",{"overview-sidebar__header-outer--search":s});return f.a.createElement("div",{className:c,style:{maxHeight:l}},n&&this.renderSearch(),f.a.createElement("div",{"aria-hidden":!r,className:Ce(this.props),ref:function(t){return e.headerWrapper=t}},f.a.createElement("div",{className:"overview-sidebar__header--background",style:Te(this.props)}),a&&f.a.createElement(x.a,{alpha:i,isSidebar:!0}),n&&this.renderSearchIcon(),this.renderInfo()))}}]),t}(d.Component),Te=function(e){var t=e.coverImage,n=t.media,r=void 0===n?{}:n,i=t.displaySidebar,o=r.image,a=void 0===o?{}:o,s=a.key,l=s&&Object(T.a)(a);return s&&i?{backgroundImage:"url('".concat(l,"')")}:null},Ce=function(e){var t=e.coverImage,n=t.media,r=void 0===n?{}:n,i=t.displaySidebar,o=r.image,a=(void 0===o?{}:o).key,s=!a||a&&!i;return E()("overview-sidebar__header",{"brand--background":s,"overview-sidebar__header--clone":e.isClone,"overview-sidebar__header--visible":e.isClone&&e.isShowingSidebarHeaderClone})},Oe=function(e){var t;return y()(t=f.a.Children).call(t,e,function(e){return e.type!==ke.a?null:e})};n.d(t,"b",function(){return Ae}),n.d(t,"a",function(){return Ne});var Ae=function(e){function t(e){var n,r;return Object(o.a)(this,t),(r=Object(s.a)(this,Object(l.a)(t).call(this,e))).onScroll=g()(i()(n=r.onScroll).call(n,Object(c.a)(r)),100),r.state={isShowingSidebarHeaderClone:!1},r}return Object(u.a)(t,e),Object(a.a)(t,[{key:"componentDidMount",value:function(){this.sidebar.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.sidebar.removeEventListener("scroll",this.onScroll)}},{key:"focus",value:function(){this.sidebarHeader.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.allowSearch,r=t.allowTabNavigation,i=t.children,o=t.container,a=t.courseTitle,s=t.coverImage,l=t.focusLessonContent,c=t.labels,u=t.lessons,d=t.sessionPreferences,p=t.skipLinkText;return f.a.createElement("div",{ref:function(t){return e.sidebar=t},className:"overview-sidebar","data-overview-sidebar":!0},f.a.createElement("section",{"aria-label":"Course Information",className:"overview-sidebar__header-wrap brand--head","data-overview-sidebar-header-wrap":!0,ref:function(t){return e.sidebarHeaderWrap=t}},f.a.createElement(Se,{allowSearch:n,allowTabNavigation:r,courseTitle:a,coverImage:s,focusLessonContent:l,labels:c,lessons:u,ref:function(t){e.sidebarHeader=t},sessionPreferences:d,skipLinkText:p},i),f.a.createElement(h.a,{container:o},f.a.createElement(Se,{allowTabNavigation:r,courseTitle:a,coverImage:s,isClone:!0,isShowingSidebarHeaderClone:this.state.isShowingSidebarHeaderClone},i))),f.a.createElement("div",{className:"overview-sidebar__container"},f.a.createElement("div",{className:"overview-sidebar__content","data-overview-sidebar-content":!0},i)))}},{key:"onScroll",value:function(){var e=this.sidebarHeaderWrap.clientHeight,t=this.sidebar.scrollTop;this.setState({isShowingSidebarHeaderClone:t>e})}}]),t}(d.Component),Ne=f.a.createElement(Ae,null).type},function(e,t,n){"use strict";n.d(t,"b",function(){return A}),n.d(t,"e",function(){return N}),n.d(t,"d",function(){return I}),n.d(t,"a",function(){return P}),n.d(t,"c",function(){return D});var r=n(19),i=n.n(r),o=n(6),a=n.n(o),s=n(48),l=n.n(s),c=n(36),u=n.n(c),d=n(75),f=n.n(d),p=n(61),h=n.n(p),m=n(17),g=n.n(m),v=n(99),y=n.n(v),b=n(62),_=n.n(b),w=n(53),E=n.n(w),k=n(14),x=n.n(k),S=n(32),T=n.n(S),C=n(78),O=n(65),A=function(e){var t=e.id;return function(e){return e(Object(O.g)({id:t,updateFn:M}))}},N=function(e){var t=e.activeIndex,n=e.id;return function(e){return e(Object(O.g)({id:n,updateFn:j(t)}))}},I=function(e){var t=e.activeIndex,n=e.id,r=e.itemId;return function(e){return e(Object(O.g)({id:n,updateFn:L({activeIndex:t,itemId:r})}))}},M=_()(["activeIndex","direction"]),j=function(e){return l()(g.a)({activeIndex:e,direction:"backwards"})},L=function(e){var t=e.activeIndex,n=e.itemId;return a()(T()(x()("percentComplete",100),i()("isComplete",!0)),O.f,T()(function(){return y()(u()(n))},E()(f()(["items",n]),i()("isComplete",!0))),i()("activeIndex",t),_()(["direction"]))},P=a()(l()(g.a)({isComplete:!0,percentComplete:100}),M,E()(h()("items"),Object(C.e)(i()("isComplete",!0)))),D=a()(_()(["activeIndex","direction","isComplete","percentComplete"]),E()(h()("items"),Object(C.e)(_()(["isComplete"]))))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(677),i=n(315),o=n(130),a=n(314),s=n(313),l=n(93),c=n(673);e.exports=o(function(e,t){if(!l(e))throw new TypeError("map: Function required for first argument");if(l(t))return i(e,t);if(a(t))return r.map(e,t);if(t&&l(t.map))return t.map(e);if(s(t))return c.map(e,t);throw new TypeError("map: Object, Function or Functor of the same type required for second argument")})},function(e,t,n){"use strict";(function(e){n.d(t,"f",function(){return q}),n.d(t,"a",function(){return z}),n.d(t,"c",function(){return H}),n.d(t,"e",function(){return W}),n.d(t,"b",function(){return $}),n.d(t,"d",function(){return K});var r=n(15),i=n.n(r),o=n(182),a=n.n(o),s=n(228),l=n.n(s),c=n(31),u=n(3),d=n.n(u),f=n(10),p=n(7),h=n(11),m=n(9),g=n(12),v=(n(2056),n(2)),y=n.n(v),b=n(116),_=n.n(b),w=n(299),E=n.n(w),k=n(1),x=n.n(k),S=n(44),T=n.n(S),C=n(88),O=n(68),A=n(100),N=n(58),I=n(57),M=n(22),j=n(27),L=n(213),P=n(85),D=n(56),R=function(t){var n=t.avatar,r=t.alt,i='""'===r?"":r;return e.createElement("div",{title:i,"aria-describedby":i,className:"block-quote__avatar",style:{backgroundImage:"url('".concat(n||"","')")}})},F=function(t){var n=t.type,r=t.animateBlockEntrance,i=t.avatar,o=t.children,a=t.backgroundColor,s=t.alt,l=t.isLearner,c=y()("block-quote__col",{"block-quote__col--no-avatar":!i}),u=y()("block-quote__figure",{"brand--beforeColor":"b"===n}),d=i?e.createElement("div",{className:"block-quote__image"},e.createElement("div",{className:"block-quote__avatar-wrap"},"c"===n?e.createElement(D.a,{animateBlockEntrance:r,animateIn:"fadeInLeftSmall",isLearner:l},e.createElement(R,{avatar:i,alt:s,title:s})):e.createElement(R,{avatar:i,alt:s,title:s}))):null;return e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:c},e.createElement("figure",{className:u,style:{backgroundColor:Object(O.a)("",a)}},d,o))))},B=function(t){var n=t.avatar,r=t.children,i=t.alt;return e.createElement("figure",{className:"block-quote__figure"},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},n?e.createElement(R,{avatar:n,alt:i}):null),e.createElement("div",{className:"block-quote__col"},r))))},U=function(t){var n=t.background,r=t.avatar,i=t.children,o=t.alt;return e.createElement("div",{className:"block-quote__background",style:{backgroundImage:n?"url(".concat(n,")"):""}},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},e.createElement("figure",{className:"block-quote__figure"},r?e.createElement(R,{avatar:r,alt:o}):null,i)))))},q=function(t){function n(){return Object(f.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(p.a)(n,[{key:"getQuoteEntranceAnimationType",value:function(){switch(this.props.type){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}},{key:"handleQuoteChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(N.a)(Object(I.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"handleNameChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(N.a)(Object(I.g)({lessonId:r,blockId:i,itemId:e,payload:{name:t}}))}},{key:"render",value:function(){var t,n,r,i=this.props,o=i.animateBlockEntrance,a=i.isLearner,s=i.items,l=i.labels,c=i.type,u=i.settings,f=i.editable,p=u.paddingTop,h=u.paddingBottom,m=u.backgroundColor,g=u.entranceAnimation,v=s[0],b=v.id,w=v.paragraph,E=v.name,k=v.avatar,x=v.background,S=Object(C.a)(_()(x,"media.image")),T=_()(k,"media.image"),N=Object(C.c)(T),I=_()(k,"media.image.alt"),M=y()("block-quote block-quote--".concat(c),{"block-quote--no-animation":!g}),j=y()("block-quote__caption brand--linkColor",{"brand--head":"b"!==c,"brand--body":"b"===c,"brand--color-all":"b"===c,"block-quote__caption--blank":""===E}),L=y()("block-quote__text brand--linkColor",{"brand--head":"b"===c,"brand--body":"b"!==c,"block-quote__text--blank":""===w}),R={backgroundColor:Object(O.a)("",m),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*h,"px")},q=e.createElement("div",{className:"block-quote__wrap"},e.createElement(D.a,{animateBlockEntrance:o,animateIn:this.getQuoteEntranceAnimationType(),isLearner:a,siblingDelay:.15},e.createElement(A.a,{className:L,value:w||"",placeholder:"Enter some quote text",onChange:d()(t=this.handleQuoteChange).call(t,this,b),editable:f}),e.createElement(A.a,{className:j,value:E,placeholder:"Author Name",onChange:d()(n=this.handleNameChange).call(n,this,b),component:"figcaption",editable:f})));switch(c){case"d":r=e.createElement(B,{type:c,avatar:N,alt:I},q);break;case"background":r=e.createElement(U,{type:c,avatar:N,alt:I,background:S},q);break;default:r=e.createElement(F,{type:c,animateBlockEntrance:o,avatar:N,alt:I,backgroundColor:m,isLearner:a},q)}var z=l.quoteGroup;return e.createElement("div",{"aria-label":z,className:M,role:P.a,style:R},r)}}],[{key:"propTypes",get:function(){return{lessonId:x.a.any,blockId:x.a.any,items:x.a.array.isRequired,settings:x.a.object.isRequired,type:x.a.string,editable:x.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],type:"a"}}}]),n}(e.Component),z=function(t){return e.createElement(q,Object(c.a)({type:"b"},t))},H=function(t){return e.createElement(q,Object(c.a)({type:"c"},t))},W=function(t){return e.createElement(q,Object(c.a)({type:"d"},t))},$=function(t){return e.createElement(q,Object(c.a)({type:"background"},t))},Y=function(t){var n=t.onClick;return e.createElement("button",{"aria-label":"Next quote",className:"block-quote__arrow block-quote__arrow--next",onClick:n},e.createElement("div",{className:"block-quote__arrow-icon"}))},V=function(t){var n=t.onClick;return e.createElement("button",{"aria-label":"Previous quote",className:"block-quote__arrow block-quote__arrow--prev",onClick:n},e.createElement("div",{className:"block-quote__arrow-icon"}))},K=function(t){function n(e){var t;return Object(f.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={currentIndex:0,isDotKeyboardFocusDisabled:!1},t}return Object(g.a)(n,t),Object(p.a)(n,[{key:"handleQuoteChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(N.a)(Object(I.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"handleNameChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(N.a)(Object(I.g)({lessonId:r,blockId:i,itemId:e,payload:{name:t}}))}},{key:"disableFocusForClonedSlides",value:function(){var e=this.state.currentIndex,t=Object(L.b)(this.carousel.querySelectorAll(".slick-active.block-quote__slide"));l()(t).call(t,function(t){a()(t.getAttribute("data-index"))!==e&&Object(M.b)(t)})}},{key:"disableCarouselDotsIfNecessary",value:function(){var e=this.sliderContainer.querySelector(".block-quote__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(M.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"componentDidUpdate",value:function(){this.disableCarouselDotsIfNecessary(),this.disableFocusForClonedSlides()}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;T()([[j.h,d()(t=r.slickNext).call(t,r)],[j.f,d()(n=r.slickPrev).call(n,r)]])(e)}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.animateBlockEntrance,a=r.isLearner,s=r.items,l=r.labels,u=r.type,f=r.settings,p=r.editable,h=f.paddingTop,m=f.paddingBottom,g=f.backgroundColor,v=f.entranceAnimation,b=f.showBorder,w=void 0===b||b,k=y()("block-quote block-quote--".concat(u),{"block-quote--no-animation":!v,"block-quote--editable":p,"block-quote--show-border":w}),x={backgroundColor:Object(O.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},S=this.state.currentIndex,T=i()(s).call(s,function(t,r){var i,s,l=t.id,c=t.paragraph,u=t.name,f=t.avatar,h=r===S,m=_()(f,"media.image.alt"),g=_()(f,"media.image"),v=Object(C.c)(g),b=y()("block-quote__text brand--body brand--linkColor",{"block-quote__text--blank":""===c}),w=y()("block-quote__caption brand--head brand--linkColor",{"block-quote__caption--blank":""===u});return e.createElement("div",{className:"block-quote__slide",key:l},e.createElement("figure",{className:"block-quote__figure"},v?e.createElement(R,{avatar:v,alt:m}):null,e.createElement(D.a,{animateBlockEntrance:o,animateIn:"fadeInUp",siblingDelay:.25,isLearner:a},e.createElement(A.a,{className:b,value:c||"",placeholder:"Enter some quote text",onChange:d()(i=n.handleQuoteChange).call(i,n,l),editable:p,allowTabNavigation:h}),e.createElement(A.a,{className:w,value:u,placeholder:"- Author Name",onChange:d()(s=n.handleNameChange).call(s,n,l),component:"figcaption",editable:p,allowTabNavigation:h}))))}),N={slidesToShow:1,slidesToScroll:1,arrows:T.length>1,nextArrow:e.createElement(Y,null),prevArrow:e.createElement(V,null),dots:T.length>1,dotsClass:"block-quote__dots-list brand--background-all brand--shadow-all",accessibility:!1,draggable:!p,beforeChange:function(e,t){var r=n.props,i=r.items;(0,r.onStep)(i[t]),n.setState({currentIndex:t})}},I=l.quoteGroup;return e.createElement("div",{"aria-label":I,className:"block-quote__slider-container",onKeyDown:d()(t=this.onKeyDown).call(t,this),ref:function(e){n.carousel=e},role:P.a,tabIndex:M.a},e.createElement("div",{className:k,style:x},e.createElement("div",{className:"block-quote__wrap"},e.createElement("div",{className:"block-quote__container"},e.createElement("div",{className:"block-quote__row"},e.createElement("div",{className:"block-quote__col"},e.createElement("div",{className:"block-quote__box",ref:function(e){n.sliderContainer=e}},e.createElement(E.a,Object(c.a)({className:"block-quote__wrapper",ref:function(e){n.slider=e}},N),T))))))))}}],[{key:"propTypes",get:function(){return{lessonId:x.a.any,blockId:x.a.any,items:x.a.array.isRequired,settings:x.a.object.isRequired,type:x.a.string,editable:x.a.bool,onStep:x.a.func}}},{key:"defaultProps",get:function(){return{type:"carousel",editable:!1,items:[],onStep:Function.prototype}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(767),i=n(622);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(219);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(628),i=n(133),o=n(125),a=n(110)("species");e.exports=function(e){var t=r(e),n=i.f;o&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(189);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(202),i="["+n(505)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$");e.exports=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(o,"")),2&t&&(e=e.replace(a,"")),e}},function(e,t,n){var r=n(279);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r,i,o,a=n(1516),s=n(144),l=n(164),c=n(246),u=n(193),d=n(515),f=n(516),p=s.WeakMap;if(a){var h=new p,m=h.get,g=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},i=function(e){return m.call(h,e)||{}},o=function(e){return g.call(h,e)}}else{var y=d("state");f[y]=!0,r=function(e,t){return c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(246);e.exports=function(e,t,n,i){i&&i.enumerable?e[t]=n:r(e,t,n)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t,n){var r=n(859);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(314),i=n(93),o=n(313),a=n(378);function s(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t,n){var r=n(531),i=n(224),o=n(195),a=n(1722),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(457),i=n(1799),o=n(1800),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(922),i=n(1941),o=n(697);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t);return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(e){var r,i=n(1993),o=n(943),a=n(1994),s=n(1995),l=n(1996);e&&e.ArrayBuffer&&(r=n(1997));var c="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),u="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),d=c||u;t.protocol=3;var f=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},p=i(f),h={type:"error",data:"parser error"},m=n(1998);function g(e,t,n){for(var r=new Array(e.length),i=s(e.length,n),o=function(e,n,i){t(n,function(t,n){r[e]=n,i(t,r)})},a=0;a<e.length;a++)o(a,e[a],i)}t.encodePacket=function(n,r,i,o){"function"==typeof r&&(o=r,r=!1),"function"==typeof i&&(o=i,i=null);var a=void 0===n.data?void 0:n.data.buffer||n.data;if(e.ArrayBuffer&&a instanceof ArrayBuffer)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=e.data,o=new Uint8Array(i),a=new Uint8Array(1+i.byteLength);a[0]=f[e.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return r(a.buffer)}(n,r,o);if(m&&a instanceof e.Blob)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(d)return function(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=new FileReader;return i.onload=function(){e.data=i.result,t.encodePacket(e,n,!0,r)},i.readAsArrayBuffer(e.data)}(e,n,r);var i=new Uint8Array(1);i[0]=f[e.type];var o=new m([i.buffer,e.data]);return r(o)}(n,r,o);if(a&&a.base64)return function(e,n){var r="b"+t.packets[e.type]+e.data.data;return n(r)}(n,o);var s=f[n.type];return void 0!==n.data&&(s+=i?l.encode(String(n.data),{strict:!1}):String(n.data)),o(""+s)},t.encodeBase64Packet=function(n,r){var i,o="b"+t.packets[n.type];if(m&&n.data instanceof e.Blob){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];r(o+e)},a.readAsDataURL(n.data)}try{i=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var s=new Uint8Array(n.data),l=new Array(s.length),c=0;c<s.length;c++)l[c]=s[c];i=String.fromCharCode.apply(null,l)}return o+=e.btoa(i),r(o)},t.decodePacket=function(e,n,r){if(void 0===e)return h;if("string"==typeof e){if("b"===e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r&&!1===(e=function(e){try{e=l.decode(e,{strict:!1})}catch(e){return!1}return e}(e)))return h;var i=e.charAt(0);return Number(i)==i&&p[i]?e.length>1?{type:p[i],data:e.substring(1)}:{type:p[i]}:h}i=new Uint8Array(e)[0];var o=a(e,1);return m&&"blob"===n&&(o=new m([o])),{type:p[i],data:o}},t.decodeBase64Packet=function(e,t){var n=p[e.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:e.substr(1)}};var i=r.decode(e.substr(1));return"blob"===t&&m&&(i=new m([i])),{type:n,data:i}},t.encodePayload=function(e,n,r){"function"==typeof n&&(r=n,n=null);var i=o(e);if(n&&i)return m&&!d?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r);if(!e.length)return r("0:");g(e,function(e,r){t.encodePacket(e,!!i&&n,!1,function(e){r(null,function(e){return e.length+":"+e}(e))})},function(e,t){return r(t.join(""))})},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);var i;if("function"==typeof n&&(r=n,n=null),""===e)return r(h,0,1);for(var o,a,s="",l=0,c=e.length;l<c;l++){var u=e.charAt(l);if(":"===u){if(""===s||s!=(o=Number(s)))return r(h,0,1);if(s!=(a=e.substr(l+1,o)).length)return r(h,0,1);if(a.length){if(i=t.decodePacket(a,n,!1),h.type===i.type&&h.data===i.data)return r(h,0,1);if(!1===r(i,l+o,c))return}l+=o,s=""}else s+=u}return""!==s?r(h,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){if(!e.length)return n(new ArrayBuffer(0));g(e,function(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})},function(e,t){var r=t.reduce(function(e,t){var n;return e+(n="string"==typeof t?t.length:t.byteLength).toString().length+n+2},0),i=new Uint8Array(r),o=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}i[o++]=t?0:1;var s=n.byteLength.toString();for(a=0;a<s.length;a++)i[o++]=parseInt(s[a]);i[o++]=255;for(r=new Uint8Array(n),a=0;a<r.length;a++)i[o++]=r[a]}),n(i.buffer)})},t.encodePayloadAsBlob=function(e,n){g(e,function(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);e=r.buffer,t[0]=0}var o=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),a=new Uint8Array(o.length+1);for(i=0;i<o.length;i++)a[i]=parseInt(o[i]);if(a[o.length]=255,m){var s=new m([t.buffer,a.buffer,e]);n(null,s)}})},function(e,t){return n(new m(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var i=e,o=[];i.byteLength>0;){for(var s=new Uint8Array(i),l=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(h,0,1);c+=s[u]}i=a(i,2+c.length),c=parseInt(c);var d=a(i,0,c);if(l)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(e){var f=new Uint8Array(d);d="";for(u=0;u<f.length;u++)d+=String.fromCharCode(f[u])}o.push(d),i=a(i,c)}var p=o.length;o.forEach(function(e,i){r(t.decodePacket(e,n,!0),i,p)})}}).call(this,n(69))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,l,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),a=(c=n.slice()).length,l=0;l<a;l++)c[l].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(n=this._events[e]).length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"))||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(284))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(66),i=n(727),o=n.n(i),a=function(e){return!!e&&1-function(e){if(!e)return 0;var t=o()(e),n=Object(r.a)(t,3);return.2126*n[0]+.7152*n[1]+.0722*n[2]}(e)/255>.4}},function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),l=a||s;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var d=0,f=o.length;f>=0;f--){var p=o[f];"."===p?i(o,f):".."===p?(i(o,f),d++):d&&(i(o,f),d--)}if(!l)for(;d--;d)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var h=o.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var i=void 0===t?"undefined":r(t);if(i!==(void 0===n?"undefined":r(n)))return!1;if("object"===i){var o=t.valueOf(),a=n.valueOf();if(o!==t||a!==n)return e(o,a);var s=Object.keys(t),l=Object.keys(n);return s.length===l.length&&s.every(function(r){return e(t[r],n[r])})}return!1}},function(e,t,n){var r=n(1709),i=n(34),o=n(1710),a=n(674);e.exports=i(function(e,t){if(!o(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+a(e));return r(e).test(t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t,n){if(!i(e)||!i(t))throw new TypeError("bimap: Function required for first two arguments");if(!i(n.bimap))throw new TypeError("bimap: Bifunctor required for third argument");return n.bimap(e,t)})},function(e,t,n){e.exports=n(1810)},function(e,t,n){var r=n(528);e.exports=r(0,"toLowerCase")},function(e,t,n){var r=n(87),i=n(60),o=n(319),a=n(197),s=n(82);e.exports=r(function(e){return i(s(o,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})})},function(e,t,n){var r=n(353),i=n(34);e.exports=i(function(e,t){return r([e],t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(194),o=n(553),a=n(378);e.exports=r(function(e,t){if(!o(t)||!i(e,t))throw new TypeError("concat: Semigroups of the same type required both arguments");return a(t)?t+e:t.concat(e)})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return G});var r=n(127),i=n.n(r),o=n(182),a=n.n(o),s=n(3),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(12),h=n(4),m=n.n(h),g=(n(2091),n(1188)),v=n.n(g),y=n(1),b=n.n(y),_=n(295),w=n.n(_),E=n(322),k=n.n(E),x=n(2),S=n.n(x),T=n(6),C=n.n(T),O=n(44),A=n.n(O),N=n(45),I=n.n(N),M=n(32),j=n.n(M),L=n(52),P=n(29),D=n(270),R=n(49),F=n(22),B=n(302),U=n(238),q=n(90),z=n(85),H=n(80),W=n(305),$=n(95),Y=n(27),V=function(e){var t,n=Object(P.c)("CDN_USER_CONTENT_URI"),r=new RegExp(Object(P.c)("CDN_URI"),"g");return Object(P.d)()?e:r.test(e)?m()(t="".concat(n)).call(t,w.a.parse(e).path):e},K=C()(j()(I.a,P.g),W.a),G=function(t){function n(e){var t;return Object(c.a)(this,n),(t=Object(d.a)(this,Object(f.a)(n).call(this,e))).state={isReady:!1,duration:0},t}return Object(p.a)(n,t),Object(u.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.allowTabNavigation;this.iFrameContainer&&!e&&this.updateIframeFocusability({allowFocus:!1})}},{key:"componentDidUpdate",value:function(e){!e.shouldPause&&this.props.shouldPause&&R.a.isPlaying&&(this.player.pause(),R.a.isPlaying=!1)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props.data,n=e.data,r=t.originalUrl!==n.originalUrl,i=this.props.allowTabNavigation,o=e.allowTabNavigation,a=i!==o;r&&"video"===Object(U.b)(t)&&this.teardownPlayer(),this.iFrameContainer&&a&&this.updateIframeFocusability({allowFocus:o})}},{key:"componentWillUnmount",value:function(){"video"===Object(U.b)(this.props.data)&&this.teardownPlayer()}},{key:"setupPlayer",value:function(){var e=this;this.player=new v.a.Player(this.media),this.props.progressChanged&&this.player.on("ready",this.videoReady=function(){e.player.on("timeupdate",e.videoUpdate=function(t){e.props.progressChanged({done:t.seconds/t.duration*100})}),e.setState({isReady:!0})}),this.player.on("play",this.videoPlay=function(){var t=e.props.id;R.a.isPlaying&&R.a.playerId!==t&&(R.a.isPlaying=!1),R.a.playerId=t,R.a.isPlaying=!0}),R.a.addChangeListener(this.onChange=function(){var t=e.props.id;R.a.playerId===t&&(R.a.isPlaying?e.player.play():e.player.pause())})}},{key:"teardownPlayer",value:function(){R.a.isPlaying=!1,this.onChange&&R.a.removeChangeListener(this.onChange),this.player&&(this.player.off("play",this.videoPlay),this.player.off("ready",this.videoReady),this.player.off("timeupdate",this.videoUpdate))}},{key:"updateIframeFocusability",value:function(e){var t=e.allowFocus;Object(F.j)({element:this.iFrameContainer,selector:"iframe",tabIndex:Object(F.l)(t)})}},{key:"playerSupportsMethods",value:function(e){var t=this;return k()(function(e){return t.player.supports("method",e)})(e)}},{key:"togglePlay",value:function(){var e=this;this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",function(){e.player.getPaused(function(t){t?e.player.play():e.player.pause()})})}},{key:"keySeek",value:function(e){var t=this;this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",function(){t.player.getCurrentTime(function(n){t.player.setCurrentTime(n+e)})})}},{key:"changeVolume",value:function(e){var t=this;this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(function(n){t.player.setVolume(n+e)})}},{key:"onKeyDown",value:function(e){var t,n=this,r=Object(q.b)(l()(t=this.togglePlay).call(t,this)),i=Object(q.b)(function(){return n.keySeek(5)}),o=Object(q.b)(function(){return n.keySeek(-5)}),a=Object(q.b)(function(){return n.changeVolume(10)}),s=Object(q.b)(function(){return n.changeVolume(-10)});A()([[Y.j,r],[Y.h,i],[Y.f,o],[Y.l,a],[Y.b,s]])(e)}},{key:"renderProvider",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.showMetaData,i=t.data,o=i.providerUrl,a=i.provider,s=i.favicon;return r?e.createElement("h2",{className:"embed__provider"},e.createElement("a",{href:Object(W.a)(o),target:"_blank",className:"brand--hoverColor",tabIndex:Object(F.l)(n)},e.createElement("img",{className:"embed__providerIcon",src:s,alt:s?a:null}),e.createElement("span",{className:"embed__providerName"},a))):null}},{key:"renderMetaData",value:function(){var t,n,r=this.props,i=r.allowTabNavigation,o=r.data,a=r.labels,s=r.showMetaData,l=o.src,c=o.title,u=o.description,d=o.provider,f=a.embedReadMore,p=a.embedViewOn,h=Object(U.b)(o);if(!s&&"link"!==h)return null;var g=Object(W.a)(l);return e.createElement("div",{className:"embed__meta__content"},e.createElement("h2",{className:"embed__title brand--head"},e.createElement("a",{href:g,target:"_blank",className:"brand--hoverColor",tabIndex:Object(F.l)(i)},e.createElement(L.a,{value:c}))),e.createElement(L.a,{className:"embed__description brand--body brand--linkColor",value:u}),e.createElement("a",{className:"embed__readMore brand--hoverColor",href:g,target:"_blank",tabIndex:Object(F.l)(i)},"link"===h?m()(t="".concat(f," ")).call(t,d):m()(n="".concat(p," ")).call(n,d),e.createElement("i",{className:"icon icon-chevron-right"})))}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.allowTabNavigation,s=r.data,l=r.isLesson,c=r.labels,u=r.showMetaData,d=s.description,f=s.src,p=s.thumbnail,h=s.title,m=c.embedLinkGroup,g=c.embedPlayerGroup,v=c.embedReadMore,y=Object(U.b)(s);if("iframe"===y){var b=document.createElement("div");b.innerHTML=Object($.c)(f);var _=b.firstChild,w=_&&_.tagName&&"iframe"===_.tagName.toLowerCase(),E=100,k=32,x=f;if(w){var S=_.width.match(/%/),T=a()(_.width);_.src=Object(W.a)(_.src),x=b.innerHTML,E=S?T/100*700:T||16,k=a()(_.height)}var C=w?"".concat(100*(k/E),"%"):"3rem",O=w?x:"<div>Error: Invalid iframe tag.  Please check the iframe source.</div>";return e.createElement("div",{"aria-hidden":!o,"aria-label":g,className:"embed",role:z.a},e.createElement("div",{className:"embed--iframe",dangerouslySetInnerHTML:{__html:O},style:{paddingBottom:C},ref:function(e){n.iFrameContainer=e}}))}return l?e.createElement("div",{"aria-hidden":!o,"aria-label":X(c,y),className:"embed embed--link embed--rich",role:z.a},this.renderProvider(),i()(t=["link","photo"]).call(t,y)?e.createElement("a",{href:Object(W.a)(f),target:"_blank",tabIndex:Object(F.l)(o)},e.createElement("img",{alt:p?h:null,className:"embed__img",src:V(p)})):this.renderEmbedIframe({allowTabNavigation:o,labels:c,src:f,thumbnail:p,title:h,type:y}),this.renderMetaData()):"link"===y?e.createElement("div",{"aria-hidden":!o,"aria-label":m,className:"embed embed--link brand--head brand--linkColor",role:z.a},e.createElement(L.a,{className:"embed__title brand--head",value:h}),e.createElement(L.a,{className:"embed__description",value:d}),e.createElement("a",{className:"embed__readMore brand--hoverColor",href:Object(W.a)(f),target:"_blank"},v)):e.createElement("div",{className:"embed embed--media brand--head"},u?e.createElement(L.a,{"aria-hidden":!o,className:"embed__title brand--head",value:h}):null,this.renderEmbedIframe({allowTabNavigation:o,labels:c,src:f,thumbnail:p,title:h,type:y}))}},{key:"renderEmbedIframe",value:function(t){var n=this,r=t.allowTabNavigation,i=t.labels.embedPlayerGroup,o=t.src,a=t.thumbnail,s=t.title;if("photo"===t.type)return e.createElement("figure",{className:"embed__media-wrap"},e.createElement(D.a,{src:V(a),title:s,allowTabNavigation:r}));var c,u,d=H.a.isIe11||H.a.isEdge,f=S()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});return e.createElement("figure",{"aria-hidden":!r,"aria-label":i,className:f,onKeyDown:l()(c=this.onKeyDown).call(c,this),ref:function(e){n.iFrameContainer=e},tabIndex:Object(F.l)(r)},e.createElement("iframe",{ref:function(e){n.media=e},className:"embed__media",src:K(o),alt:s,frameBorder:"0",scrolling:"no",onLoad:l()(u=this.setupPlayer).call(u,this),allowFullScreen:!0,title:s}))}}],[{key:"defaultProps",get:function(){return{allowTabNavigation:!0,labels:{embedReadMore:B.a.embedReadMore,embedViewOn:"View on"},shouldPause:!1,showMetaData:!0}}},{key:"propTypes",get:function(){return{allowTabNavigation:b.a.bool,data:b.a.object.isRequired,progressChanged:b.a.func,isLesson:b.a.bool,shouldPause:b.a.bool,showMetaData:b.a.bool}}}]),n}(e.Component),X=function(e,t){var n=e.embedLinkGroup,r=e.embedPhotoGroup,i=e.embedVideoGroup;switch(t){case"photo":return r;case"video":return i;default:return n}}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return X});var r=n(127),i=n.n(r),o=n(15),a=n.n(o),s=n(4),l=n.n(s),c=n(37),u=n.n(c),d=n(228),f=n.n(d),p=n(3),h=n.n(p),m=n(10),g=n(7),v=n(11),y=n(9),b=n(13),_=n(12),w=(n(2094),n(2)),E=n.n(w),k=n(6),x=n.n(k),S=n(44),T=n.n(S),C=n(1194),O=n.n(C),A=n(8),N=n.n(A),I=n(1),M=n.n(I),j=n(103),L=n.n(j),P=n(295),D=n.n(P),R=n(1195),F=n.n(R),B=n(80),U=n(302),q=n(85),z=n(49),H=n(213),W=n(47),$=n(90),Y=n(29),V=n(1298),K=n(22),G=n(27),X=function(t){function n(e){var t,r,i,o,a;return Object(m.a)(this,n),(a=Object(v.a)(this,Object(y.a)(n).call(this,e))).state={isReady:!1,showRestrictSeekTooltip:!1},a.showRestrictSeekTooltip=h()(t=a.showRestrictSeekTooltip).call(t,Object(b.a)(a)),a.updateSeekTooltip=h()(r=a.updateSeekTooltip).call(r,Object(b.a)(a)),a.getMaxTime=h()(i=a.getMaxTime).call(i,Object(b.a)(a)),a.onMediaStoreChange=h()(o=a.onMediaStoreChange).call(o,Object(b.a)(a)),a}return Object(_.a)(n,t),Object(g.a)(n,[{key:"updateContentFocusability",value:function(){var e=this.props.allowTabNavigation,t=Object(H.b)(this.container.getElementsByTagName("button"));f()(t).call(t,function(t){Object(K.i)(t,Object(K.l)(e))}),Object(K.j)({element:this.container,selector:".vjs-progress-holder",tabIndex:Object(K.l)(e)}),Object(K.j)({element:this.container,selector:".vjs-volume-bar",tabIndex:Object(K.l)(e)}),Object(K.j)({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Object(K.l)(e)})}},{key:"componentDidUpdate",value:function(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&z.a.isPlaying&&(this.video.player.pause(),z.a.isPlaying=!1)}},{key:"componentDidMount",value:function(){var e=this,t=this.video.player,n=this.props,r=n.canRestrictSeek,i=n.currentTime,o=n.id,a=n.onFullScreenChange,s=n.percentComplete,l=n.progressChanged,c=n.type;this.wasPaused=!1,this.seeking=!1,this.maxTime=i,this.updateContentFocusability(),r&&(this.configureVideoSeekBar(),this.configureSeekDiv()),t.ready(function(){s&&s<100&&"customVideo"!==c&&(t.play(),t.currentTime(i),t.pause()),t.on("timeupdate",e.videoUpdate=function(){Object(Y.h)();var n=t.currentTime(),i=t.paused();i&&!e.wasPaused&&n>e.maxTime&&(e.maxTime=n),r&&e.updateSeekTooltip();var o=t.ended()&&!e.seeking,a=!i&&!e.seeking;if(!r||o||a){n>e.maxTime&&(e.maxTime=n);var s=n/t.duration()*100;o&&(s=100),l&&l({currentTime:n,percentComplete:s})}else r&&!e.restrictingSeek&&n>e.maxTime&&(e.restrictingSeek=!0,i||t.pause(),t.currentTime(e.maxTime));e.wasPaused=i}),e.setState({isReady:!0})}),t.on("play",this.videoPlay=function(){e.seeking=!1,e.showRestrictSeekTooltip(!1)}),t.on("playing",this.videoPlaying=function(){z.a.isPlaying&&z.a.playerId!==o&&(z.a.isPlaying=!1),z.a.playerId=o,z.a.isPlaying=!0}),t.on("pause",this.videoPaused=function(){z.a.playerId===o&&(z.a.isPlaying=!1)}),t.on("seeking",this.videoSeeking=function(){e.seeking=!0}),t.on("seeked",this.videoSeeked=function(){e.restrictingSeek=!1,e.seekTimeout&&clearTimeout(e.seekTimeout),e.seekTimeout=u()(function(){e.seeking=!1},1e3)}),t.on("fullscreenchange",a),t.on("contextmenu",function(e){e.preventDefault()}),z.a.addChangeListener(this.onMediaStoreChange)}},{key:"componentWillUnmount",value:function(){var e=this.props.onFullScreenChange,t=this.video.player;z.a.isPlaying=!1,z.a.removeChangeListener(this.onMediaStoreChange),t.off("timeupdate",this.videoUpdate),t.off("play",this.videoPlay),t.off("playing",this.videoPlaying),t.off("pause",this.videoPaused),t.off("seeking",this.videoSeeking),t.off("seeked",this.videoSeeked),t.off("fullscreenchange",e),t.dispose()}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.allowTabNavigation,o=r.labels.videoPlayerGroup,a=r.prefersKeyboardNavigation,s=this.state,l=s.isReady,c=s.showRestrictSeekTooltip,u=E()("figure-video",{"figure-video--visible":l,"figure-video--restrict-seek":c,"figure-video--keyboard-user":a});return e.createElement("div",{"aria-hidden":!i,"aria-label":o,className:"figure-container",onKeyDown:h()(t=this.onKeyDown).call(t,this),ref:function(e){n.container=e},role:q.a,tabIndex:Object(K.l)(i)},e.createElement("figure",{className:u},this.renderPlayer()))}},{key:"renderCaptionTrack",value:function(t){var n=t.code,r=t.id,i=t.key,o=t.name,a=t.url||Object(Y.g)(i);return e.createElement("track",{key:r,kind:"captions",label:o,src:a,srcLang:n})}},{key:"renderPlayer",value:function(){var t,n,r=this,i=this.props,o=i.canAdjustPlaybackSpeed,s=i.captionUID,c=i.captions,u=i.id,d=i.subtitle,f="customVideo"===i.type,p=x()(O()(1),N()("pathname"),D.a.parse),h=f?p(this.props.src):this.props.src,m=f?this.props.poster:Object(Y.g)(this.props.poster),g=f?this.props.src:Object(Y.g)(this.props.src),v=f?"application/x-mpegURL":void 0,y={controlBar:{remainingTimeDisplay:!0,volumeMenuButton:{inline:!1}},controls:!0,playbackRates:o?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,preload:"none",textTrackSettings:!1},b={className:"figure-video__video",key:l()(t=l()(n="".concat(u,"-")).call(n,h,"-")).call(t,s),options:y,poster:m,ref:function(e){return r.video=e}},_=e.createElement("track",{kind:"captions",label:"English",src:f?d:Object(Y.g)(d),srcLang:"en"});return e.createElement(F.a,b,e.createElement("source",{src:g,type:v}),!c&&d&&_,c&&a()(c).call(c,this.renderCaptionTrack))}},{key:"onKeyDown",value:function(e){var t,n,r=this;if(!Q(e)){var i=Object($.b)(h()(t=this.togglePlay).call(t,this)),o=h()(n=this.toggleFullScreen).call(n,this),a=Object($.b)(function(){return r.keySeek(5)}),s=Object($.b)(function(){return r.keySeek(-5)});T()([[G.j,i],[G.c,o],[G.i,a],[G.g,s]])(e)}}},{key:"togglePlay",value:function(){var e=this.video.player;e.userActive(!0),e.paused()?e.play():e.pause()}},{key:"toggleFullScreen",value:function(){if(!B.a.isIe11){var e=this.video.player;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}}},{key:"changeVolume",value:function(e){var t=this.video.player,n=t.volume();t.userActive(!0),t.volume(n+e)}},{key:"keySeek",value:function(e){var t=this.video.player,n=this.props.canRestrictSeek;t.userActive(!0);var r=t.currentTime(),i=t.duration();t.paused()&&!r&&!i&&t.play();var o=r+e;n&&(o>this.maxTime?(o=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));var a=e<0?Math.max(o,0):Math.min(o,i);a!==r&&t.currentTime(a)}},{key:"configureVideoSeekBar",value:function(){var e=this.video.player,t=e.controlBar.progressControl,n=t.seekBar;t.removeChild(n);var r={showRestrictSeekTooltip:this.showRestrictSeekTooltip,getMaxTime:this.getMaxTime};this.videoSeekBar=new V.a(e,r),t.addChild(this.videoSeekBar)}},{key:"configureSeekDiv",value:function(){var t,n=this.video.player.controlBar.el();this.progressBarElement=this.videoSeekBar.playProgressBar.el(),this.seekDiv=((t=document.createElement("div")).classList.add("seek-tooltip"),t.classList.add("seek-tooltip--hidden"),t),n.appendChild(this.seekDiv),L.a.render(e.createElement(W.z,null),this.seekDiv)}},{key:"showRestrictSeekTooltip",value:function(e){this.props.canRestrictSeek&&this.seekDiv&&e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove("seek-tooltip--hidden"):this.seekDiv.classList.add("seek-tooltip--hidden"),this.setState({showRestrictSeekTooltip:e}))}},{key:"updateSeekTooltip",value:function(){var e=this.video.player,t=this.progressBarElement.getBoundingClientRect(),n=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width/2,i=t.left-n.left+t.width-r;this.seekDiv.style.left="".concat(i,"px"),this.seekDiv.style.top="".concat(-5,"px")}},{key:"getMaxTime",value:function(){return this.maxTime}},{key:"onMediaStoreChange",value:function(){if(this.video){var e=this.props.id,t=this.video.player;z.a.playerId===e&&(z.a.isPlaying?t.play():t.pause())}}}],[{key:"propTypes",get:function(){return{allowTabNavigation:M.a.bool,id:M.a.string.isRequired,percentComplete:M.a.number,poster:M.a.string,prefersKeyboardNavigation:M.a.bool,progressChanged:M.a.func,shouldPause:M.a.bool,src:M.a.string.isRequired}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,currentTime:0,labels:{videoPlayerGroup:U.a.videoPlayerGroup},onFullScreenChange:function(){},percentComplete:0,progressChanged:Function.prototype,shouldPause:!1}}}]),n}(e.Component),Q=function(e){var t=e.target.className,n=Object(G.m)(e)&&i()(t).call(t,"vjs-volume-bar");return Object(G.d)(e)&&(i()(t).call(t,"vjs-control")||i()(t).call(t,"vjs-big-play-button"))||n}}).call(this,n(0))},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e<=t})},function(e,t,n){"use strict";var r=n(18),i=n.n(r),o=n(44),a=n.n(o),s=n(48),l=n.n(s),c=n(298),u=n.n(c),d=n(231),f=n.n(d),p=n(76),h=n.n(p),m=function(e){return function(t){e.setState({xTouchDown:t.touches[0].clientX,yTouchDown:t.touches[0].clientY})}},g=function(e){return function(t){e.setState({xTouchMove:t.touches[0].clientX,yTouchMove:t.touches[0].clientY})}},v=function(e,t,n,r){return function(){if(e.state.xTouchDown&&e.state.xTouchMove){var o=e.state.xTouchDown-e.state.xTouchMove,s=e.state.yTouchDown-e.state.yTouchMove,c=l()(u.a),d=l()(f.a),p=b(e);if(Math.abs(o)>Math.abs(s))a()([[c(r),t],[d(-r),n],[h.a,i()()]])(o),p()}}},y=function(e){return function(){b(e)}},b=function(e){return function(){e.setState({xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null})}};t.a=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={touchstart:m(t),touchmove:g(t),touchend:v(t,n,r,i),touchcancel:y(t)};return{addListeners:function(){e.addEventListener("touchstart",o.touchstart),e.addEventListener("touchmove",o.touchmove),e.addEventListener("touchend",o.touchend),e.addEventListener("touchcancel",o.touchcancel)},removeListeners:function(){e.removeEventListener("touchstart",o.touchstart),e.removeEventListener("touchmove",o.touchmove),e.removeEventListener("touchend",o.touchend),e.removeEventListener("touchcancel",o.touchcancel)}}}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(68);t.a=function(e){var t=e.children,n=e.settings,r=e.type,a=n.backgroundColor,s=n.paddingTop,l=n.paddingBottom,c={backgroundColor:Object(o.a)("",a),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*l,"px")};return i.a.createElement("div",{className:"block-".concat(r),style:c},t)}},function(e,t,n){"use strict";(function(e){n(2158);var r=n(22);t.a=function(t){var n=t.onClick,i=t.text,o=t.allowTabNavigation,a=void 0===o||o;return e.createElement("button",{"aria-hidden":!a,className:"restart-button button brand--hoverColor",onClick:n,tabIndex:Object(r.l)(a)},e.createElement("div",{className:"restart-button__content"},e.createElement("span",{className:"restart-button__text brand--ui"},i),e.createElement("i",{className:"restart-button__icon icon icon-reload"})))}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r=n(4),i=n.n(r),o=n(487),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(12),f=n(0),p=n.n(f),h=n(18),m=n.n(h),g=n(2),v=n.n(g),y=n(44),b=n.n(y),_=n(40),w=n.n(_),E=n(1),k=n.n(E),x=n(76),S=n.n(x),T=n(47),C=n(274);p.a.Component;function O(e){switch(e.icon){case C.a.ARTICLE:return p.a.createElement(T.a,null);case C.a.INTERACTION:return p.a.createElement(T.E,null);case C.a.QUIZ:return p.a.createElement(T.C,null);case C.a.VIDEO:return p.a.createElement(T.F,null);default:return p.a.createElement("i",{className:"icon icon-Master-02"})}}},function(e,t,n){"use strict";var r=n(226),i=n.n(r);var o=n(576);function a(e){return function(e){if(i()(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(t,"a",function(){return a})},function(e,t,n){e.exports=n(1641)},function(e,t,n){var r=n(34),i=n(859),o=n(352);e.exports=r(function(e,t){return"function"!=typeof t.indexOf||o(t)?i(t,e,0):t.indexOf(e)})},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $});var r=n(19),i=n.n(r),o=n(6),a=n.n(o),s=n(150),l=n.n(s),c=n(46),u=n.n(c),d=n(48),f=n.n(d),p=n(94),h=n.n(p),m=n(51),g=n.n(m),v=n(75),y=n.n(v),b=n(61),_=n.n(b),w=n(17),E=n.n(w),k=n(62),x=n.n(k),S=n(53),T=n.n(S),C=n(296),O=n.n(C),A=n(23),N=n.n(A),I=n(8),M=n.n(I),j=n(14),L=n.n(j),P=n(86),D=n.n(P),R=n(67),F=n.n(R),B=n(32),U=n.n(B),q=n(78),z=n(475),H=function(e){return i()("correctlyAnswered",N()(M()("items"),F.a,u()(L()("isCorrect",!0)),g.a)(e),e)},W=N()(T()(_()("items"),Object(q.e)(x()(["isViewed","isCorrect"]))),x()(["percentViewed","correctlyAnswered"]),T()(_()("retryAttempts"),a()(h.a,l()(0)))),$=function(e){var t=e.itemId,n=e.isCorrect;return N()(T()(y()(["items",t]),N()(f()(E.a)({isComplete:n,isViewed:n}),E()({isCorrect:n}))),U()(O()(["items",t,"isCorrect"],!1),i()("lastIncorrectCardId",t)),H,D()(L()("percentComplete",100),z.a),z.b,U()(L()("percentComplete",100),i()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return _}),n.d(t,"d",function(){return w});var r=n(48),i=n.n(r),o=n(61),a=n.n(o),s=n(17),l=n.n(s),c=n(62),u=n.n(c),d=n(53),f=n.n(d),p=n(23),h=n.n(p),m=n(78),g=n(409),v=n(65),y=i()(l.a)({isComplete:!0,percentComplete:100,percentViewed:100}),b=function(e){return function(t){return t(Object(v.g)({id:e,updateFn:g.a}))}},_=h()(f()(a()("items"),Object(m.e)(u()(["isComplete","isCorrect","isViewed"]))),u()(["correctlyAnswered","percentComplete","isComplete","percentViewed"])),w=function(e){var t=e.id,n=e.itemId,r=e.isCorrect;return function(e){return e(Object(v.g)({id:t,updateFn:Object(g.b)({itemId:n,isCorrect:r})}))}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return d});var r=n(330),i=n.n(r),o=n(122),a=n.n(o),s=n(29),l=Object(s.c)("SESSION_COOKIE_DOMAIN"),c=function(){try{var e="__pay_no_attention_to_that_man_behind_the_curtain__",t=window.localStorage;return t.setItem(e,e),t.removeItem(e),!0}catch(e){return!1}}(),u=function(e){return c?window.localStorage.getItem(e):null},d=function(e,t){if(!c)return null;window.localStorage.setItem(e,t)};a()(function(e,t){return d(e,t),i.a.save(e,t,{domain:l}),t})},function(e,t,n){var r=n(891),i=n(892),o=n(1831),a=n(1832),s=n(893),l=n(894),c=n(1833);e.exports=l(3,function(e,t){return c(a(e),i(r(t),[s(e),o(e)]))})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return a});var r=function(e){return"login_required"===e.errorCode},i=function(e){var t=e.errorCode;return"AuthApiError"===e.name&&"E0000007"===t},o=function(e){var t=e.message;return"AuthSdkError"===e.name&&"Unable to parse a token from the url"===t},a=function(e){var t=e.message;return"OAuthError"===e.name&&"The 'sub' system claim could not be evaluated."===t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(28),i=n.n(r)()("rise/errorUI/"),o=i("HIDE_ERROR_DIALOG"),a=i("SHOW_ERROR_DIALOG")},function(e,t,n){var r=n(34),i=n(862),o=n(19),a=n(138),s=n(724),l=n(725);e.exports=r(function e(t,n){switch(t.length){case 0:return n;case 1:return i(t[0])?s(t[0],1,n):a(t[0],n);default:var r=t[0],c=Array.prototype.slice.call(t,1);return null==n[r]?n:i(t[0])?l(r,e(c,n[r]),n):o(r,e(c,n[r]),n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(28),i=n.n(r)()("rise/notification/"),o=i("CLEAR"),a=i("NOTIFY")},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(28),i=n.n(r)()("rise/storyline/"),o=i("CLOSE_STORIES"),a=i("OPEN_STORIES")},function(e,t,n){"use strict";e.exports=n(2173)},function(e,t,n){"use strict";var r=n(155),i=n.n(r),o=n(4),a=n.n(o),s=n(236),l=n(233),c=n.n(l),u=n(6),d=n.n(u),f=n(44),p=n.n(f),h=n(153),m=n.n(h),g=n(77),v=n.n(g),y=n(296),b=n.n(y),_=n(8),w=n.n(_),E=n(76),k=n.n(E),x=n(29),S=Object(x.c)("SUBSCRIPTIONS_ENDPOINT"),T=Object(x.c)("THREESIXTY_FRONTEND_URI"),C=b()(["error","status"],404),O=d()(v()("error"),w()("response")),A=function(){return window.location.href=T},N=function(){var e=Object(s.a)(i.a.mark(function e(t,n,r){var o,s,l,u,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s=t&&a()(o="".concat(S,"/users/")).call(o,encodeURIComponent(t),"/status"),l={authorization:"Bearer ".concat(n)},e.next=4,c()(s,{headers:l}).catch(O);case 4:return u=e.sent,d=p()([[C,A],[m()("error"),r],[k.a,w()("data")]]),e.abrupt("return",d(u));case 7:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),I=n(1173),M=n.n(I),j=n(124),L=n.n(j),P=n(14),D=n.n(P),R=(D()("status","active"),D()("status","inactive")),F=(b()(["features","enable_review"],!0),b()(["features","enable_rise"],!0)),B=M()([D()("plan","trial"),D()("status","inactive"),D()("is_retrial_eligible",!1)]);L()(D()("plan","team"),D()("plan","individual"));n.d(t,"a",function(){return N}),n.d(t,"c",function(){return B}),n.d(t,"b",function(){return R}),n.d(t,"d",function(){return F})},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"request",function(){return q}),n.d(r,"callbackPath",function(){return $}),n.d(r,"getToken",function(){return Y}),n.d(r,"login",function(){return V}),n.d(r,"logout",function(){return K}),n.d(r,"renderCallback",function(){return G}),n.d(r,"initAuth",function(){return J});var i,o=n(29),a=n(1166),s=n(155),l=n.n(s),c=n(236),u=n(4),d=n.n(u),f=n(66),p=n(178),h=n.n(p),m=n(18),g=n.n(m),v=n(79),y=n.n(v),b=n(35),_=n.n(b),w=n(25),E=n.n(w),k=n(23),x=n.n(k),S=n(41),T=n.n(S),C=n(587),O=n.n(C),A=n(86),N=n.n(A),I=n(200),M=n(96),j=n.n(M),L=n(297),P=function(){return new j.a.reject(Error("360 does not want @articulate/rise-com-auth"))},D=n.n(L).a.fromPromise(P),R=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return t[e].apply(t,n)}},F=function(e){return function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return P().then(R.apply(void 0,d()(t=[e]).call(t,r)))}},B=F("closeSession"),U=F("on"),q=(i="request",function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return D().chain(R.apply(void 0,d()(e=[i]).call(e,n)))}),z=(F("resetSession"),F("resumeSession")),H=(F("startSession"),function(){var e,t=_()(encodeURIComponent,O()(["hash","pathname"],window.location)),n=Object(f.a)(t,2),r=n[0],i=n[1];window.location.href=d()(e="/login#c=".concat(i)).call(e,r)}),W=function(){window.location.href="/"},$=null,Y=I.b,V=H,K=B,G=g()(null),X=x()(T()([],"roles"),N()(y()("author"),W)),Q=x()(E()("",["subscription","status"]),N()(y()(h.a,["active","in_trial","non_renewing"]),W)),Z=function(){return window.location.reload()},J=function(){var e=Object(c.a)(l.a.mark(function e(t){var n,r,i,o,a,s,c,u,d;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.onFetchTokens,e.prev=1,e.next=4,z();case 4:return r=e.sent,i=Object(f.a)(r,2),o=i[0],a=i[1],s=a.sub,c=a.staff,u=a.subscription,d={user_id:s,staff:c},Q(a),n({author:s,user_id:s,profile:d,staff:c,subscription:u,token:o}),U("change:roles",X),U("change:status",Q),U("change:subdomain",Z),U("unauthorized",H),e.abrupt("return",o);case 19:e.prev=19,e.t0=e.catch(1),H();case 22:case"end":return e.stop()}},e,null,[[1,19]])}));return function(t){return e.apply(this,arguments)}}();n.d(t,"a",function(){return te}),n.d(t,"b",function(){return ne});var ee=o.e?r:a,te=(ee.callbackPath,ee.getToken),ne=(ee.initAuth,ee.login,ee.logout,ee.renderCallback,ee.request)},function(e,t,n){"use strict";var r=n(19),i=n.n(r),o=n(48),a=n.n(o),s=n(61),l=n.n(s),c=n(17),u=n.n(c),d=n(62),f=n.n(d),p=n(53),h=n.n(p),m=n(23),g=n.n(m),v=n(78),y=n(138),b=n.n(y),_=n(75),w=n.n(_),E=n(14),k=n.n(E),x=n(32),S=n.n(x),T=n(475),C=(b()("activeIndex"),n(65));n.d(t,"a",function(){return O}),n.d(t,"b",function(){return A}),n.d(t,"c",function(){return N});var O=function(e){var t=e.id,n=e.payload;return function(e){return e(Object(C.g)({id:t,updateFn:(r=n,o=r.itemId,a=r.activeIndex,g()(i()("activeIndex",a),h()(w()(["items",o]),i()("isComplete",!0)),T.a,S()(k()("percentComplete",100),i()("isComplete",!0))))}));var r,o,a}},A=g()(h()(l()("items"),Object(v.e)(i()("isComplete",!0))),a()(u.a)({isComplete:!0,percentComplete:100})),N=g()(h()(l()("items"),Object(v.e)(f()(["isComplete"]))),f()(["isComplete","percentComplete","activeIndex"]))},function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return S}),n.d(t,"a",function(){return T}),n.d(t,"b",function(){return C}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return A});var r=n(31),i=n(3),o=n.n(i),a=n(30),s=n.n(a),l=n(15),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(12),m=(n(2051),n(2)),g=n.n(m),v=n(1),y=n.n(v),b=n(58),_=n(85),w=n(57),E=n(68),k=n(100),x=n(56),S=function(t){function n(){return Object(u.a)(this,n),Object(f.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(d.a)(n,[{key:"getEntranceAnimationType",value:function(){switch(this.props.type){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}},{key:"getEntranceAnimationDuration",value:function(){switch(this.props.type){case"a":return 1;case"b":case"c":case"d":return.75;case"note":return.5}}},{key:"handleTextChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(b.a)(Object(w.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.animateBlockEntrance,a=r.isLearner,l=r.items,u=r.labels,d=r.type,f=r.settings,p=r.editable,h=f.paddingTop,m=f.paddingBottom,v=f.backgroundColor,y=f.entranceAnimation,b=g()("block-impact block-impact--".concat(d),{"block-impact--no-animation":!y}),w="note"===d,S=g()("block-impact__quote brand--linkColor",{"brand--body":"a"===d,"brand--head brand--beforeBackground":"b"===d,"brand--head":"c"===d,"brand--body brand--beforeBackground":"d"===d,"brand--head brand--border brand--background-transparent":w}),T={backgroundColor:Object(E.a)("",v),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},C=u.noteGroup,O=u.statementGroup,A=w?C:O;return e.createElement("div",{className:b,style:T},e.createElement("div",{className:"block-impact__wrap"},e.createElement("div",{className:"block-impact__container"},e.createElement("div",{"aria-label":A,className:"block-impact__row",role:_.a},c()(t=s()(l).call(l,0,1)).call(t,function(t){var r,s=t.id,l=t.paragraph;return e.createElement(x.a,{animateBlockEntrance:i,animateIn:n.getEntranceAnimationType(),duration:n.getEntranceAnimationDuration(),isLearner:a,key:s},e.createElement("div",{className:"block-impact__col"},e.createElement("div",{className:"block-impact__note-icon brand--color"},e.createElement("i",{className:"icon icon-info"})),e.createElement(k.a,{allowBold:"a"!==d&&"d"!==d,className:S,value:l,placeholder:"Enter some text",onChange:o()(r=n.handleTextChange).call(r,n,s),editable:p,editorOptions:{disableExtraSpaces:!0}})))})))))}}],[{key:"propTypes",get:function(){return{lessonId:y.a.any,blockId:y.a.any,items:y.a.array.isRequired,settings:y.a.object.isRequired,type:y.a.string,editable:y.a.bool}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],type:"a"}}}]),n}(e.Component),T=function(t){return e.createElement(S,Object(r.a)({type:"b"},t))},C=function(t){return e.createElement(S,Object(r.a)({type:"c"},t))},O=function(t){return e.createElement(S,Object(r.a)({type:"d"},t))},A=function(t){return e.createElement(S,Object(r.a)({type:"note"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return B}),n.d(t,"d",function(){return U}),n.d(t,"c",function(){return q}),n.d(t,"a",function(){return z});var r=n(15),i=n.n(r),o=n(30),a=n.n(o),s=n(3),l=n.n(s),c=n(4),u=n.n(c),d=n(10),f=n(7),p=n(11),h=n(9),m=n(12),g=(n(2115),n(2)),v=n.n(g),y=n(1202),b=n.n(y),_=n(153),w=n.n(_),E=n(17),k=n.n(E),x=n(1),S=n.n(x),T=n(258),C=n(100),O=n(58),A=n(399),N=n(238),I=n(56),M=n(52),j=n(85),L=n(29),P=n(57),D=n(68),R=n(400),F=n(47),B=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(O.a)(Object(P.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderItem",value:function(t){var n,r,i,o,a=this.props,s=a.blockId,c=a.editable,d=a.labels,f=a.lessonId,p=a.loadMedia,h=t.id,m=t.media,g=void 0===m?{}:m,v=t.caption,y=g.audio,b=g.tmp,_=((void 0===b?{}:b).audio||y).key,w=u()(n=u()(r="".concat(f,"-")).call(r,s,"-")).call(n,h);return e.createElement("div",{key:h,className:"block-audio__item"},p?e.createElement(T.b,{key:w,id:w,labels:d,mediaSrc:_,onEnd:l()(i=this.handleOnEnd).call(i,this,h)}):null,e.createElement(C.a,{className:"block-audio__caption brand--body brand--linkColor",editable:c,onChange:l()(o=this.handleCaptionChange).call(o,this,h),placeholder:"Add a caption",value:v}))}},{key:"handleOnEnd",value:function(e){this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.isLearner,s=n.items,l=n.settings,c=l.paddingTop,u=l.paddingBottom,d=l.backgroundColor,f=l.entranceAnimation,p=v()("block-audio",{"block-audio--no-animation":!f}),h={backgroundColor:Object(D.a)("",d),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},m=s.length>0?a()(s).call(s,0,1):[];return e.createElement("div",{className:p,style:h},e.createElement(I.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:o,offset:150},e.createElement("div",{className:"block-audio__wrapper"},i()(m).call(m,function(e,n){return t.renderItem(e,n)}))))}}],[{key:"propTypes",get:function(){return{lessonId:S.a.any,blockId:S.a.any,items:S.a.array,settings:S.a.object.isRequired,editable:S.a.bool,loadMedia:S.a.bool.isRequired,onStep:S.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),U=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(O.a)(Object(P.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderVideo",value:function(t){var n,r=this.props,i=r.editable,o=r.labels,a=r.settings,s=r.takingSnapshot,c=r.type,u=r.enableVideoPlaybackSpeed,d=t.captions,f=t.captionUID,p=t.id,h=t.key,m=t.keyId,g=t.poster,v=t.subtitle,y=h||t.src,b=e.createElement("img",{className:"block-video__poster",src:g,alt:"Video Poster"}),_=e.createElement("div",{className:"block-video__placeholder"}),w=e.createElement(R.a,{canAdjustPlaybackSpeed:u,canRestrictSeek:a.forwardSeekRestricted&&!i,captionUID:f,captions:d,id:m,key:m,labels:o,poster:g,progressChanged:l()(n=this.handleProgressChanged).call(n,this,p),src:y,subtitle:v,type:h?"video":c});return s?b:y?w:_}},{key:"renderItem",value:function(t){var n,r,i,o=this.props,a=o.editable,s=o.lessonId,c=o.blockId,d=o.loadMedia,f=o.settings.mediaWidth,p=void 0===f?"1":f,h=t.id,m=t.media,g=t.caption,y=m.customVideo,b=void 0===y?{}:y,_=m.tmp,E=void 0===_?{}:_,x=m.video,S=void 0===x?{}:x,T=w()("poster",S)?S:k()(S,b),O=w()("poster",E.video||{})&&E.video||T,A=O.captionUID,N=O.captions,I=O.key,M=O.poster,j=O.src,L=O.subtitle,P={captionUID:A,captions:N,id:h,key:I,keyId:u()(n=u()(r="".concat(s,"-")).call(r,c,"-")).call(n,h),poster:M,src:j,subtitle:L},D=v()("block-video__item",{"block-video__item--small":"0"===p,"block-video__item--medium":"1"===p,"block-video__item--full":"2"===p});return e.createElement("div",{key:h,className:D},d&&this.renderVideo(P),e.createElement("div",{className:"block-video__wrapper"},e.createElement(C.a,{className:"block-video__caption brand--body brand--linkColor",editable:a,hasQuickInsert:!1,onChange:l()(i=this.handleCaptionChange).call(i,this,h),placeholder:"Add a caption",value:g})))}},{key:"handleProgressChanged",value:function(e,t){t.percentComplete>=100&&this.props.onStep({id:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.isLearner,s=n.items,l=n.settings,c=l.paddingTop,u=l.paddingBottom,d=l.backgroundColor,f=l.entranceAnimation,p=v()("block-video",{"block-video--no-animation":!f}),h={backgroundColor:Object(D.a)("",d),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")},m=s.length>0?a()(s).call(s,0,1):[];return e.createElement("div",{className:p,style:h},e.createElement(I.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:o,offset:250},i()(m).call(m,function(e,n){return t.renderItem(e,n)})))}}],[{key:"propTypes",get:function(){return{blockId:S.a.any,editable:S.a.bool,items:S.a.array,labels:S.a.object,lessonId:S.a.any,loadMedia:S.a.bool.isRequired,onStep:S.a.func,settings:S.a.object.isRequired,type:S.a.string}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),q=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"renderItem",value:function(t,n){var r,i=t.id,o=t.media.embed,a=t.settings,s=void 0===a?{}:a,l=this.props,c=l.loadMedia,d=l.labels,f=l.settings,p=s.showMetaData,h=f.showBorder,m=void 0===h||h,g=v()("block-embed__item",{"block-embed__item--border":m});return e.createElement("section",{key:i,className:g},c&&e.createElement(A.a,{id:u()(r="".concat(n,"-")).call(r,i),labels:d,isLesson:!0,data:o,showMetaData:p}))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.blockId,s=n.isLearner,l=n.items,c=n.settings,u=c.paddingTop,d=c.paddingBottom,f=c.backgroundColor,p=c.entranceAnimation,h=c.mediaWidth,m=void 0===h?0:h,g="link"!==Object(N.a)(l),y=v()("block-embed",{"block-video--no-animation":!p}),b=v()("block-embed__wrapper",{"block-embed__wrapper--medium":g&&"1"===m,"block-embed__wrapper--full":g&&"2"===m}),_={backgroundColor:Object(D.a)("",f),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*d,"px")},w=l.length>0?a()(l).call(l,0,1):[];return e.createElement("div",{className:y,style:_},e.createElement(I.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:s,offset:300},e.createElement("div",{className:b},i()(w).call(w,function(e){return t.renderItem(e,o)}))))}}],[{key:"propTypes",get:function(){return{lessonId:S.a.any,blockId:S.a.any,items:S.a.array,settings:S.a.object.isRequired,editable:S.a.bool,loadMedia:S.a.bool.isRequired}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:""}}}]),n}(e.Component),z=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.labels,a=i[0].media.attachment,s=o.attachmentGroup;return e.createElement("div",{style:this.styles(this.props.settings)},e.createElement(I.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r},e.createElement("div",{className:"block-text--onecol"},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},e.createElement("div",{"aria-label":s,className:"block-text__col",role:j.a},this.renderAttachment(a)))))))}},{key:"renderAttachment",value:function(e){return e.key?this.renderDownload(e):this.renderNoFile()}},{key:"renderDownload",value:function(t){var n=t.key,r=t.mimeType,i=t.originalUrl,o=t.size;return e.createElement("a",{className:"block-attachment brandHover",download:i,href:Object(L.g)(n),target:"_blank"},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},this.fileIcon(r)),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement(M.a,{className:"block-attachment__title",value:i}),e.createElement("div",{className:"block-attachment__size"},b()(o,{round:1})))),e.createElement("div",{className:"block-attachment__rest"},e.createElement(F.i,{className:"brandHover__target--fill"})))}},{key:"renderNoFile",value:function(){return e.createElement("div",{className:"block-attachment block-attachment--none"},e.createElement("div",{className:"block-attachment__main"},e.createElement("div",{className:"block-attachment__icon"},e.createElement(F.l,null)),e.createElement("div",{className:"block-attachment__info brand--head"},e.createElement("div",{className:"block-attachment__title"},"File Attachment Block"),e.createElement("div",{className:"block-attachment__size"},"No file added"))))}},{key:"fileIcon",value:function(t){return/excel|spreadsheet/.test(t)?e.createElement(F.q,null):/pdf/.test(t)?e.createElement(F.n,null):/word/.test(t)?e.createElement(F.m,null):/powerpoint|presentation/.test(t)?e.createElement(F.o,null):/rtf|richtext/.test(t)?e.createElement(F.p,null):/zip/.test(t)?e.createElement(F.r,null):e.createElement(F.l,null)}},{key:"styles",value:function(e){return{backgroundColor:Object(D.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}}],[{key:"propTypes",get:function(){return{blockId:S.a.string.isRequired,items:S.a.array.isRequired,lessonId:S.a.string,loadMedia:S.a.bool.isRequired,settings:S.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _e});var r=n(30),i=n.n(r),o=n(37),a=n.n(o),s=n(15),l=n.n(s),c=n(229),u=n.n(c),d=n(127),f=n.n(d),p=n(3),h=n.n(p),m=n(4),g=n.n(m),v=n(10),y=n(11),b=n(9),_=n(13),w=n(7),E=n(12),k=(n(2118),n(108)),x=n.n(k),S=n(6),T=n.n(S),C=n(19),O=n.n(C),A=n(40),N=n.n(A),I=n(72),M=n.n(I),j=n(36),L=n.n(j),P=n(51),D=n.n(P),R=n(17),F=n.n(R),B=n(99),U=n.n(B),q=n(25),z=n.n(q),H=n(112),W=n.n(H),$=n(303),Y=n.n($),V=n(166),K=n.n(V),G=n(58),X=n(57),Q=n(2),Z=n.n(Q),J=n(1),ee=n.n(J),te=n(68),ne=n(22),re=n(151),ie=n(78),oe=n(100),ae=n(56),se=n(52),le=n(186),ce=n(169),ue=n(131),de=n(276),fe=n(240),pe=ue.a.FILL_IN_THE_BLANK,he=ue.a.MATCHING,me=ue.a.MULTIPLE_CHOICE,ge=ue.a.MULTIPLE_RESPONSE,ve=ce.a.ANY,ye=ce.a.CHOICE,be=ce.a.CORRECT_INCORRECT,_e=function(t){function n(){var e,t,r,i,o,a,s;Object(v.a)(this,n);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return(s=Object(y.a)(this,(e=Object(b.a)(n)).call.apply(e,g()(t=[this]).call(t,c)))).state={selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillinValue:"",matches:{}},s.handleFillIn=h()(r=s.handleFillIn).call(r,Object(_.a)(s)),s.handleMatch=h()(i=s.handleMatch).call(i,Object(_.a)(s)),s.handleMultipleResponseChange=h()(o=s.handleMultipleResponseChange).call(o,Object(_.a)(s)),s.handleRetake=h()(a=s.handleRetake).call(a,Object(_.a)(s)),s}return Object(E.a)(n,t),Object(w.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:ee.a.any,blockId:ee.a.any,items:ee.a.array,settings:ee.a.object.isRequired,editable:ee.a.bool,onStep:ee.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),Object(w.a)(n,[{key:"componentDidUpdate",value:function(e,t){t.answered&&!this.state.answered&&Object(ne.c)(this.wrapper)}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.state.matches,i=T()(O()(t,n),W()(N()(n)),re.d)(r);this.setState({matches:i})}},{key:"handleMultipleResponseChange",value:function(e){var t=e.optionIndex,n=this.state.selectedIndices,r=f()(n).call(n,t)?K()([t]):x()(t);this.setState({selectedIndices:r(n)})}},{key:"onAnswer",value:function(e){this.state.answered||this.setState({selectedAnswer:e,chosen:!0})}},{key:"onSubmit",value:function(e,t){var n=this;t&&this.setState({answered:!0,retake:!1},function(){return n.props.onStep({id:e})})}},{key:"handleTitleChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(G.a)(Object(X.g)({lessonId:r,blockId:i,itemId:e,payload:{title:t}}))}},{key:"handleAnswerChange",value:function(e,t,n){var r,i=this.props,o=i.lessonId,a=i.blockId,s=i.items,c=u()(s).call(s,function(t){return t.id===e});if(1===c.length&&c[0].answers){var d=c[0],f=l()(r=d.answers).call(r,function(e){return e.id===t?F()(e,{title:n}):e});Object(G.a)(Object(X.g)({lessonId:o,blockId:a,itemId:e,payload:{answers:f}}))}}},{key:"handleFeedbackChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(G.a)(Object(X.g)({lessonId:r,blockId:i,itemId:e,payload:{feedback:t}}))}},{key:"handleFillIn",value:function(e){this.setState({fillinValue:e})}},{key:"handleRetake",value:function(){var e=this;this.setState({retake:!0}),a()(function(){e.setState({answered:!1,chosen:!1,matches:{}})},400),a()(function(){e.setState({fillinValue:"",selectedAnswer:null,selectedIndices:[]})},950)}},{key:"renderQuestion",value:function(t){var n,r=this,i=this.state,o=i.answered,a=i.retake,s=i.selectedAnswer,l=this.props,c=l.blockId,u=l.editable,d=l.enableVideoPlaybackSpeed,f=l.labels,p=f.quizCorrect,m=f.quizIncorrect,g=f.quizSubmit,v=f.quizTakeAgain,y=t.id,b=t.media,_=t.settings,w=t.title,E=t.type,k=this.state.answered,x=this.getIsCorrect({item:t}),S=this.getCanSubmit({item:t}),T=h()(n=this.onSubmit).call(n,this,y,S),C=this.getFeedback({item:t,isCorrect:x,selectedAnswer:s}),O=Z()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":o}),A=Z()("block-knowledge__retake","brand--hoverColor",{"block-knowledge__retake--active":o&&!a});return e.createElement(le.b,{key:y,allowTabNavigation:!0},e.createElement(oe.a,{className:"quiz-card__title brand--body brand--linkColor",value:w,placeholder:"Enter a question title here ...",onChange:function(e){return r.handleTitleChange(y,e)},component:"div",editable:u}),e.createElement(le.e,{blockId:c,enableVideoPlaybackSpeed:d,labels:f,media:b,opts:_}),e.createElement(le.d,{isComplete:!!o,type:E},this.renderType({isCorrect:x,item:t,onSubmit:T,canSubmit:S})),e.createElement(le.a,{allowTabNavigation:!o,canProceed:k,canSubmit:S,onSubmit:T,quizSubmit:g}),e.createElement(le.c,{allowTabNavigation:k,canProceed:k,feedback:C,hasFeedback:!!C,isCorrect:x,labels:f,quizCorrect:p,quizIncorrect:m,renderText:function(){return e.createElement(se.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:o,value:C})}}),e.createElement("div",{className:O},e.createElement("button",{"aria-hidden":!o,className:A,onClick:this.handleRetake,tabIndex:Object(ne.l)(o)},e.createElement("div",{className:"block-knowledge__retake-content"},e.createElement("div",{className:"block-knowledge__retake-text brand--ui"},v),e.createElement("i",{className:"block-knowledge__retake-icon icon icon-reload"})))))}},{key:"getIsCorrect",value:function(e){var t=e.item,n=this.state,r=n.fillinValue,i=n.matches,o=n.selectedAnswer,a=n.selectedIndices,s=t.answers,l=t.type,c=t.isCaseSensitive;switch(l){case pe:return Object(fe.g)({answers:Object(fe.e)(s),fillinValue:r,isCaseSensitive:c});case he:return Object(ie.b)(i);case ge:return Object(fe.h)({answers:s,selectedIndices:a});case me:default:return o===Object(fe.b)(s)}}},{key:"getCanSubmit",value:function(e){var t=e.item,n=t.answers,r=this.state,i=r.answered,o=r.fillinValue,a=r.matches,s=r.selectedAnswer,l=r.selectedIndices;switch(t.type){case pe:return U()(M()(o))&&U()(i);case he:return Object(fe.i)(a)===D()(n);case ge:return U()(M()(l))&&U()(i);case me:default:return U()(L()(s))&&U()(i)}}},{key:"getFeedback",value:function(e){var t=e.item,n=e.isCorrect,r=e.selectedAnswer,i=t.answers,o=t.feedback,a=t.feedbackCorrect,s=t.feedbackIncorrect;switch(t.feedbackType){case ye:return z()("",[r,"feedback"],i);case be:return n?a:s;case ve:default:return o}}},{key:"renderType",value:function(t){var n,r,i=this,o=t.isCorrect,a=t.item,s=t.onSubmit,l=t.canSubmit,c=this.props,u=c.blockId,d=c.editable,f=c.isLearner,p=c.labels,h=this.state,m=h.answered,v=h.fillinValue,y=h.matches,b=h.retake,_=h.selectedAnswer,w=h.selectedIndices,E=a.answers,k=void 0===E?[]:E,x=a.type,S=p.quizAcceptableResponses,T=p.quizAnswerPlaceholder,C=Object(ie.i)(k),O=C,A=Y()(C);switch(x){case pe:return e.createElement(de.a,{allowTabNavigation:!0,isComplete:m,isCorrect:o,onChange:this.handleFillIn,onEnterToSubmit:s,options:Object(fe.e)(k),revealAnswers:!0,quizAcceptableResponses:S,quizAnswerPlaceholder:T,value:v});case he:return e.createElement(de.b,{allowTabNavigation:!0,answers:Object(fe.a)(x)(k),canSubmit:l,isActive:!0,isComplete:m,isLearner:f,matchIndices:O,matches:y,onEnterToSubmit:s,onMatch:this.handleMatch,prefersKeyboardNavigation:!0,revealAnswers:!0,titleIndices:A,isKnowledgeCheck:!0,isRetake:b});case ge:return e.createElement(de.d,{allowTabNavigation:!0,correctIds:Object(fe.d)(k),isComplete:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:s,options:k,renderOptionText:function(t){var n=t.optionId,r=t.title;return e.createElement(oe.a,{className:"quiz-multiple-choice-option__label brand--body",value:r,onChange:function(e){return i.handleAnswerChange(a.id,n,e)},component:"div",editable:d})},revealAnswers:!0,selectedIndices:w,uniqueId:g()(n="".concat(u,"-")).call(n,a.id)});case me:default:return e.createElement(de.c,{allowTabNavigation:!0,correctId:Object(fe.c)(k)||Object(fe.f)(k),isComplete:m,onChange:function(e){var t=e.optionIndex;i.onAnswer(t)},onEnterToSubmit:s,options:k,renderOptionText:function(t){var n=t.optionId,r=t.title;return e.createElement(oe.a,{className:"quiz-multiple-choice-option__label brand--body",value:r,placeholder:"Add an answer",onChange:function(e){return i.handleAnswerChange(a.id,n,e)},component:"div",editable:d})},selectedIndex:_,title:a.title,uniqueId:g()(r="".concat(u,"-")).call(r,a.id)})}}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.isLearner,a=n.items,s=n.settings,c=n.labels,u=void 0===c?{}:c,d=this.state,f=d.answered,p=d.retake,h=s.paddingTop,m=s.paddingBottom,g=s.backgroundColor,v=s.entranceAnimation,y=u.knowledgeCheckGroup,b=Z()("block-knowledge",{"block-knowledge--no-animation":!v,"block-knowledge--answered":f,"block-knowledge--retake":p}),_={backgroundColor:Object(te.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},w=a.length>0?i()(a).call(a,0,1):[];return e.createElement("div",{className:b,style:_,ref:function(e){t.block=e}},e.createElement(ae.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:o},e.createElement("div",{className:"block-knowledge__container"},e.createElement("div",{className:"block-knowledge__row"},e.createElement("div",{className:"block-knowledge__col"},e.createElement("div",{"aria-label":y,className:"block-knowledge__wrapper",ref:function(e){t.wrapper=e}},l()(w).call(w,function(e){return t.renderQuestion(e)})))))))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(707);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r,i=n(226),o=n(290);
/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/
!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(i(n)&&n.length){var l=s.apply(null,n);l&&e.push(l)}else if("object"===r)for(var c in n)a.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):"object"===o(n(700))&&n(700)?void 0===(r=function(){return s}.apply(t,[]))||(e.exports=r):window.classNames=s}()},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(74),i=n(620),o=r["__core-js_shared__"]||i("__core-js_shared__",{});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(336)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports={}},function(e,t,n){var r=n(63),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(97),i=n(371),o=n(110)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(63),i=n(110)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[i]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports={}},function(e,t,n){var r=n(500),i=n(110)("iterator"),o=n(434);e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(779);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n,i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){e.exports=!n(63)(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(102),i=n(625),o=n(117),a=n(309),s=n(435),l=n(776),c={};(e.exports=function(e,t,n,u,d){var f,p,h,m,g,v=a(t,n,u?2:1);if(d)f=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(i(p)){for(h=0,m=o(e.length);m>h;h++)if((u?v(r(g=e[h])[0],g[1]):v(e[h]))===c)return c;return}f=p.call(e)}for(;!(g=f.next()).done;)if(l(f,v,g.value,u)===c)return c}).BREAK=c},function(e,t,n){"use strict";var r=n(1515).charAt,i=n(376),o=n(807),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(193),i=n(222),o=n(515),a=n(810),s=o("IE_PROTO"),l=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){var r,i=n(205),o=n(1517),a=n(650),s=n(516),l=n(812),c=n(642),u=n(515),d=u("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[d]=e):n=h(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(811),i=n(650);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(245),i=n(517),o=n(347),a=n(376),s=n(807),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(279),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){var r=n(824),i=n(1537);function o(t,n){return delete e.exports[t],e.exports[t]=n,n}e.exports={Parser:r,Tokenizer:n(825),ElementType:n(446),DomHandler:i,get FeedHandler(){return o("FeedHandler",n(1539))},get Stream(){return o("Stream",n(1540))},get WritableStream(){return o("WritableStream",n(827))},get ProxyHandler(){return o("ProxyHandler",n(1556))},get DomUtils(){return o("DomUtils",n(1557))},get CollectingHandler(){return o("CollectingHandler",n(1571))},DefaultHandler:i,get RssHandler(){return o("RssHandler",this.FeedHandler)},parseDOM:function(e,t){var n=new i(t);return new r(n,t).end(e),n.dom},parseFeed:function(t,n){var i=new e.exports.FeedHandler(n);return new r(i,n).end(t),i.dom},createDomStream:function(e,t,n){var o=new i(e,t,n);return new r(o,t)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(e,t){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return"tag"===e.type||"script"===e.type||"style"===e.type}}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(349).Buffer)},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function o(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var a,s=t.isAbsolute(n),l=n.split(/\/+/),c=0,u=l.length-1;u>=0;u--)"."===(a=l[u])?l.splice(u,1):".."===a?c++:c>0&&(""===a?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(n=l.join("/"))&&(n=s?"/":"."),r?(r.path=n,o(r)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),o(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,o(s);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=l,o(s)):l}t.urlParse=i,t.urlGenerate=o,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=l?c:function(e){return u(e)?"$"+e:e},t.fromSetString=l?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=d(e.source,t.source);return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=d(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=d(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=i(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var l=r.path.lastIndexOf("/");l>=0&&(r.path=r.path.substring(0,l+1))}t=s(o(r),t)}return a(t)}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=n(137);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){var r=n(375),i=n(512),o=n(222),a=n(221),s=n(856),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d;return function(p,h,m,g){for(var v,y,b=o(p),_=i(b),w=r(h,m,3),E=a(_.length),k=0,x=g||s,S=t?x(p,E):n?x(p,0):void 0;E>k;k++)if((f||k in _)&&(y=w(v=_[k],k,b),e))if(t)S[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:l.call(S,v)}else if(u)return!1;return d?-1:c||u?u:S}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){var r=n(344);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.prototype.slice.call(e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}},function(e,t,n){var r=n(195),i=n(1715),o=n(871),a=n(678),s=n(1720),l=n(382),c=n(873),u=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},c(t));default:return o(e,t)}}));e.exports=u},function(e,t,n){var r=n(225).Symbol;e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={pushHash:function(e){if(e=e?0===e.indexOf("#")?e:"#"+e:"",history.pushState){var t=window.location;history.pushState(null,null,e?t.pathname+t.search+e:t.pathname+t.search)}else location.hash=e},getHash:function(){return window.location.hash.replace(/^#/,"")},filterElementInContainer:function(e){return function(t){return e.contains?e!=t&&e.contains(t):!!(16&e.compareDocumentPosition(t))}},scrollOffset:function(e,t){return e===document?t.getBoundingClientRect().top+(window.scrollY||window.pageYOffset):"static"!==getComputedStyle(e).position?t.offsetTop:t.getBoundingClientRect().top+e.scrollTop}}},function(e,t,n){"use strict";var r=n(98);function i(e,t){return r.where(e,function(e){return e.position===t})}function o(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r._tmpIndex_-i._tmpIndex_:r.weight-i.weight}),e.forEach(function(e){delete e._tmpIndex_})}e.exports={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var a=e.options.layout||{},s=r.options.toPadding(a.padding),l=s.left,c=s.right,u=s.top,d=s.bottom,f=i(e.boxes,"left"),p=i(e.boxes,"right"),h=i(e.boxes,"top"),m=i(e.boxes,"bottom"),g=i(e.boxes,"chartArea");o(f,!0),o(p,!1),o(h,!0),o(m,!1);var v=t-l-c,y=n-u-d,b=y/2,_=(t-v/2)/(f.length+p.length),w=(n-b)/(h.length+m.length),E=v,k=y,x=[];r.each(f.concat(p,h,m),function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?v:E,w),k-=t.height):(t=e.update(_,k),E-=t.width),x.push({horizontal:n,minSize:t,box:e})});var S=0,T=0,C=0,O=0;r.each(h.concat(m),function(e){if(e.getPadding){var t=e.getPadding();S=Math.max(S,t.left),T=Math.max(T,t.right)}}),r.each(f.concat(p),function(e){if(e.getPadding){var t=e.getPadding();C=Math.max(C,t.top),O=Math.max(O,t.bottom)}});var A=l,N=c,I=u,M=d;r.each(f.concat(p),B),r.each(f,function(e){A+=e.width}),r.each(p,function(e){N+=e.width}),r.each(h.concat(m),B),r.each(h,function(e){I+=e.height}),r.each(m,function(e){M+=e.height}),r.each(f.concat(p),function(e){var t=r.findNextWhere(x,function(t){return t.box===e}),n={left:0,right:0,top:I,bottom:M};t&&e.update(t.minSize.width,k,n)}),A=l,N=c,I=u,M=d,r.each(f,function(e){A+=e.width}),r.each(p,function(e){N+=e.width}),r.each(h,function(e){I+=e.height}),r.each(m,function(e){M+=e.height});var j=Math.max(S-A,0);A+=j,N+=Math.max(T-N,0);var L=Math.max(C-I,0);I+=L,M+=Math.max(O-M,0);var P=n-I-M,D=t-A-N;D===E&&P===k||(r.each(f,function(e){e.height=P}),r.each(p,function(e){e.height=P}),r.each(h,function(e){e.fullWidth||(e.width=D)}),r.each(m,function(e){e.fullWidth||(e.width=D)}),k=P,E=D);var R=l+j,F=u+L;r.each(f.concat(h),U),R+=E,F+=k,r.each(p,U),r.each(m,U),e.chartArea={left:A,top:I,right:A+E,bottom:I+k},r.each(g,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(E,k)})}function B(e){var t=r.findNextWhere(x,function(t){return t.box===e});if(t)if(e.isHorizontal()){var n={left:Math.max(A,S),right:Math.max(N,T),top:0,bottom:0};e.update(e.fullWidth?v:E,y/2,n)}else e.update(t.minSize.width,k)}function U(e){e.isHorizontal()?(e.left=e.fullWidth?l:A,e.right=e.fullWidth?t-c:A+E,e.top=F,e.bottom=F+e.height,F=e.bottom):(e.left=R,e.right=R+e.width,e.top=I,e.bottom=I+k,R=e.right)}}}},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98),a=n(461);function s(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(e[t].label);return r}function l(e,t,n){var r=e.getPixelForTick(t);return n&&(r-=0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(t-1))/2),r}function c(e,t,n){return o.isArray(t)?o.longestText(e,n,t):e.measureText(t).width}function u(e){var t=o.valueOrDefault,n=r.global,i=t(e.fontSize,n.defaultFontSize),a=t(e.fontStyle,n.defaultFontStyle),s=t(e.fontFamily,n.defaultFontFamily);return{size:i,style:a,family:s,font:o.fontString(i,a,s)}}function d(e){return o.options.toLineHeight(o.valueOrDefault(e.lineHeight,1.2),o.valueOrDefault(e.fontSize,r.global.defaultFontSize))}r._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:a.formatters.values,minor:{},major:{}}}),e.exports=i.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){o.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,i,a,s,l,c,u=this;for(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=o.extend({left:0,right:0,top:0,bottom:0},n),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),l=u.buildTicks()||[],u.afterBuildTicks(),u.beforeTickToLabelConversion(),a=u.convertTicksToLabels(l)||u.ticks,u.afterTickToLabelConversion(),u.ticks=a,r=0,i=a.length;r<i;++r)s=a[r],(c=l[r])?c.label=s:l.push(c={label:s,major:!1});return u._ticks=l,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){o.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){o.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){o.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){o.callback(this.options.beforeDataLimits,[this])},determineDataLimits:o.noop,afterDataLimits:function(){o.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){o.callback(this.options.beforeBuildTicks,[this])},buildTicks:o.noop,afterBuildTicks:function(){o.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){o.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){o.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){o.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,r=s(e._ticks),i=u(n);t.font=i.font;var a=n.minRotation||0;if(r.length&&e.options.display&&e.isHorizontal())for(var l,c=o.longestText(t,i.font,r,e.longestTextCache),d=c,f=e.getPixelForTick(1)-e.getPixelForTick(0)-6;d>f&&a<n.maxRotation;){var p=o.toRadians(a);if(l=Math.cos(p),Math.sin(p)*c>e.maxHeight){a--;break}a++,d=l*c}e.labelRotation=a},afterCalculateTickRotation:function(){o.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){o.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=s(e._ticks),r=e.options,i=r.ticks,a=r.scaleLabel,l=r.gridLines,f=r.display,p=e.isHorizontal(),h=u(i),m=r.gridLines.tickMarkLength;if(t.width=p?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:f&&l.drawTicks?m:0,t.height=p?f&&l.drawTicks?m:0:e.maxHeight,a.display&&f){var g=d(a)+o.options.toPadding(a.padding).height;p?t.height+=g:t.width+=g}if(i.display&&f){var v=o.longestText(e.ctx,h.font,n,e.longestTextCache),y=o.numberOfLabelLines(n),b=.5*h.size,_=e.options.ticks.padding;if(p){e.longestLabelWidth=v;var w=o.toRadians(e.labelRotation),E=Math.cos(w),k=Math.sin(w)*v+h.size*y+b*(y-1)+b;t.height=Math.min(e.maxHeight,t.height+k+_),e.ctx.font=h.font;var x=c(e.ctx,n[0],h.font),S=c(e.ctx,n[n.length-1],h.font);0!==e.labelRotation?(e.paddingLeft="bottom"===r.position?E*x+3:E*b+3,e.paddingRight="bottom"===r.position?E*b+3:E*S+3):(e.paddingLeft=x/2+3,e.paddingRight=S/2+3)}else i.mirror?v=0:v+=_+b,t.width=Math.min(e.maxWidth,t.width+v),e.paddingTop=h.size/2,e.paddingBottom=h.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){o.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(o.isNullOrUndef(e))return NaN;if("number"==typeof e&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:o.noop,getPixelForValue:o.noop,getValueForPixel:o.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),i=r*e+t.paddingLeft;n&&(i+=r/2);var o=t.left+Math.round(i);return o+=t.isFullWidth()?t.margins.left:0}var a=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(a/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,r=t.left+Math.round(n);return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r,i,a=this,s=a.isHorizontal(),l=a.options.ticks.minor,c=e.length,u=o.toRadians(a.labelRotation),d=Math.cos(u),f=a.longestLabelWidth*d,p=[];for(l.maxTicksLimit&&(i=l.maxTicksLimit),s&&(t=!1,(f+l.autoSkipPadding)*c>a.width-(a.paddingLeft+a.paddingRight)&&(t=1+Math.floor((f+l.autoSkipPadding)*c/(a.width-(a.paddingLeft+a.paddingRight)))),i&&c>i&&(t=Math.max(t,Math.floor(c/i)))),n=0;n<c;n++)r=e[n],(t>1&&n%t>0||n%t==0&&n+t>=c)&&n!==c-1&&delete r.label,p.push(r);return p},draw:function(e){var t=this,n=t.options;if(n.display){var i=t.ctx,a=r.global,s=n.ticks.minor,c=n.ticks.major||s,f=n.gridLines,p=n.scaleLabel,h=0!==t.labelRotation,m=t.isHorizontal(),g=s.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=o.valueOrDefault(s.fontColor,a.defaultFontColor),y=u(s),b=o.valueOrDefault(c.fontColor,a.defaultFontColor),_=u(c),w=f.drawTicks?f.tickMarkLength:0,E=o.valueOrDefault(p.fontColor,a.defaultFontColor),k=u(p),x=o.options.toPadding(p.padding),S=o.toRadians(t.labelRotation),T=[],C=t.options.gridLines.lineWidth,O="right"===n.position?t.left:t.right-C-w,A="right"===n.position?t.left+w:t.right,N="bottom"===n.position?t.top+C:t.bottom-w-C,I="bottom"===n.position?t.top+C+w:t.bottom+C;if(o.each(g,function(r,i){if(!o.isNullOrUndef(r.label)){var c,u,d,p,v,y,b,_,E,k,x,M,j,L,P=r.label;i===t.zeroLineIndex&&n.offset===f.offsetGridLines?(c=f.zeroLineWidth,u=f.zeroLineColor,d=f.zeroLineBorderDash,p=f.zeroLineBorderDashOffset):(c=o.valueAtIndexOrDefault(f.lineWidth,i),u=o.valueAtIndexOrDefault(f.color,i),d=o.valueOrDefault(f.borderDash,a.borderDash),p=o.valueOrDefault(f.borderDashOffset,a.borderDashOffset));var D="middle",R="middle",F=s.padding;if(m){var B=w+F;"bottom"===n.position?(R=h?"middle":"top",D=h?"right":"center",L=t.top+B):(R=h?"middle":"bottom",D=h?"left":"center",L=t.bottom-B);var U=l(t,i,f.offsetGridLines&&g.length>1);U<t.left&&(u="rgba(0,0,0,0)"),U+=o.aliasPixel(c),j=t.getPixelForTick(i)+s.labelOffset,v=b=E=x=U,y=N,_=I,k=e.top,M=e.bottom+C}else{var q,z="left"===n.position;s.mirror?(D=z?"left":"right",q=F):(D=z?"right":"left",q=w+F),j=z?t.right-q:t.left+q;var H=l(t,i,f.offsetGridLines&&g.length>1);H<t.top&&(u="rgba(0,0,0,0)"),H+=o.aliasPixel(c),L=t.getPixelForTick(i)+s.labelOffset,v=O,b=A,E=e.left,x=e.right+C,y=_=k=M=H}T.push({tx1:v,ty1:y,tx2:b,ty2:_,x1:E,y1:k,x2:x,y2:M,labelX:j,labelY:L,glWidth:c,glColor:u,glBorderDash:d,glBorderDashOffset:p,rotation:-1*S,label:P,major:r.major,textBaseline:R,textAlign:D})}}),o.each(T,function(e){if(f.display&&(i.save(),i.lineWidth=e.glWidth,i.strokeStyle=e.glColor,i.setLineDash&&(i.setLineDash(e.glBorderDash),i.lineDashOffset=e.glBorderDashOffset),i.beginPath(),f.drawTicks&&(i.moveTo(e.tx1,e.ty1),i.lineTo(e.tx2,e.ty2)),f.drawOnChartArea&&(i.moveTo(e.x1,e.y1),i.lineTo(e.x2,e.y2)),i.stroke(),i.restore()),s.display){i.save(),i.translate(e.labelX,e.labelY),i.rotate(e.rotation),i.font=e.major?_.font:y.font,i.fillStyle=e.major?b:v,i.textBaseline=e.textBaseline,i.textAlign=e.textAlign;var n=e.label;if(o.isArray(n))for(var r=n.length,a=1.5*y.size,l=t.isHorizontal()?0:-a*(r-1)/2,c=0;c<r;++c)i.fillText(""+n[c],0,l),l+=a;else i.fillText(n,0,0);i.restore()}}),p.display){var M,j,L=0,P=d(p)/2;if(m)M=t.left+(t.right-t.left)/2,j="bottom"===n.position?t.bottom-P-x.bottom:t.top+P+x.top;else{var D="left"===n.position;M=D?t.left+P+x.top:t.right-P-x.top,j=t.top+(t.bottom-t.top)/2,L=D?-.5*Math.PI:.5*Math.PI}i.save(),i.translate(M,j),i.rotate(L),i.textAlign="center",i.textBaseline="middle",i.fillStyle=E,i.font=k.font,i.fillText(p.labelString,0,0),i.restore()}if(f.drawBorder){i.lineWidth=o.valueAtIndexOrDefault(f.lineWidth,0),i.strokeStyle=o.valueAtIndexOrDefault(f.color,0);var R=t.left,F=t.right+C,B=t.top,U=t.bottom+C,q=o.aliasPixel(i.lineWidth);m?(B=U="top"===n.position?t.bottom:t.top,B+=q,U+=q):(R=F="left"===n.position?t.right:t.left,R+=q,F+=q),i.beginPath(),i.moveTo(R,B),i.lineTo(F,U),i.stroke()}}}})},function(e,t,n){"use strict";var r=n(98);e.exports={formatters:{values:function(e){return r.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var o=r.log10(Math.abs(i)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var s=r.log10(Math.abs(e));a=e.toExponential(Math.floor(s)-Math.floor(o))}else{var l=-1*Math.floor(o);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(r.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}}},function(e,t,n){var r=n(557),i=n(2232),o=n(2233),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(1594)},function(e,t,n){e.exports=n(1631)},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e||t})},function(e,t,n){e.exports=n(1684)},function(e,t,n){e.exports=n(1738)},function(e,t,n){e.exports=n(1765)},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=n.n(o);t.a=function(e){var t=e.title,n=void 0===t?"Search":t,r=e.desc,o=void 0===r?"Magnifying glass":r,s=e.width,l=void 0===s?"16":s,c=e.height,u=void 0===c?"16":c,d=e.className,f=e.focusable,p=void 0===f?"false":f;return a.a.createElement("svg",{viewBox:"0 0 15.6 14.7",width:l,height:u,className:i()("i i-search",d),focusable:p},a.a.createElement("title",null,n),a.a.createElement("desc",null,o),a.a.createElement("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"}))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r=function(e){return e<10?"0".concat(e):String(e)},i=function(e){return Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
e.exports=n(454)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(1677)},function(e,t,n){var r=n(34),i=n(248),o=n(1693);e.exports=r(i(["any"],o,function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1}))},function(e,t,n){"use strict";n.d(t,"a",function(){return W}),n.d(t,"b",function(){return $});var r=n(160),i=n.n(r),o=n(19),a=n.n(o),s=n(104),l=n.n(s),c=n(6),u=n.n(c),d=n(320),f=n.n(d),p=n(46),h=n.n(p),m=n(48),g=n.n(m),v=n(36),y=n.n(v),b=n(106),_=n.n(b),w=n(51),E=n.n(w),k=n(75),x=n.n(k),S=n(321),T=n.n(S),C=n(23),O=n.n(C),A=n(8),N=n.n(A),I=n(14),M=n.n(I),j=n(82),L=n.n(j),P=n(132),D=n.n(P),R=n(67),F=n.n(R),B=n(32),U=n.n(B),q=l()(y.a),z=i()(L.a),H=function(e){var t=e.key,n=e.percent;return function(e){return a()(n,O()(N()("items"),F.a,h()(M()(t,!0)),E.a,g()(f.a)(u()(E.a,_.a,N()("items"))(e)),T()(100),Math.round)(e),e)}},W=(z(function e(t,n,r){var i=n.id,o=n.items;return O()(a()(i,{index:r}),U()(function(){return q(o)},function(t){return D()(x()([i,"items"]),z(e,{},o))(t)}))(t)},{}),H({key:"isComplete",percent:"percentComplete"})),$=H({key:"isViewed",percent:"percentViewed"})},function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return f});var r=n(48),i=n.n(r),o=n(17),a=n.n(o),s=n(62),l=n.n(s),c=n(65),u=function(e){return function(t){return t(Object(c.g)({id:e,updateFn:d}))}},d=i()(a.a)({isComplete:!0,percentComplete:100}),f=l()(["isComplete","percentComplete"])},function(e,t,n){"use strict";n.d(t,"a",function(){return S}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return C});var r=n(19),i=n.n(r),o=n(6),a=n.n(o),s=n(48),l=n.n(s),c=n(75),u=n.n(c),d=n(61),f=n.n(d),p=n(17),h=n.n(p),m=n(62),g=n.n(m),v=n(53),y=n.n(v),b=n(14),_=n.n(b),w=n(32),E=n.n(w),k=n(78),x=n(65),S=function(e){var t=e.id,n=e.itemId;return function(e){return e(Object(x.g)({id:t,updateFn:O(n)}))}},T=a()(l()(h.a)({isComplete:!0,percentComplete:100}),y()(f()("items"),Object(k.e)(i()("isComplete",!0)))),C=a()(g()(["isComplete","percentComplete"]),y()(f()("items"),Object(k.e)(g()(["isComplete"])))),O=function(e){return a()(E()(_()("percentComplete",100),i()("isComplete",!0)),x.f,y()(u()(["items",e]),i()("isComplete",!0)))}},function(e,t,n){"use strict";n.d(t,"c",function(){return O}),n.d(t,"a",function(){return A}),n.d(t,"b",function(){return N});var r=n(18),i=n.n(r),o=n(19),a=n.n(o),s=n(6),l=n.n(s),c=n(48),u=n.n(c),d=n(231),f=n.n(d),p=n(319),h=n.n(p),m=n(17),g=n.n(m),v=n(77),y=n.n(v),b=n(62),_=n.n(b),w=n(14),E=n.n(w),k=n(41),x=n.n(k),S=n(32),T=n.n(S),C=n(65),O=function(e){var t=e.currentTime,n=e.id,r=e.percentComplete;return function(e){return e(Object(C.g)({id:n,updateFn:M({currentTime:t,percentComplete:r})}))}},A=u()(g.a)({currentTime:0,isComplete:!0,percentComplete:100}),N=_()(["currentTime","isComplete","percentComplete"]),I=T()(E()("percentComplete",100),a()("isComplete",!0)),M=function(e){var t=e.currentTime,n=e.percentComplete;return l()(a()("currentTime",t),I,function(e){return function(t){return l()(g()(t),y()("percentComplete"),Math.round,T()(f()(90),i()(100)),h()(e),x()(0,"percentComplete"))(t)}}(n))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});n(1801);var r=n(29);function i(t){return t.enableExitCourse?e.createElement("button",{className:t.className,onClick:r.b},t.text):null}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var r=n(6),i=n.n(r),o=n(120),a=n.n(o),s=n(361),l=n.n(s),c=n(106),u=n.n(c),d=n(51),f=n.n(d),p=n(35),h=n.n(p),m=n(23),g=n.n(m),v=(n(8),n(264)),y=n.n(v),b=(n(67),a()(function(e,t){return g()(y.a,h()(e),l.a)(t)}),i()(f.a,u.a))},function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return m});var r=n(20),i=(n(108),n(43),n(19),n(60)),o=n.n(i),a=(n(33),n(61),n(214),n(140),n(42),n(8),n(14)),s=n.n(a),l=(n(132),n(32)),c=n.n(l),u=(n(273),n(64)),d=n(237),f=(n(167),n(21),n(91)),p=n(114),h=(f.a.send(p.b),f.a.send(p.c),f.a.send(p.d),f.a.send(p.e)),m=(Object(r.action)(p.e),c()(s()("type",p.a),o()(2,function(e,t,n){return e.payload.id===n().course.id?t(Object(u.c)()):t(e)})));Object(d.a)([Object(r.action)(p.e),f.a.debounce(500,p.f)]),Object(d.b)([Object(r.action)(p.g),f.a.send(p.g)])},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a});var r=n(28),i=n.n(r)()("rise/locks/"),o=i("DEL_LOCK"),a=i("PUT_LOCK")},function(e,t,n){var r=n(549),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return _}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return E});var r=n(0),i=n.n(r),o=n(162),a=n.n(o),s=n(363),l=n.n(s),c=n(425),u=n.n(c),d=(n(2281),n(1233)),f=n.n(d),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function h(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=void 0!==e&&Object({BUGSNAG_API_KEY:"f3fd51abf4bdabb1dd460597574d9972",CLIENT_VERSION:"8329025f49882de425c4fdd607f2e8dd5fad3a17",NODE_ENV:"production"})&&"production",b=function(e){function t(){var n,r;m(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=g(this,e.call.apply(e,[this].concat(o))),r.handleOnClick=function(e){var t=r.chartInstance,n=r.props,i=n.getDatasetAtEvent,o=n.getElementAtEvent,a=n.getElementsAtEvent,s=n.onElementsClick;i&&i(t.getDatasetAtEvent(e),e),o&&o(t.getElementAtEvent(e),e),a&&a(t.getElementsAtEvent(e),e),s&&s(t.getElementsAtEvent(e),e)},r.ref=function(e){r.element=e},g(r,n)}return v(t,e),t.prototype.componentWillMount=function(){this.chartInstance=void 0},t.prototype.componentDidMount=function(){this.renderChart()},t.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.chartInstance.destroy(),void this.renderChart();this.updateChart()},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=(t.redraw,t.type),r=t.options,i=t.plugins,o=t.legend,a=t.height,s=t.width;if(!0===e.redraw)return!0;if(a!==e.height||s!==e.width)return!0;if(n!==e.type)return!0;if(!u()(o,e.legend))return!0;if(!u()(r,e.options))return!0;var l=this.transformDataProp(e);return!u()(this.shadowDataProp,l)||!u()(i,e.plugins)},t.prototype.componentWillUnmount=function(){this.chartInstance.destroy()},t.prototype.transformDataProp=function(e){var t=e.data;return"function"==typeof t?t(this.element):t},t.prototype.memoizeDataProps=function(){if(this.props.data){var e=this.transformDataProp(this.props);return this.shadowDataProp=p({},e,{datasets:e.datasets&&e.datasets.map(function(e){return p({},e)})}),e}},t.prototype.checkDatasets=function(e){var n="production"!==y&&"prod"!==y,r=this.props.datasetKeyProvider!==t.getLabelAsKey,i=e.length>1;if(n&&i&&!r){var o=!1;e.forEach(function(e){e.label||(o=!0)}),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},t.prototype.updateChart=function(){var e=this,t=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){t&&(this.chartInstance.options=l.a.helpers.configMerge(this.chartInstance.options,t));var r=this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[],i=n.datasets||[];this.checkDatasets(r);var o=f()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map(function(t){var n=o[e.props.datasetKeyProvider(t)];if(n&&n.type===t.type){n.data.splice(t.data.length),t.data.forEach(function(e,r){n.data[r]=t.data[r]});t.data;var r=h(t,["data"]);return p({},n,r)}return t});n.datasets;var a=h(n,["datasets"]);this.chartInstance.config.data=p({},this.chartInstance.config.data,a),this.chartInstance.update()}},t.prototype.renderChart=function(){var e=this.props,n=e.options,r=e.legend,i=e.type,o=(e.redraw,e.plugins),a=this.element,s=this.memoizeDataProps();void 0===r||u()(t.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new l.a(a,{type:i,data:s,options:n,plugins:o})},t.prototype.render=function(){var e=this.props,t=e.height,n=e.width,r=(e.onElementsClick,e.id);return i.a.createElement("canvas",{ref:this.ref,height:t,width:n,id:r,onClick:this.handleOnClick})},t}(i.a.Component);b.getLabelAsKey=function(e){return e.label},b.propTypes={data:a.a.oneOfType([a.a.object,a.a.func]).isRequired,getDatasetAtEvent:a.a.func,getElementAtEvent:a.a.func,getElementsAtEvent:a.a.func,height:a.a.number,legend:a.a.object,onElementsClick:a.a.func,options:a.a.object,plugins:a.a.arrayOf(a.a.object),redraw:a.a.bool,type:function(e,t,n){if(!l.a.controllers[e[t]])return new Error("Invalid chart type `"+e[t]+"` supplied to `"+n+"`.")},width:a.a.number,datasetKeyProvider:a.a.func},b.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:b.getLabelAsKey};!function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"doughnut"}))}}(i.a.Component);var _=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"pie"}))},t}(i.a.Component),w=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"line"}))},t}(i.a.Component),E=function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}return v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bar"}))},t}(i.a.Component);(function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"horizontalBar"}))}})(i.a.Component),function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"radar"}))}}(i.a.Component),function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"polarArea"}))}}(i.a.Component),function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"bubble"}))}}(i.a.Component),function(e){function t(){return m(this,t),g(this,e.apply(this,arguments))}v(t,e),t.prototype.render=function(){var e=this;return i.a.createElement(b,p({},this.props,{ref:function(t){return e.chartInstance=t&&t.chartInstance},type:"scatter"}))}}(i.a.Component),l.a.defaults}).call(this,n(284))},function(e,t,n){var r=n(34);e.exports=r(function(e,t){for(var n=[],r=0,i=Math.min(e.length,t.length);r<i;)n[r]=[e[r],t[r]],r+=1;return n})},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return c});var r=n(139),i=n.n(r),o=n(151),a=960;function s(){return document.querySelector(".page-wrap")}var l=i()(o.b,function(e){return e.getBoundingClientRect().bottom-e.offsetHeight/4<=window.innerHeight});function c(){return window.innerWidth<a}},function(e,t,n){e.exports=n(2414)},function(e,t,n){e.exports=n(1656)},function(e,t,n){"use strict";(function(e){var r=n(31),i=n(10),o=n(7),a=n(11),s=n(9),l=n(12),c=n(138),u=n.n(c),d=n(17),f=n.n(d),p=n(201),h=function(t){function n(){return Object(i.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(o.a)(n,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t=this,n=this.props,i=n.childProps,o=n.component,a=u()("component",this.props);return e.createElement(p.a,Object(r.a)({},a,{render:function(n){var r=n.match,a=f()(i,{match:r,ref:function(e){return t.child=e}});return e.createElement(o,a)}}))}}]),n}(e.Component);t.a=h}).call(this,n(0))},function(e,t,n){var r=n(18);e.exports=r(!1)},function(e,t,n){"use strict";(function(e){n.d(t,"d",function(){return T}),n.d(t,"c",function(){return C}),n.d(t,"a",function(){return O}),n.d(t,"b",function(){return A});var r=n(31),i=n(3),o=n.n(i),a=n(10),s=n(7),l=n(11),c=n(9),u=n(12),d=(n(2076),n(2)),f=n.n(d),p=n(116),h=n.n(p),m=n(1),g=n.n(m),v=n(68),y=n(270),b=n(100),_=n(56),w=n(58),E=n(57),k=n(85),x=n(95),S=n(88),T=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(w.a)(Object(E.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderCaption",value:function(t,n){var r,i=this.props.editable;return e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:o()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:i})}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.type,a=t.settings,s=a.paddingTop,l=a.paddingBottom,c=a.backgroundColor,u=a.entranceAnimation,d=a.zoomOnClick,p=f()("block-image block-image--".concat(o),{"block-image--no-animation":!u}),m={backgroundColor:Object(v.a)("",c),paddingTop:"".concat(10*s,"px"),paddingBottom:"".concat(10*l,"px")},g=i[0],b=g.id,w=g.caption,E=h()(g,"media.image.alt")||Object(x.e)(w)||"",k=Object(S.a)(h()(g,"media.image"));return e.createElement("div",{className:p,style:m},e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement("figure",{className:"block-image__figure"},e.createElement(_.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:300},e.createElement("div",{className:"block-image__image"},e.createElement(y.a,{src:k,disableZoom:!d,alt:E})),this.renderCaption(b,w)))))))}}],[{key:"propTypes",get:function(){return{lessonId:g.a.any,blockId:g.a.any,items:g.a.array.isRequired,settings:g.a.object.isRequired,type:g.a.string,editable:g.a.bool}}},{key:"defaultProps",get:function(){return{type:"hero",editable:!1,lessonId:"",blockId:"",items:[]}}}]),n}(e.Component),C=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleParagraphChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(w.a)(Object(E.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(w.a)(Object(E.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderParagraph",value:function(t,n){var r,i=this.props.editable;return e.createElement(b.a,{className:"block-image__text brand--body brand--linkColor",value:n,placeholder:"Enter some text",onChange:o()(r=this.handleParagraphChange).call(r,this,t),editable:i})}},{key:"renderCaption",value:function(t,n){var r,i=this.props.editable;return e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:o()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:i})}},{key:"renderImage",value:function(t,n,r,i){var o=h()(r,"media.image.alt")||Object(x.e)(n)||"",a=Object(S.a)(h()(r,"media.image")),s=this.props,l=s.animateBlockEntrance,c=s.isLearner,u=s.settings.zoomOnClick;return e.createElement(_.a,{animateBlockEntrance:l,animateIn:"right"===i?"fadeInRight":"fadeInLeft",isLearner:c},e.createElement("figure",{className:"block-image__figure"},e.createElement("div",{className:"block-image__image"},e.createElement(y.a,{src:a,disableZoom:!u,alt:o})),this.renderCaption(t,n)))}},{key:"render",value:function(){var t=this.props,n=t.items,r=t.labels.imageAndTextGroup,i=t.settings,o=t.type,a=i.paddingTop,s=i.paddingBottom,l=i.backgroundColor,c=i.entranceAnimation,u=i.imagePosition,d=i.imageSize,p="right"===u,h=f()("block-image block-image--".concat(o),{"block-image--small":"small"===d,"block-image--large":"large"===d,"block-image--reverse":p,"block-image--no-animation":!c}),m={backgroundColor:Object(v.a)("",l),paddingTop:"".concat(10*a,"px"),paddingBottom:"".concat(10*s,"px")},g=n[0],y=g.id,b=g.caption,_=g.paragraph;return e.createElement("div",{className:h,style:m},e.createElement("div",{className:"block-image__container"},e.createElement("div",{"aria-label":r,className:"block-image__row",role:k.a},e.createElement("div",{className:"block-image__col"},p?this.renderParagraph(y,_):this.renderImage(y,b,g,"left")),e.createElement("div",{className:"block-image__col"},p?this.renderImage(y,b,g,"right"):this.renderParagraph(y,_)))))}}],[{key:"propTypes",get:function(){return{lessonId:g.a.any,blockId:g.a.any,items:g.a.array.isRequired,settings:g.a.object.isRequired,type:g.a.string,editable:g.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"text-aside"}}}]),n}(e.Component),O=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(w.a)(Object(E.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderOverlayCaption",value:function(t,n){var r,i=this.props,a=i.animateBlockEntrance,s=i.editable,l=i.isLearner;return e.createElement("div",{className:"block-image__container"},e.createElement("div",{className:"block-image__row"},e.createElement("div",{className:"block-image__col"},e.createElement(_.a,{animateBlockEntrance:a,animateIn:"fadeInUp",isLearner:l,duration:1},e.createElement(b.a,{className:"block-image__paragraph brand--head brand--linkColor",value:n,placeholder:"Enter some text",onChange:o()(r=this.handleCaptionChange).call(r,this,t),editable:s})))))}},{key:"renderCaption",value:function(t,n){var r,i=this.props.editable;return e.createElement("div",{className:"block-image__container brand--body"},e.createElement(b.a,{className:"block-image__caption brand--body brand--linkColor",value:n,placeholder:"Add a caption",onChange:o()(r=this.handleCaptionChange).call(r,this,t),component:"figcaption",editable:i}))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.labels.textOnImageGroup,a=t.settings,s=t.type,l=a.paddingTop,c=a.paddingBottom,u=a.backgroundColor,d=a.entranceAnimation,p=a.opacity,m=a.opacityColor,g=f()("block-image block-image--".concat(s),{"block-image--no-animation":!d}),y={backgroundColor:Object(v.a)("",u),paddingTop:"".concat(10*l,"px"),paddingBottom:"".concat(10*c,"px")},b={opacity:p||.6,backgroundColor:m||"transparent"},w=i[0],E=w.id,T=w.caption,C=h()(w,"media.image.key"),O=Object(S.a)(h()(w,"media.image")),A=h()(w,"media.image.alt")||Object(x.e)(T)||"",N="overlay"===s,I=N?k.a:"",M=N?o:"";return e.createElement("div",{"aria-label":M,className:g,style:y,role:I},function(t,n,r,i){return n?i:e.createElement(_.a,{animateBlockEntrance:t,animateIn:"fadeIn",isLearner:r,duration:1},i)}(n,N,r,e.createElement("figure",{className:"block-image__figure"},C&&e.createElement("div",{className:"block-image__image",style:{backgroundImage:"url('".concat(O,"')")}},e.createElement("img",{src:O,alt:A,title:A}),e.createElement("div",{className:"block-image__overlay",style:b})),N?this.renderOverlayCaption(E,T,s):null)),N?null:this.renderCaption(E,T))}}],[{key:"propTypes",get:function(){return{lessonId:g.a.any,blockId:g.a.any,items:g.a.array.isRequired,settings:g.a.object.isRequired,type:g.a.string,editable:g.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",type:"full"}}}]),n}(e.Component),A=function(t){return e.createElement(O,Object(r.a)({type:"overlay"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return H}),n.d(t,"a",function(){return W});var r=n(15),i=n.n(r),o=n(182),a=n.n(o),s=n(228),l=n.n(s),c=n(31),u=n(3),d=n.n(u),f=n(10),p=n(7),h=n(11),m=n(9),g=n(12),v=(n(2082),n(299)),y=n.n(v),b=n(2),_=n.n(b),w=n(116),E=n.n(w),k=n(1),x=n.n(k),S=n(44),T=n.n(S),C=n(58),O=n(57),A=n(270),N=n(68),I=n(22),M=n(27),j=n(85),L=n(213),P=n(95),D=n(100),R=n(56),F=n(88),B=function(t){function n(e){var t;return Object(f.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={isDotKeyboardFocusDisabled:!1},t}return Object(g.a)(n,t),Object(p.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.sliderContainer.querySelector(".block-gallery__dots-list"),t=this.state.isDotKeyboardFocusDisabled;e&&!t&&(Object(I.b)(e),this.setState({isDotKeyboardFocusDisabled:!0}))}},{key:"onKeyDown",value:function(e){var t,n,r=this.slider;T()([[M.h,d()(t=r.slickNext).call(t,r)],[M.f,d()(n=r.slickPrev).call(n,r)]])(e)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.children,o=r.className,a=r.beforeChange,s={adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:i.length>1,nextArrow:e.createElement(U,null),prevArrow:e.createElement(U,{previous:!0}),dots:i.length>1,dotsClass:"block-gallery__dots-list brand--background-all brand--shadow-all",beforeChange:a};return e.createElement("div",{className:"block-gallery__slider-container",tabIndex:I.a,onKeyDown:d()(t=this.onKeyDown).call(t,this),ref:function(e){n.sliderContainer=e}},e.createElement(y.a,Object(c.a)({className:o,ref:function(e){n.slider=e}},s),i))}}],[{key:"propTypes",get:function(){return{children:x.a.node.isRequired,className:x.a.string.isRequired,beforeChange:x.a.func.isRequired}}}]),n}(e.Component),U=function(t){function n(){return Object(f.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(p.a)(n,[{key:"render",value:function(){var t=this.props,n=t.onClick,r=t.previous,i=_()("block-gallery__arrow",{"block-gallery__arrow--next":!r,"block-gallery__arrow--prev":r});return e.createElement("div",{className:"block-gallery__controls"},e.createElement("div",{className:i,onClick:n},e.createElement("div",{className:"block-gallery__arrow-icon"})))}}],[{key:"propTypes",get:function(){return{onClick:x.a.func,previous:x.a.bool}}},{key:"defaultProps",get:function(){return{previous:!1}}}]),n}(e.Component),q=function(t){function n(){return Object(f.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(p.a)(n,[{key:"slickGoTo",value:function(e){this.slider.slickGoTo(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.children,i=n.className;return e.createElement(y.a,Object(c.a)({ref:function(e){t.slider=e},className:i},{adaptiveHeight:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,draggable:!1,swipe:!1,accessibility:!1}),r)}}],[{key:"propTypes",get:function(){return{children:x.a.node.isRequired,className:x.a.string}}}]),n}(e.Component),z=function(t){var n=t.children;return e.createElement("div",{className:"block-gallery__container"},e.createElement("div",{className:"block-gallery__row--slide-row"},e.createElement("div",{className:"block-gallery__col"},n)))},H=function(t){function n(e){var t;return Object(f.a)(this,n),(t=Object(h.a)(this,Object(m.a)(n).call(this,e))).state={currentIndex:0},t}return Object(g.a)(n,t),Object(p.a)(n,[{key:"componentDidUpdate",value:function(){var e=this.state.currentIndex,t=Object(L.b)(this.carousel.querySelectorAll(".slick-active.block-gallery__slide"));l()(t).call(t,function(t){a()(t.getAttribute("data-index"))!==e&&Object(I.b)(t)})}},{key:"handleSlideChangeBefore",value:function(e,t){this.captions.slickGoTo(t),this.props.onStep(this.props.items[t]),this.setState({currentIndex:t})}},{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(C.a)(Object(O.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"renderImages",value:function(t,n){var r=this.state.currentIndex;return i()(t).call(t,function(t,i){var o=t.id,a=t.caption,s=E()(t,"media.image.alt")||Object(P.e)(a)||"",l=i===r,c=Object(F.a)(E()(t,"media.image"));return e.createElement("div",{key:o,className:"block-gallery__slide"},e.createElement(z,null,e.createElement("div",{className:"block-gallery__figure"},e.createElement("div",{className:"block-gallery__image"},e.createElement(A.a,{src:c,alt:s,disableZoom:!n,allowTabNavigation:l})))))})}},{key:"renderCaptions",value:function(t){var n=this,r=this.state.currentIndex,o=this.props.editable;return i()(t).call(t,function(t,i){var a,s=t.id,l=t.caption,c=i===r;return e.createElement("div",{key:s,className:"block-gallery__slide"},l||o?e.createElement(z,null,e.createElement(D.a,{className:"block-gallery__caption brand--body brand--linkColor",value:l,placeholder:"Add a caption",onChange:d()(a=n.handleCaptionChange).call(a,n,s),component:"figcaption",editable:o,allowTabNavigation:c})):null)})}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.animateBlockEntrance,o=r.isLearner,a=r.items,s=r.type,l=r.settings,c=l.paddingTop,u=l.paddingBottom,f=l.backgroundColor,p=l.entranceAnimation,h=l.zoomOnClick,m=_()("block-gallery block-gallery--".concat(s),{"block-gallery--no-animation":!p}),g={backgroundColor:Object(N.a)("",f),paddingTop:"".concat(10*c,"px"),paddingBottom:"".concat(10*u,"px")};return e.createElement("div",{style:g},e.createElement(R.a,{animateBlockEntrance:i,animateIn:"fadeIn",offset:200,isLearner:o},e.createElement("figure",{className:m,ref:function(e){n.carousel=e}},e.createElement(B,{className:"block-gallery__images",beforeChange:d()(t=this.handleSlideChangeBefore).call(t,this)},this.renderImages(a,h)),e.createElement(q,{className:"block-gallery__captions",ref:function(e){n.captions=e}},this.renderCaptions(a)))))}}],[{key:"propTypes",get:function(){return{lessonId:x.a.any,blockId:x.a.any,items:x.a.array.isRequired,settings:x.a.object.isRequired,type:x.a.string,editable:x.a.bool,onStep:x.a.func}}},{key:"defaultProps",get:function(){return{type:"carousel",editable:!1,lessonId:"",blockId:"",items:[],onStep:Function.prototype}}}]),n}(e.Component),W=function(t){function n(){return Object(f.a)(this,n),Object(h.a)(this,Object(m.a)(n).apply(this,arguments))}return Object(g.a)(n,t),Object(p.a)(n,[{key:"handleCaptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(C.a)(Object(O.g)({lessonId:r,blockId:i,itemId:e,payload:{caption:t}}))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.editable,a=n.isLearner,s=n.items,l=n.labels.imageGalleryGroup,c=n.settings,u=n.width,f=c.paddingTop,p=c.paddingBottom,h=c.backgroundColor,m=c.entranceAnimation,g=c.zoomOnClick,v=_()("block-gallery block-gallery--".concat(function(e){switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}}(u)),{"block-gallery--no-animation":!m}),y={backgroundColor:Object(N.a)("",h),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*p,"px")};return e.createElement("div",{className:v,style:y},e.createElement("div",{className:"block-gallery__container"},e.createElement("div",{"aria-label":l,className:"block-gallery__row",role:j.a},e.createElement(R.a,{animateBlockEntrance:r,animateIn:"fadeIn",className:"block-gallery__col",isLearner:a,siblingDelay:.25},i()(s).call(s,function(n){var i,a=n.id,s=n.caption,l=E()(n,"media.image.alt")||Object(P.e)(s)||"",c="image-".concat(a),u="imageCrop-".concat(a),f=E()(n,"media.image.key"),p=Object(F.a)(E()(n,"media.image"));return e.createElement("div",{key:a,className:r?"":"block-gallery__col"},e.createElement("figure",{className:"block-gallery__figure"},f&&e.createElement("div",{className:"block-gallery__image",style:{backgroundImage:"url('".concat(p,"')")},tabIndex:I.a,onKeyDown:function(e){t[c].handleControlledKeyDown(e)},ref:function(e){t[u]=e}},e.createElement(A.a,{src:p,alt:l,disableZoom:!g,allowTabNavigation:!1,ref:function(e){t[c]=e},isControlled:!o,onUnzoom:function(){t[u].focus()},onZoom:function(){t[u].focus()}})),e.createElement(D.a,{className:"block-gallery__caption brand--body brand--linkColor",value:s,placeholder:"Add a caption",onChange:d()(i=t.handleCaptionChange).call(i,t,a),component:"figcaption",editable:o})))})))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:x.a.bool.isRequired,lessonId:x.a.any,blockId:x.a.any,isLearner:x.a.bool.isRequired,items:x.a.array.isRequired,settings:x.a.object.isRequired,width:x.a.number,editable:x.a.bool}}},{key:"defaultProps",get:function(){return{blockId:"",editable:!1,items:[],lessonId:"",width:2}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(752),a=n(173),s=n.n(a);function l(e,t){var n,r=(n=e,!isNaN(parseFloat(n))&&isFinite(n)?parseFloat(n):"px"===n.slice(-2)?parseFloat(n.slice(0,-2)):void 0);if("number"==typeof r)return r;var i=function(e){if("%"===e.slice(-1))return parseFloat(e.slice(0,-1))/100}(e);return"number"==typeof i?i*t:void 0}var c={above:"above",inside:"inside",below:"below",invisible:"invisible"};var u="<Waypoint> expected to receive a single React element child.\n\nSee https://goo.gl/LrBNgw for more info.";function d(e){if(e)try{i.a.Children.only(e)}catch(e){throw new Error(u)}}function f(e){return"string"==typeof e.type}var p="<Waypoint> needs a DOM element to compute boundaries. The child you passed is neither a DOM element (e.g. <div>) nor does it use the innerRef prop.\n\nSee https://goo.gl/LrBNgw for more info.";var h=void 0,m=[];function g(e){m.push(e),h||(h=setTimeout(function(){h=null;for(var e=void 0;e=m.shift();)e()},0));var t=!0;return function(){return function(){if(t){t=!1;var n=m.indexOf(e);-1!==n&&(m.splice(n,1),!m.length&&h&&(clearTimeout(h),h=null))}}}()}var v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var y={topOffset:"0px",bottomOffset:"0px",horizontal:!1,onEnter:function(){return function(){}}(),onLeave:function(){return function(){}}(),onPositionChange:function(){return function(){}}(),fireOnRapidScroll:!0},b=void 0!==i.a.PureComponent?i.a.PureComponent:i.a.Component,_=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.refElement=function(e){return t._ref=e},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,b),v(n,[{key:"componentWillMount",value:function(){return function(){d(this.props.children)}}()},{key:"componentDidMount",value:function(){return function(){var e=this;n.getWindow()&&(this.cancelOnNextTick=g(function(){e.cancelOnNextTick=null,function(e,t){if(e&&!f(e)&&!t)throw new Error(p)}(e.props.children,e._ref),e._handleScroll=e._handleScroll.bind(e),e.scrollableAncestor=e._findScrollableAncestor(),e.scrollEventListenerUnsubscribe=Object(o.a)(e.scrollableAncestor,"scroll",e._handleScroll,{passive:!0}),e.resizeEventListenerUnsubscribe=Object(o.a)(window,"resize",e._handleScroll,{passive:!0}),e._handleScroll(null)}))}}()},{key:"componentWillReceiveProps",value:function(){return function(e){d(e.children)}}()},{key:"componentDidUpdate",value:function(){return function(){var e=this;n.getWindow()&&this.scrollableAncestor&&(this.cancelOnNextTick||(this.cancelOnNextTick=g(function(){e.cancelOnNextTick=null,e._handleScroll(null)})))}}()},{key:"componentWillUnmount",value:function(){return function(){n.getWindow()&&(this.scrollEventListenerUnsubscribe&&this.scrollEventListenerUnsubscribe(),this.resizeEventListenerUnsubscribe&&this.resizeEventListenerUnsubscribe(),this.cancelOnNextTick&&this.cancelOnNextTick())}}()},{key:"_findScrollableAncestor",value:function(){return function(){var t=this.props,n=t.horizontal,r=t.scrollableAncestor;if(r)return function(t){return"window"===t?e.window:t}(r);for(var i=this._ref;i.parentNode;){if((i=i.parentNode)===document.body)return window;var o=window.getComputedStyle(i),a=(n?o.getPropertyValue("overflow-x"):o.getPropertyValue("overflow-y"))||o.getPropertyValue("overflow");if("auto"===a||"scroll"===a)return i}return window}}()},{key:"_handleScroll",value:function(){return function(e){if(this._ref){var t=this._getBounds(),n=function(e){return e.viewportBottom-e.viewportTop==0?c.invisible:e.viewportTop<=e.waypointTop&&e.waypointTop<=e.viewportBottom?c.inside:e.viewportTop<=e.waypointBottom&&e.waypointBottom<=e.viewportBottom?c.inside:e.waypointTop<=e.viewportTop&&e.viewportBottom<=e.waypointBottom?c.inside:e.viewportBottom<e.waypointTop?c.below:e.waypointTop<e.viewportTop?c.above:c.invisible}(t),r=this._previousPosition;if(this._previousPosition=n,r!==n){var i={currentPosition:n,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom};this.props.onPositionChange.call(this,i),n===c.inside?this.props.onEnter.call(this,i):r===c.inside&&this.props.onLeave.call(this,i);var o=r===c.below&&n===c.above,a=r===c.above&&n===c.below;this.props.fireOnRapidScroll&&(o||a)&&(this.props.onEnter.call(this,{currentPosition:c.inside,previousPosition:r,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}),this.props.onLeave.call(this,{currentPosition:n,previousPosition:c.inside,event:e,waypointTop:t.waypointTop,waypointBottom:t.waypointBottom,viewportTop:t.viewportTop,viewportBottom:t.viewportBottom}))}}}}()},{key:"_getBounds",value:function(){return function(){var e=this.props.horizontal,t=this._ref.getBoundingClientRect(),n=t.left,r=t.top,i=t.right,o=t.bottom,a=e?n:r,s=e?i:o,c=void 0,u=void 0;this.scrollableAncestor===window?(c=e?window.innerWidth:window.innerHeight,u=0):(c=e?this.scrollableAncestor.offsetWidth:this.scrollableAncestor.offsetHeight,u=e?this.scrollableAncestor.getBoundingClientRect().left:this.scrollableAncestor.getBoundingClientRect().top);var d=this.props,f=d.bottomOffset;return{waypointTop:a,waypointBottom:s,viewportTop:u+l(d.topOffset,c),viewportBottom:u+c-l(f,c)}}}()},{key:"render",value:function(){return function(){var e=this,t=this.props.children;if(!t)return i.a.createElement("span",{ref:this.refElement,style:{fontSize:0}});if(f(t)){var n=function(n){e.refElement(n),t.ref&&t.ref(n)};return i.a.cloneElement(t,{ref:n})}return i.a.cloneElement(t,{innerRef:this.refElement})}}()}]),n}();_.propTypes={children:s.a.node,debug:s.a.bool,onEnter:s.a.func,onLeave:s.a.func,onPositionChange:s.a.func,fireOnRapidScroll:s.a.bool,scrollableAncestor:s.a.any,horizontal:s.a.bool,topOffset:s.a.oneOfType([s.a.string,s.a.number]),bottomOffset:s.a.oneOfType([s.a.string,s.a.number])},_.above=c.above,_.below=c.below,_.inside=c.inside,_.invisible=c.invisible,_.getWindow=function(){if("undefined"!=typeof window)return window},_.defaultProps=y,_.displayName="Waypoint",t.a=_}).call(this,n(69))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t){if(!i(e))throw new TypeError("merge: Binary function required for first argument");if(!t||!i(t.merge))throw new TypeError("merge: Pair required for second argument");return t.merge(e)})},function(e,t,n){var r=n(63),i=n(219),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(428)("keys"),i=n(429);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(188),i=n(117),o=n(307);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(110)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(219),i=n(110)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){"use strict";var r=n(188),i=n(308),o=n(434),a=n(203),s=n(626),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(63);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){"use strict";var r=n(74),i=n(431),o=n(24),a=n(189),s=n(341),l=n(438),c=n(310),u=n(97),d=n(63),f=n(499),p=n(243),h=n(630);e.exports=function(e,t,n,m,g){var v=r[e],y=v&&v.prototype,b=v,_=m?"set":"add",w={},E=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof v||!(g||y.forEach&&!d(function(){(new v).entries().next()}))))b=n.getConstructor(t,e,m,_),s.REQUIRED=!0;else if(i(e,!0)){var k=new b,x=k[_](g?{}:-0,1)!=k,S=d(function(){k.has(1)}),T=f(function(e){new v(e)}),C=!g&&d(function(){for(var e=new v,t=5;t--;)e[_](t,t);return!e.has(-0)});T||((b=t(function(t,n){c(t,b,e);var r=h(new v,t,b);return null!=n&&l(n,r[_],r,m),r})).prototype=y,y.constructor=b),(S||C)&&(E("delete"),E("has"),m&&E("get")),(C||x)&&E(_),g&&y.clear&&delete y.clear}return w[e]=b,o({global:!0,forced:b!=v},w),p(b,e),g||n.setStrong(b,e,m),b}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){"use strict";e.exports=n(336)||!n(63)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(74)[e]})},function(e,t,n){"use strict";var r=n(102);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(204),i=n(202);e.exports=function(e,t,n){var o,a,s=String(i(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):o:n?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}},function(e,t,n){var r=n(219),i=n(639);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},function(e,t,n){"use strict";var r=n(163),i=n(189),o=n(63),a=n(110),s=n(639),l=a("species"),c=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,d){var f=a(e),p=!o(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),h=p&&!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[f](""),!t});if(!p||!h||"replace"===e&&!c||"split"===e&&!u){var m=/./[f],g=n(f,""[e],function(e,t,n,r,i){return t.exec===s?p&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=g[0],y=g[1];i(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[f],"sham",!0)}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(137),i=n(344),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(164);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(644),i=n(645),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports={}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(205),i=n(816),o=n(221),a=n(375),s=n(519),l=n(817),c=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,u,d){var f,p,h,m,g,v,y,b=a(t,n,u?2:1);if(d)f=e;else{if("function"!=typeof(p=s(e)))throw TypeError("Target is not iterable");if(i(p)){for(h=0,m=o(e.length);m>h;h++)if((g=u?b(r(y=e[h])[0],y[1]):b(e[h]))&&g instanceof c)return g;return new c(!1)}f=p.call(e)}for(v=f.next;!(y=v.call(f)).done;)if("object"==typeof(g=l(f,b,y.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},function(e,t,n){var r=n(283),i=n(347),o=n(134)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick(function(){e.apply(null,o)})}}:e.exports=t.nextTick}).call(this,n(284))},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(664);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="atrule",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.append=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.prototype.append).call.apply(t,[this].concat(r))},t.prototype.prepend=function(){var t;this.nodes||(this.nodes=[]);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.prototype.prepend).call.apply(t,[this].concat(r))},t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(664)),o=a(n(850));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="rule",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectors",get:function(){return o.default.comma(this.selector)},set:function(e){var t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}]),t}(i.default);t.default=s,e.exports=t.default},function(e,t,n){var r=n(137),i=n(134),o=n(654),a=i("species");e.exports=function(e){return o>=51||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t){e.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(286);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){var r=n(34),i=n(529),o=n(60),a=n(674);e.exports=r(function(e,t){return o(e+1,function(){var n=arguments[e];if(null!=n&&i(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(a(n)+' does not have a method named "'+t+'"')})})},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){var r=n(383),i=n(316),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(458)),o=s(n(888)),a=s(n(684));function s(e){return e&&e.__esModule?e:{default:e}}var l={},c=void 0;t.default={unmount:function(){l={}},register:function(e,t){l[e]=t},unregister:function(e){delete l[e]},get:function(e){return l[e]||document.getElementById(e)||document.getElementsByName(e)[0]||document.getElementsByClassName(e)[0]},setActiveLink:function(e){return c=e},getActiveLink:function(){return c},scrollTo:function(e,t){var n=this.get(e);if(n){var s=(t=r({},t,{absolute:!1})).containerId,l=t.container,c=void 0;c=s?document.getElementById(s):l&&l.nodeType?l:document,a.default.registered.begin&&a.default.registered.begin(e,n),t.absolute=!0;var u=i.default.scrollOffset(c,n)+(t.offset||0);if(!t.smooth)return c===document?window.scrollTo(0,u):c.scrollTop=u,void(a.default.registered.end&&a.default.registered.end(e,n));o.default.animateTopScroll(u,t,e,n)}else console.warn("target Element not found")}}},function(e,t,n){e.exports=n(1819)()},function(e,t){
/** @license ISC License (c) copyright 2018 original and current authors */
e.exports={alt:"fantasy-land/alt",bimap:"fantasy-land/bimap",chain:"fantasy-land/chain",compose:"fantasy-land/compose",concat:"fantasy-land/concat",contramap:"fantasy-land/contramap",empty:"fantasy-land/empty",equals:"fantasy-land/equals",extend:"fantasy-land/extend",filter:"fantasy-land/filter",id:"fantasy-land/id",map:"fantasy-land/map",of:"fantasy-land/of",promap:"fantasy-land/promap",reduce:"fantasy-land/reduce",zero:"fantasy-land/zero"}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(288);e.exports=function(e,t){return r(t[e])||r(t["@@implements"])&&!!t["@@implements"](e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t,n){var r=n(1908),i=n(1909),o=n(1910),a=n(1911),s=n(1912);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(691);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(357)(Object,"create");e.exports=r},function(e,t,n){var r=n(1930);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(920),i=n(921);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(885),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(223)(e))},function(e,t,n){var r=n(1951),i=n(692),o=n(1952),a=n(1953),s=n(1954),l=n(383),c=n(919),u=c(r),d=c(i),f=c(o),p=c(a),h=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(955);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(532),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){"use strict";t.__esModule=!0,t.canUseDOM=t.slidesOnLeft=t.slidesOnRight=t.siblingDirection=t.getTotalSlides=t.getPostClones=t.getPreClones=t.getTrackLeft=t.getTrackAnimateCSS=t.getTrackCSS=t.checkSpecKeys=t.getSlideCount=t.checkNavigable=t.getNavigableIndexes=t.swipeEnd=t.swipeMove=t.swipeStart=t.keyHandler=t.changeSlide=t.slideHandler=t.initializedState=t.extractObject=t.canGoNext=t.getSwipeDirection=t.getHeight=t.getWidth=t.lazySlidesOnRight=t.lazySlidesOnLeft=t.lazyEndIndex=t.lazyStartIndex=t.getRequiredLazySlides=t.getOnDemandLazySlides=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n(0)),o=a(n(103));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.getOnDemandLazySlides=function(e){for(var t=[],n=l(e),r=c(e),i=n;i<r;i++)e.lazyLoadedList.indexOf(i)<0&&t.push(i);return t},l=(t.getRequiredLazySlides=function(e){for(var t=[],n=l(e),r=c(e),i=n;i<r;i++)t.push(i);return t},t.lazyStartIndex=function(e){return e.currentSlide-u(e)}),c=t.lazyEndIndex=function(e){return e.currentSlide+d(e)},u=t.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},d=t.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},f=t.getWidth=function(e){return e&&e.offsetWidth||0},p=t.getHeight=function(e){return e&&e.offsetHeight||0},h=t.getSwipeDirection=function(e){var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(i=Math.round(180*r/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?"left":i>=135&&i<=225?"right":!0===o?i>=35&&i<=135?"up":"down":"vertical"},m=t.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1?t=!1:(e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1)),t},g=(t.extractObject=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},t.initializedState=function(e){var t=i.default.Children.count(e.children),n=Math.ceil(f(o.default.findDOMNode(e.listRef))),r=Math.ceil(f(o.default.findDOMNode(e.trackRef))),a=void 0;if(e.vertical)a=n;else{var l=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(l*=n/100),a=Math.ceil((n-l)/e.slidesToShow)}var c=o.default.findDOMNode(e.listRef)&&p(o.default.findDOMNode(e.listRef).querySelector('[data-index="0"]')),u=c*e.slidesToShow,d=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(d=t-1-e.initialSlide);var h=e.lazyLoadedList||[],m=s({currentSlide:d,lazyLoadedList:h},e);h.concat(m);var g={slideCount:t,slideWidth:a,listWidth:n,trackWidth:r,currentSlide:d,slideHeight:c,listHeight:u,lazyLoadedList:h};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g},t.slideHandler=function(e){var t=e.waitForAnimate,n=e.animating,i=e.fade,o=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoadedList,u=e.lazyLoad,d=e.currentSlide,f=e.centerMode,p=e.slidesToScroll,h=e.slidesToShow,g=e.useCSS;if(t&&n)return{};var v=a,y=void 0,b=void 0,k=void 0,x={},S={};if(i){if(!o&&(a<0||a>=l))return{};a<0?v=a+l:a>=l&&(v=a-l),u&&c.indexOf(v)<0&&c.push(v),x={animating:!0,currentSlide:v,lazyLoadedList:c},S={animating:!1}}else y=v,v<0?(y=v+l,o?l%p!=0&&(y=l-l%p):y=0):!m(e)&&v>d?v=y=d:f&&v>=l?(v=o?l:l-1,y=o?0:l-1):v>=l&&(y=v-l,o?l%p!=0&&(y=0):y=l-h),b=E(r({},e,{slideIndex:v})),k=E(r({},e,{slideIndex:y})),o||(b===k&&(v=y),b=k),u&&c.concat(s(r({},e,{currentSlide:v}))),g?(x={animating:!0,currentSlide:y,trackStyle:w(r({},e,{left:b})),lazyLoadedList:c},S={animating:!1,currentSlide:y,trackStyle:_(r({},e,{left:k})),swipeLeft:null}):x={currentSlide:y,trackStyle:_(r({},e,{left:k})),lazyLoadedList:c};return{state:x,nextState:S}},t.changeSlide=function(e,t){var n,i,o,a,s=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,u=e.currentSlide,d=e.lazyLoad,f=e.infinite;if(n=c%s!=0?0:(c-u)%s,"previous"===t.message)a=u-(o=0===n?s:l-n),d&&!f&&(a=-1===(i=u-o)?c-1:i);else if("next"===t.message)a=u+(o=0===n?s:n),d&&!f&&(a=(u+s)%c+n);else if("dots"===t.message){if((a=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((a=t.index)===t.currentSlide)return null;if(f){var p=T(r({},e,{targetSlide:a}));a>t.currentSlide&&"left"===p?a-=c:a<t.currentSlide&&"right"===p&&(a+=c)}}else if("index"===t.message&&(a=Number(t.index))===t.currentSlide)return null;return a},t.keyHandler=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""},t.swipeStart=function(e,t,n){return"IMG"===e.target.tagName&&e.preventDefault(),!t||!n&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},t.swipeMove=function(e,t){var n=t.scrolling,i=t.animating,o=t.vertical,a=t.swipeToSlide,s=t.verticalSwiping,l=t.rtl,c=t.currentSlide,u=t.edgeFriction,d=t.edgeDragged,f=t.onEdge,p=t.swiped,g=t.swiping,v=t.slideCount,y=t.slidesToScroll,b=t.infinite,w=t.touchObject,k=t.swipeEvent,x=t.listHeight,S=t.listWidth;if(!n){if(i)return e.preventDefault();o&&a&&s&&e.preventDefault();var T=void 0,C={},O=E(t);w.curX=e.touches?e.touches[0].pageX:e.clientX,w.curY=e.touches?e.touches[0].pageY:e.clientY,w.swipeLength=Math.round(Math.sqrt(Math.pow(w.curX-w.startX,2)));var A=Math.round(Math.sqrt(Math.pow(w.curY-w.startY,2)));if(!s&&!g&&A>10)return{scrolling:!0};s&&(w.swipeLength=A);var N=(l?-1:1)*(w.curX>w.startX?1:-1);s&&(N=w.curY>w.startY?1:-1);var I=Math.ceil(v/y),M=h(t.touchObject,s),j=w.swipeLength;return b||(0===c&&"right"===M||c+1>=I&&"left"===M||!m(t)&&"left"===M)&&(j=w.swipeLength*u,!1===d&&f&&(f(M),C.edgeDragged=!0)),!p&&k&&(k(M),C.swiped=!0),T=o?O+j*(x/S)*N:l?O-j*N:O+j*N,s&&(T=O+j*N),C=r({},C,{touchObject:w,swipeLeft:T,trackStyle:_(r({},t,{left:T}))}),Math.abs(w.curX-w.startX)<.8*Math.abs(w.curY-w.startY)?C:(w.swipeLength>10&&(C.swiping=!0,e.preventDefault()),C)}},t.swipeEnd=function(e,t){var n=t.dragging,i=t.swipe,o=t.touchObject,a=t.listWidth,s=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,u=t.currentSlide,d=t.swipeToSlide,f=t.scrolling,p=t.onSwipe;if(!n)return i&&e.preventDefault(),{};var m=l?c/s:a/s,g=h(o,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(f)return b;if(!o.swipeLength)return b;if(o.swipeLength>m){e.preventDefault(),p&&p(g);var _=void 0,k=void 0;switch(g){case"left":case"up":k=u+y(t),_=d?v(t,k):k,b.currentDirection=0;break;case"right":case"down":k=u-y(t),_=d?v(t,k):k,b.currentDirection=1;break;default:_=u}b.triggerSlideHandler=_}else{var x=E(t);b.trackStyle=w(r({},t,{left:x}))}return b},t.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,i=[];n<t;)i.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return i}),v=t.checkNavigable=function(e,t){var n=g(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var i in n){if(t<n[i]){t=r;break}r=n[i]}return t},y=t.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n=void 0,r=o.default.findDOMNode(e.listRef).querySelectorAll(".slick-slide");if(Array.from(r).every(function(r){if(e.vertical){if(r.offsetTop+p(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+f(r)/2>-1*e.swipeLeft)return n=r,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},b=t.checkSpecKeys=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},_=t.getTrackCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var t=void 0,n=void 0,i=e.slideCount+2*e.slidesToShow;e.vertical?n=i*e.slideHeight:t=S(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=r({},o,{WebkitTransform:a,transform:s,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},w=t.getTrackAnimateCSS=function(e){b(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=_(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},E=t.getTrackLeft=function(e){if(e.unslick)return 0;b(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,i=e.trackRef,a=e.infinite,s=e.centerMode,l=e.slideCount,c=e.slidesToShow,u=e.slidesToScroll,d=e.slideWidth,f=e.listWidth,p=e.variableWidth,h=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var v=0;if(a?(v=-k(e),l%u!=0&&r+u>l&&(v=-(r>l?c-(r-l):l%u)),s&&(v+=parseInt(c/2))):(l%u!=0&&r+u>l&&(v=c-l%u),s&&(v=parseInt(c/2))),t=g?r*h*-1+v*h:r*d*-1+v*d,!0===p){var y,_=o.default.findDOMNode(i);if(y=r+k(e),t=(n=_&&_.childNodes[y])?-1*n.offsetLeft:0,!0===s){y=a?r+k(e):r,n=_&&_.children[y],t=0;for(var w=0;w<y;w++)t-=_&&_.children[w]&&_.children[w].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(f-n.offsetWidth)/2}}return t},k=t.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},x=t.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},S=t.getTotalSlides=function(e){return 1===e.slideCount?1:k(e)+e.slideCount+x(e)},T=t.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+C(e)?"left":"right":e.targetSlide<e.currentSlide-O(e)?"right":"left"},C=t.slidesOnRight=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r&&t%2==0&&(o+=1),o}return r?0:t-1},O=t.slidesOnLeft=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,i=e.centerPadding;if(n){var o=(t-1)/2+1;return parseInt(i)>0&&(o+=1),r||t%2!=0||(o+=1),o}return r?t-1:0};t.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={errors:{controlled:"A component is changing a react-medium-image-zoom component from a controlled component to an uncontrolled one. ImageZoom elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled image zoom element for the lifetime of the component.",uncontrolled:"A component is changing a react-medium-image-zoom component from an uncontrolled component to a controlled one. ImageZoom elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled image zoom element for the lifetime of the component."},styles:{image:{cursor:"zoom-in"},zoomImage:{cursor:"zoom-out",position:"absolute",transition:"transform 300ms",transform:"translate3d(0, 0, 0) scale(1)",transformOrigin:"center center",willChange:"transform, top, left"},zoomContainer:{position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:999},overlay:{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:"#fff",opacity:0,transition:"opacity 300ms"}},transitionDuration:300};t.default=r},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(378),i=n(286);e.exports=function(e){return r(e)||!!e&&i("concat",e)}},function(e,t,n){"use strict";var r,i={noop:function(){},uid:(r=0,function(){return r++}),isNullOrUndef:function(e){return null==e},isArray:Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return i.valueOrDefault(i.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var o,a,s;if(i.isArray(e))if(a=e.length,r)for(o=a-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<a;o++)t.call(n,e[o],o);else if(i.isObject(e))for(a=(s=Object.keys(e)).length,o=0;o<a;o++)t.call(n,e[s[o]],s[o])},arrayEquals:function(e,t){var n,r,o,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],a=t[n],o instanceof Array&&a instanceof Array){if(!i.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},clone:function(e){if(i.isArray(e))return e.map(i.clone);if(i.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=i.clone(e[n[o]]);return t}return e},_merger:function(e,t,n,r){var o=t[e],a=n[e];i.isObject(o)&&i.isObject(a)?i.merge(o,a,r):t[e]=i.clone(a)},_mergerIf:function(e,t,n){var r=t[e],o=n[e];i.isObject(r)&&i.isObject(o)?i.mergeIf(r,o):t.hasOwnProperty(e)||(t[e]=i.clone(o))},merge:function(e,t,n){var r,o,a,s,l,c=i.isArray(t)?t:[t],u=c.length;if(!i.isObject(e))return e;for(r=(n=n||{}).merger||i._merger,o=0;o<u;++o)if(t=c[o],i.isObject(t))for(l=0,s=(a=Object.keys(t)).length;l<s;++l)r(a[l],e,t,n);return e},mergeIf:function(e,t){return i.merge(e,t,{merger:i._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,r=arguments.length;n<r;++n)i.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=i.inherits,e&&i.extend(n.prototype,e),n.__super__=t.prototype,n}};e.exports=i,i.callCallback=i.callback,i.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},i.getValueOrDefault=i.valueOrDefault,i.getValueAtIndexOrDefault=i.valueAtIndexOrDefault},function(e,t,n){var r=n(2221),i=n(2222),o=n(2223),a=n(2224),s=n(2225);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(1105);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(291).Symbol;e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(359)(Object,"create");e.exports=r},function(e,t,n){var r=n(2245);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(2265),i=n(2272),o=n(711);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(462),i=n(463),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(562),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){var r=n(290);e.exports=function(e){return null!=e&&"object"===r(e)&&!0===e["@@functional/placeholder"]}},function(e,t){e.exports=function(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,o){return t.apply(this,arguments)};case 6:return function(e,n,r,i,o,a){return t.apply(this,arguments)};case 7:return function(e,n,r,i,o,a,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,o,a,s,l){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(206),i=n(293),o=n(566),a=n(2371),s=!{toString:null}.propertyIsEnumerable("toString"),l=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),u=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},d=i("function"!=typeof r||c?function(e){if(Object(e)!==e)return[];var t,n,r=[],i=c&&a(e);for(t in e)!o(t,e)||i&&"length"===t||(r[r.length]=t);if(s)for(n=l.length-1;n>=0;)o(t=l[n],e)&&!u(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:r(e)});e.exports=d},function(e,t,n){var r=n(666),i=n(87),o=n(255);e.exports=i(r("tail",o(1,1/0)))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Export":n,o=t.desc,a=void 0===o?"An arrow pointing right":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"8":c,d=t.className,f=t.focusable,p=void 0===f?"false":f,h=t.decorative;return e.createElement("svg",{viewBox:"0 0 16 8",width:l,height:u,className:i()("i",d),focusable:p,"aria-hidden":h?"true":"false"},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#444",fillRule:"evenodd",d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1"}))}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=n.n(o);t.a=function(e){var t=e.title,n=void 0===t?"Close":t,r=e.desc,o=void 0===r?"Image of an X":r,s=e.width,l=void 0===s?"14":s,c=e.height,u=void 0===c?"14":c,d=e.className,f=e.focusable,p=void 0===f?"false":f;return a.a.createElement("svg",{viewBox:"0 0 14 14",width:l,height:u,className:i()("i i-close",d),focusable:p},a.a.createElement("title",null,n),a.a.createElement("desc",null,o),a.a.createElement("g",{transform:"translate(-18 -659)"},a.a.createElement("path",{d:"M31.7,659.3 C31.3,658.9 30.7,658.9 30.3,659.3 L25,664.6 L19.7,659.3 C19.3,658.9 18.7,658.9 18.3,659.3 C17.9,659.7 17.9,660.3 18.3,660.7 L23.6,666 L18.3,671.3 C17.9,671.7 17.9,672.3 18.3,672.7 C18.5,672.9 18.7,673 19,673 C19.3,673 19.5,672.9 19.7,672.7 L25,667.4 L30.3,672.7 C30.5,672.9 30.8,673 31,673 C31.2,673 31.5,672.9 31.7,672.7 C32.1,672.3 32.1,671.7 31.7,671.3 L26.4,666 L31.7,660.7 C32.1,660.3 32.1,659.7 31.7,659.3"})))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){e.exports=n(1688)},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(226),i=n.n(r);function o(e){if(i()(e))return e}},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}n.d(t,"a",function(){return r})},function(e,t,n){var r=n(34),i=n(861);e.exports=r(function(e,t){if(!i(e)||!i(t))throw new TypeError("Both arguments to range must be numbers");for(var n=[],r=e;r<t;)n.push(r),r+=1;return n})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(467),i=n.n(r),o=n(1144),a=n.n(o);function s(e){if(a()(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return i()(e)}},function(e,t){e.exports=function(e){return function(t){return function(n){n&&"function"==typeof n.fork?n.fork(e.dispatch,e.dispatch):t(n)}}}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i=n(866);var o,a=(o="function",function(e){return(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)===o;var t});t.default=function(e){return function(t){var n=t.dispatch,o=function(t){return t&&a(t[e])};return function(t){return function(a){return(0,i.isFSA)(a)?o(a.payload)?n(r({},a,{payload:a.payload[e]()})):t(a):o(a)?n(a[e]()):t(a)}}}}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.dispatch;return function(e){return function(n){return i.isFSA(n)?o(n.payload)?n.payload.then(function(e){return t(r({},n,{payload:e}))},function(e){return t(r({},n,{payload:e,error:!0}))}):e(n):o(n)?n.then(t):e(n)}}};var i=n(866);function o(e){return e&&"function"==typeof e.then}e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}t.__esModule=!0;var i=r();i.withExtraArgument=r,t.default=i},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return null!=t&&t.constructor===e||t instanceof e})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n(468),i=n.n(r),o=n(215),a=n.n(o);function s(e){return(s="function"==typeof a.a&&"symbol"==typeof i.a?function(e){return typeof e}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":typeof e})(e)}function l(e){return(l="function"==typeof a.a&&"symbol"===s(i.a)?function(e){return s(e)}:function(e){return e&&"function"==typeof a.a&&e.constructor===a.a&&e!==a.a.prototype?"symbol":s(e)})(e)}},function(e,t,n){e.exports=n(1762)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(313)},function(e,t,n){var r=n(1834),i=n(1856),o=n(233);e.exports=function(e){var t=o.CancelToken.source(),n=i({cancelToken:t.token},e);return new r(function(e,r){return o(n).then(r).catch(e),t.cancel.bind(t)})}},function(e,t,n){var r=n(120);e.exports=r(function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){for(var n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var r=n(294),i=n.n(r),o=n(6),a=n.n(o),s=n(208),l=n.n(s),c=(n(51),n(255),n(230)),u=n.n(c),d=n(1199),f=n.n(d);n(32);function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",r=e?e.toString():"";return r.length>t?r.substr(0,t-1)+n:r}new RegExp(/^[0-9]+$/),a()(l()(""),i()(f.a,0),u()(""))},function(e,t,n){var r,i=n(34);e.exports=(r=function(e){return{value:e,"fantasy-land/map":function(){return this}}},i(function(e,t){return e(r)(t).value}))},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return N});var r=n(37),i=n.n(r),o=n(31),a=n(3),s=n.n(a),l=n(10),c=n(11),u=n(9),d=n(13),f=n(7),p=n(12),h=(n(2134),n(2)),m=n.n(h),g=n(6),v=n.n(g),y=n(161),b=n.n(y),_=n(39),w=n.n(_),E=n(94),k=n.n(E),x=n(51),S=n.n(x),T=n(8),C=n.n(T),O=n(88),A=n(1216),N=function(t){function n(e){var t,r,i,o,a,f,p,h;return Object(l.a)(this,n),(h=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={imageLoaded:!1},h.closeOpenedBubble=s()(t=h.closeOpenedBubble).call(t,Object(d.a)(h)),h.handleDocumentClick=s()(r=h.handleDocumentClick).call(r,Object(d.a)(h)),h.handleMarkerClick=s()(i=h.handleMarkerClick).call(i,Object(d.a)(h)),h.onItemSelected=s()(o=h.onItemSelected).call(o,Object(d.a)(h)),h.onNextClick=s()(a=h.onNextClick).call(a,Object(d.a)(h)),h.onPreviousClick=s()(f=h.onPreviousClick).call(f,Object(d.a)(h)),h.setImageLoaded=s()(p=h.setImageLoaded).call(p,Object(d.a)(h)),h}return Object(p.a)(n,t),Object(f.a)(n,null,[{key:"defaultProps",get:function(){return{onItemSelected:Function.prototype,onStep:Function.prototype}}}]),Object(f.a)(n,[{key:"componentDidMount",value:function(){this.loadImage(),this.props.readOnly||(document.addEventListener("click",this.handleDocumentClick),document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"componentWillUnmount",value:function(){this.props.readOnly||(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick))}},{key:"render",value:function(){var t=this.state.imageLoaded,n=this.props,r=n.isPreview,i=n.items,a=n.parentId,s=n.settings,l=(void 0===s?{}:s).mediaWidth,c=void 0===l?"2":l,u=r?i[0].id:this.state.selectedItemId,d=m()("view-labeled-graphic",{"view-labeled-graphic--small":"0"===c,"view-labeled-graphic--medium":"1"===c,"view-labeled-graphic--full":"2"===c});return e.createElement("div",{className:d},e.createElement(A.a,Object(o.a)({},this.props,{canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:a,selected:u})))}},{key:"setImageLoaded",value:function(){this.setState({imageLoaded:!0})}},{key:"loadImage",value:function(){var e=this,t=this.props.media.image,n=t.key,r=t.src,o=i()(this.setImageLoaded,1e3),a=new Image,s=n?Object(O.a)(t):r;a.src=s,a.onload=function(){clearTimeout(o),e.setImageLoaded()}}},{key:"getCanvasClassNames",value:function(){return m()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}},{key:"onNextClick",value:function(e){var t=this.props.items,n=C()("id",t[k()(e)]||t[0]);this.onItemSelected(n)}},{key:"onPreviousClick",value:function(e){var t=this.props.items,n=C()("id",t[b()(e)]||t[b()(S()(t))]);this.onItemSelected(n)}},{key:"onItemSelected",value:function(e){var t=this.props,n=t.editBlock,r=t.items,i=t.onItemSelected,o=t.onStep,a=this.state.selectedItemId;n&&window.matchMedia("(max-width: 768px)").matches||(a===e?this.closeOpenedBubble():(this.openBubble(e),v()(o,w()(function(t){return t.id===e}))(r)),i(e))}},{key:"handleDocumentClick",value:function(){document.querySelector(".figure-image__image--zoom")||this.closeOpenedBubble()}},{key:"handleMarkerClick",value:function(e){var t=e.detail,n=t.itemId,r=t.parentId,i=this.state.selectedItemId;r===this.props.parentId&&i===n||this.closeOpenedBubble()}},{key:"openBubble",value:function(e){if(window.matchMedia("(max-width: 767px)").matches){var t=document.querySelector(".page-wrap");t&&t.classList.add("page-wrap--noscroll")}this.setState({selectedItemId:e})}},{key:"closeOpenedBubble",value:function(){if(window.matchMedia("(max-width: 767px)").matches){var e=document.querySelector(".page-wrap");e&&e.classList.remove("page-wrap--noscroll")}this.setState({selectedItemId:void 0})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e>=t})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return R});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=(n(2155),n(160)),c=n.n(l),u=n(2),d=n.n(u),f=n(46),p=n.n(f),h=n(39),m=n.n(h),g=n(35),v=n.n(g),y=n(17),b=n.n(y),_=n(99),w=n.n(_),E=n(25),k=n.n(E),x=n(23),S=n.n(x),T=n(8),C=n.n(T),O=n(14),A=n.n(O),N=n(303),I=n.n(N),M=n(1229),j=n(1230),L=n(22),P=c()(v.a),D=function(e){var t=e.items,n=e.progress;return p()(function(e){return function(t){return w()(k()(!1,["items",t.id,"isViewed"],e))}}(n),t)},R=function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(o.a)(this,Object(a.a)(n).call(this,e))).state={items:I()(e.items)},t.pileRefs=[],t}return Object(s.a)(n,t),Object(i.a)(n,[{key:"componentWillReceiveProps",value:function(e){if(C()("retryAttempts",this.props.progress)!==C()("retryAttempts",e.progress))this.setState({items:I()(e.items)});else{var t=v()(function(e){return function(t){return S()(m()(A()("id",t.id)),b()(t))(e)}}(e.items),this.state.items);this.setState({items:t})}}},{key:"render",value:function(){var t,n=this,r=this.state.items,i=this.props,o=i.hasDarkBackground,a=i.id,s=i.labels,l=i.progress,c=i.onCardDrop,u=i.onReplay,f=i.piles,p=s.sortingLandmark,h=D({items:r,progress:l});return e.createElement("section",{"aria-label":p,className:(t=o,d()("sorting",{"sorting-dark-theme":t}))},e.createElement("div",{className:"sorting__row"},e.createElement(M.a,{count:r.length,id:a,items:h,labels:s,onReplay:u,progress:l,ref:function(e){n.deck=e}})),e.createElement("div",{className:"sorting__row"},P(function(t,r){return e.createElement(j.a,{deckTopCard:h&&h[0],id:t.id,key:t.id,lessonId:a,onCardDrop:c,onNavigateToNext:function(){return Object(L.f)({list:n.pileRefs,currentIndex:r})},onNavigateToPrevious:function(){return Object(L.g)({list:n.pileRefs,currentIndex:r})},ref:function(e){n.pileRefs[r]=e},title:t.title,onKeyDropStart:function(){n.deck.startKeyDrop()},onKeyDropEnd:function(){n.deck.endKeyDrop()}})},f)))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(4),i=n.n(r),o=n(3),a=n.n(o),s=n(37),l=n.n(s),c=n(10),u=n(11),d=n(9),f=n(7),p=n(12),h=(n(2157),n(2)),m=n.n(h),g=n(1),v=n.n(g),y=n(52),b=n(239),_=function(t){function n(e){var t;return Object(c.a)(this,n),(t=Object(u.a)(this,Object(d.a)(n).call(this,e))).state={isMoving:!1,failed:!1,position:{x:0,y:0},reset:!0},t}return Object(p.a)(n,t),Object(f.a)(n,null,[{key:"propTypes",get:function(){return{id:v.a.any.isRequired,isIncorrect:v.a.bool,title:v.a.string}}}]),Object(f.a)(n,[{key:"componentDidMount",value:function(){var e,t,n,r=this;l()(function(){r.setState({reset:!1})},300),Object(b.a)(this.card).draggable({inertia:!0,autoScroll:!1,snap:{targets:[function(e,t){return{x:e,y:t}}],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]}}).on("dragstart",this.onDragStartRef=a()(e=this.onStartSortAttempt).call(e,this)).on("dragmove",this.onDragMoveRef=a()(t=this.onDragMove).call(t,this)).on("dragend",this.onDragEndRef=a()(n=this.onEndSortAttempt).call(n,this))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.resetTimeout),Object(b.a)(this.card).off("dragstart",this.onDragStartRef).off("dragmove",this.onDragMoveRef).off("dragend",this.onDragEndRef)}},{key:"componentDidUpdate",value:function(e,t){var n=this;t.isMoving&&!this.state.isMoving&&(this.setState({failed:!0}),this.resetTimeout=l()(function(){n.setState({position:{x:0,y:0},failed:!1}),delete n.resetTimeout},300))}},{key:"cardStyle",value:function(){var e,t=this.state.position,n=t.x,r=t.y,o=i()(e="translate3d(".concat(n,"px, ")).call(e,r,"px, 0)");return{WebkitTransform:o,transform:o}}},{key:"render",value:function(){var t=this,n=this.state,r=n.isMoving,i=n.failed,o=n.reset,a=this.props,s=a.id,l=a.isDeckTopCard,c=a.title,u=m()("playing-card playing-card--draggable",{"playing-card--moving":r,"playing-card--fail":i,reset:o});return e.createElement("div",{"aria-hidden":!l,className:u,id:s,key:"card-".concat(s),ref:function(e){return t.card=e},style:this.cardStyle(),onMouseDown:function(e){e.preventDefault()}},e.createElement("div",{className:"playing-card__content brand--border"},e.createElement(y.a,{className:"playing-card__title brand--head",value:c}),e.createElement("div",{className:"playing-card__handle"}),e.createElement("div",{className:"playing-card__status brand--background"},e.createElement("i",{className:"icon icon-check"}))))}},{key:"onStartSortAttempt",value:function(){this.setState({isMoving:!0,failed:!1})}},{key:"onDragMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.position,i=r.x+t,o=r.y+n;this.setState({position:{x:i,y:o}})}},{key:"onEndSortAttempt",value:function(){this.setState({isMoving:!1})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(15),i=n.n(r),o=n(3),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(2161),n(2)),h=n.n(p),m=n(40),g=n.n(m),v=n(360),y=n.n(v),b=n(8),_=n.n(b),w=n(1),E=n.n(w),k=n(493),x=n(1232),S=n(56),T=function(t){function n(e){var t,r;return Object(s.a)(this,n),(r=Object(c.a)(this,Object(u.a)(n).call(this,e))).renderCard=a()(t=r.renderCard).call(t,Object(d.a)(r)),r}return Object(f.a)(n,t),Object(l.a)(n,[{key:"onEnterMarker",value:function(e,t,n){var r=n.previousPosition,i=this.props,o=i.id,a=i.onEnter;r===k.a.below&&a({id:o,payload:{activeIndex:e,itemId:t}})}},{key:"onMarkerLeave",value:function(e,t){var n=t.currentPosition,r=t.previousPosition,i=this.props,o=i.id,a=i.items,s=i.onLeave,l=e-1;if(n===k.a.below&&r===k.a.inside&&l>-1){var c=y()(l,a);c&&s({id:o,payload:{activeIndex:l,itemId:c.id}})}}},{key:"onFocus",value:function(e,t){var n=this.props,r=n.id;(0,n.onEnter)({id:r,payload:{activeIndex:e,itemId:t}})}},{key:"isActive",value:function(e){var t=this.props,n=t.progress;return!!t.isBlock||g()(_()("activeIndex",n),e)}},{key:"renderCard",value:function(t,n){var r,i,o,s=this.props,l=s.enableVideoPlaybackSpeed,c=s.labels,u=s.isBlock,d=s.isLearner,f=a()(r=this.onFocus).call(r,this,n,t.id),p=e.createElement(x.a,{enableVideoPlaybackSpeed:l,isActive:this.isActive(n),item:t,key:n,labels:c,loadMedia:!0,onFocus:f});return u&&d?e.createElement(S.a,{animateBlockEntrance:!0,animateIn:"fadeIn",className:"timeline__animate",key:n,isLearner:!0},p):u&&!d?p:e.createElement(k.a,{bottomOffset:"60%",key:n,onEnter:a()(i=this.onEnterMarker).call(i,this,n,t.id),onLeave:a()(o=this.onMarkerLeave).call(o,this,n),topOffset:"30%"},p)}},{key:"render",value:function(){var t=this.props,n=t.hasDarkBackground,r=t.isBlock,o=t.items,a=t.labels.timelineLandmark,s=h()("page__content-container",{timeline__block:r,"timeline-dark-theme":n});return e.createElement("section",{"aria-label":a,className:s},e.createElement("div",{className:"timeline__wrapper"},e.createElement("div",{className:"timeline"},e.createElement("div",{className:"timeline__container"},i()(o).call(o,this.renderCard)))))}}],[{key:"defaultProps",get:function(){return{onEnter:Function.prototype,onLeave:Function.prototype,progress:{}}}},{key:"propTypes",get:function(){return{enableVideoPlaybackSpeed:E.a.bool,id:E.a.any.isRequired,isBlock:E.a.bool,isLearner:E.a.bool,items:E.a.array.isRequired,labels:E.a.object.isRequired,onEnter:E.a.func.isRequired,onLeave:E.a.func.isRequired,progress:E.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2;var s=20,l=["top","right","bottom","left","width","height","size","weight"],c="undefined"!=typeof MutationObserver,u=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){o(s)}function c(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=b(0,0,0,0);function h(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+h(e["border-"+n+"-width"])},0)}function g(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=h(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=h(r.width),l=h(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(l+a)!==n&&(l-=m(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return b(i.left,i.top,s,l)}var v="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"==typeof e.getBBox};function y(e){return r?v(e)?function(e){var t=e.getBBox();return b(0,0,t.width,t.height)}(e):g(e):p}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=y(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),w=function(){return function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),d(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);d(this,{target:e,contentRect:c})}}(),E=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new w(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!=typeof WeakMap?new WeakMap:new n,x=function(){return function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new E(t,n,this);k.set(this,r)}}();["observe","unobserve","disconnect"].forEach(function(e){x.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}});var S=void 0!==i.ResizeObserver?i.ResizeObserver:x;t.a=S}).call(this,n(69))},function(e,t,n){"use strict";e.exports=n(2172)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(2318)),i=s(n(2319)),o=s(n(727)),a=s(n(2320));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var c=function(e,t,n){var s=l((0,o.default)(e),4),c=s[0],u=s[1],d=s[2],f=s[3],p=l((0,o.default)(t),4),h=p[0],m=p[1],g=p[2],v=p[3],y=(0,a.default)([(0,r.default)(c,h,n),(0,r.default)(u,m,n),(0,r.default)(d,g,n),(0,i.default)(f,v,n)]);return 1===f&&1===v?y.slice(0,7):y};t.default=c},function(e,t,n){e.exports=n(2321)},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(37),i=n.n(r),o=n(3),a=n.n(o),s=n(4),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(13),h=n(12),m=n(0),g=n.n(m),v=n(135),y=n.n(v),b=n(486),_=function(e){function t(){var e,n,r,i;Object(c.a)(this,t);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=Object(d.a)(this,(e=Object(f.a)(t)).call.apply(e,l()(n=[this]).call(n,s)))).wrapRef=Object(m.createRef)(),i.check=a()(r=i.check).call(r,Object(p.a)(i)),i.onScroll=y()(i.check,100),i}return Object(h.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){this.scrollableContainer=Object(b.a)(),this.scrollableContainer&&this.scrollableContainer.addEventListener("scroll",this.onScroll),this.props.isFirstLesson&&(this.checkTimeout=i()(this.check,1e3))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.checkTimeout),this.rmScrollListener()}},{key:"render",value:function(){return g.a.createElement("div",{ref:this.wrapRef},this.props.children)}},{key:"rmScrollListener",value:function(){this.scrollableContainer&&this.scrollableContainer.removeEventListener("scroll",this.onScroll)}},{key:"check",value:function(){var e=this.wrapRef;e&&Object(b.b)(e.current)&&(this.rmScrollListener(),this.props.onViewed())}}]),t}(m.Component)},function(e,t,n){"use strict";(function(e){var r=n(31),i=n(37),o=n.n(i),a=n(3),s=n.n(a),l=n(10),c=n(7),u=n(11),d=n(9),f=n(13),p=n(12),h=n(80),m=n(135),g=n.n(m),v=function(){for(var e=window;e.parent!=e;)e=e.parent;try{e.innerHeight}catch(e){return window}return e};t.a=function(t){return function(n){function i(e){var t,n;return Object(l.a)(this,i),(n=Object(u.a)(this,Object(d.a)(i).call(this,e))).state={orientation:{},navigationHidden:{}},n.applySafariLandscapeHack=s()(t=n.applySafariLandscapeHack).call(t,Object(f.a)(n)),n.root=v(),n}return Object(p.a)(i,n),Object(c.a)(i,[{key:"componentDidMount",value:function(){h.a.isIphoneSafari&&(this.applySafariLandscapeHack(),this.root.addEventListener("resize",this.resizeRef=g()(this.applySafariLandscapeHack,500)))}},{key:"componentWillUnmount",value:function(){this.root.removeEventListener("resize",this.resizeRef)}},{key:"applySafariLandscapeHack",value:function(){var e=this.root,t=window.matchMedia("(orientation: portrait)").matches?"portrait":"landscape",n=("landscape"===t?screen.width:screen.height)-e.innerHeight;t==this.state.orientation&&n==this.state.difference||("landscape"===t&&0!==n&&o()(function(){e.document.body.scrollTop=0},0),this.setState({orientation:t,difference:n}))}},{key:"render",value:function(){return e.createElement(t,Object(r.a)({},this.props,{applySafariLandscapeHack:"landscape"===this.state.orientation&&0!==this.state.difference,safariLandscapeHackOffset:this.state.difference}))}}]),i}(e.Component)}}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var r=n(66),i=n(0),o=n.n(i),a=n(233),s=n(483),l=n.n(s),c=n(1249),u=n.n(c),d=n(2),f=n.n(d),p=n(157),h=n(29),m=(n(2354),"".concat(Object(h.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/certificate-icon.svg")),g="".concat(Object(h.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/error_x.svg"),v="".concat(Object(h.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/loading_spinner.svg"),y="ok",b=function(e){var t=e.type,n=Object(i.useState)(function(){return l()("certdownload-")}),s=Object(r.a)(n,1)[0],c=Object(i.useState)(y),d=Object(r.a)(c,2),h=d[0],b=d[1],_=u()(h),w=Object(i.useRef)(),E="".concat(s,"-live"),k=f()("certificateDownload",{certificateDownloadContained:"contained"===t}),x=Object(i.useCallback)(function(){b("downloading")},[]);return Object(i.useEffect)(function(){return"downloading"===h&&"downloading"!==_&&Object(p.b)().then(function(){b(y)}).catch(function(e){Object(a.isCancel)(e)?b(y):b("error")}),function(){Object(p.c)()}},[_,h]),Object(i.useEffect)(function(){w.current&&("error"===h&&"error"!==_||h===y&&("error"===_||"downloading"===_))&&w.current.focus()},[_,h]),o.a.createElement("div",{className:k},o.a.createElement("div",{"aria-live":"polite",id:E,role:"status"},"downloading"===h&&o.a.createElement("span",{className:"certificateDownload__downloading"},o.a.createElement("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:v,width:"15"}),"Downloading..."),"error"===h&&o.a.createElement("span",{className:"certificateDownload__error"},o.a.createElement("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:g,width:"15"}),o.a.createElement("span",{className:"visually-hidden"},"Failed to download certificate"))),(h===y||"error"===h)&&o.a.createElement("button",{"aria-controls":E,className:"certificateDownload__btn",onClick:x,ref:w,type:"button"},h===y&&"contained"===t&&o.a.createElement("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:m,width:"15"}),h===y?"Download certificate":"Retry download"))},_=function(){return o.a.createElement(b,{type:"contained"})};t.b=Object(i.memo)(b)},function(e,t,n){"use strict";var r=n(1279),i=n.n(r);t.a=function(e){var t=e.authors,n=e.author,r=e.selectedAuthorId;return i()(t,{id:r||n})||{}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=n(0),c=n.n(l),u=n(1),d=n.n(u),f=function(e){function t(){return Object(r.a)(this,t),Object(o.a)(this,Object(a.a)(t).apply(this,arguments))}return Object(s.a)(t,e),Object(i.a)(t,[{key:"getColor",value:function(){var e=this.props,t=e.alpha,n=e.isSidebar;return"rgba(0,0,0,".concat((n?t+10:t)/100,")")}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.isPreview?"preview-overview-sidebar__overlay":"overview__side-panel-overlay";return c.a.createElement("div",{className:t||n,style:{backgroundColor:this.getColor()}})}}],[{key:"propTypes",get:function(){return{alpha:d.a.number,classes:d.a.string,isPreview:d.a.bool,isSidebar:d.a.bool}}}]),t}(l.Component)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(26),i=n.n(r),o=n(25),a=n.n(o),s=function(e,t){var n=i()(["lessons",t],e);return{percentComplete:a()(0,["percentComplete"],n),passedQuiz:i()(["passed"],n)}}},function(e,t,n){"use strict";var r=n(31),i=n(123),o=n(0),a=n.n(o),s=n(2),l=n.n(s),c=n(71),u=n(4),d=n.n(u),f=n(66),p=n(172),h=n.n(p),m=function(e){var t,n,r,i,s,l,u,p,m,v,y=e.borderWidth,b=e.checkClassName,_=e.className,w=e.desc,E=e.diameter,k=e.percentComplete,x=e.progressClassName,S=e.progressColor,T=e.title,C=e.trackClassName,O=e.trackColor,A=e.transitionTiming,N=Number(y),I=Number(E),M=Number(k),j=Number(A),L=I/2,P=L-N,D=(Math.PI*P*2).toFixed(3),R=D*(100-M)/100,F=g/I,B=function(e){return e/F},U=Object(o.useState)(h()()),q=Object(f.a)(U,1)[0],z="pc-t-".concat(q),H="pc-d-".concat(q),W={opacity:"0",visibility:"hidden"},$=d()(t="opacity ".concat(j,"s ")).call(t,j,"s"),Y={transition:"none"},V=Object(c.a)({},{stroke:O,transition:$},0===M?Y:{},100===M?W:{}),K=Object(c.a)({},{stroke:S,transition:d()(n=d()(r="stroke-dashoffset ".concat(j+.1,"s ease-out, fill ")).call(r,j,"s ")).call(n,j,"s")},0===M?Y:{},100===M?{fill:S}:{}),G=Object(c.a)({},{transition:$},100!==M?W:{},0===M?Y:{}),X=T||"".concat(M,"% complete");return a.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-labelledby":z,"aria-describedby":H,className:_,focusable:"false",height:I,role:"img",style:{display:"inline-block",verticalAlign:"middle"},width:I},a.a.createElement("title",{id:z},X),a.a.createElement("desc",{id:H},w),a.a.createElement("circle",{className:C,cx:L,cy:L,fill:"transparent",r:P,strokeWidth:N,style:V,transform:d()(i="rotate(-89.9 ".concat(L," ")).call(i,L,")")}),a.a.createElement("circle",{className:x,cx:L,cy:L,fill:"transparent",r:P,strokeDasharray:D,strokeDashoffset:R,strokeWidth:N,style:K,transform:d()(s="rotate(-89.9 ".concat(L," ")).call(s,L,")")}),a.a.createElement("path",{className:b,d:["M".concat(B(8.64)),"0L".concat(B(9.9)),d()(l="".concat(B(1.17),"L")).call(l,B(3.51)),"".concat(B(7.2),"L0"),d()(u="".concat(B(3.87),"L")).call(u,B(1.26)),d()(p="".concat(B(2.7),"l")).call(p,B(2.34)),d()(m="".concat(B(2.16),"L")).call(m,B(8.64)),"0z"].join(","),fill:"#fff",style:G,transform:d()(v="translate(".concat(B(5.5)," ")).call(v,B(7),")")}))};m.displayName="ProgressCircle";var g=21;m.defaultProps={borderWidth:2,desc:"A circle with a colored border representing one's progress.",diameter:g,percentComplete:0,progressColor:"#50abf1",trackColor:"rgba(49, 53, 55, 0.1)",transitionTiming:.3};var v=Object(o.memo)(m),y=n(47),b=function(e){var t=e.percentComplete,n=e.passedQuiz,o=Object(i.a)(e,["percentComplete","passedQuiz"]);if(void 0!==n&&!n)return a.a.createElement(y.G,{title:"Quiz failed"});var s=l()("brand--stroke brand--fill-opacity",{"brand--fill":100===t});return a.a.createElement(v,Object(r.a)({},o,{desc:"A circle with a colored border representing one's progress through a lesson.",progressClassName:s,percentComplete:t}))};a.a.createElement(b,null).type,t.a=Object(o.memo)(b)},function(e,t,n){"use strict";var r,i=n(5),o=n(297),a=n.n(o),s=n(18),l=n.n(s),c=n(179),u=n.n(c),d=n(19),f=n.n(d),p=n(104),h=n.n(p),m=n(28),g=n.n(m),v=n(48),y=n.n(v),b=n(153),_=n.n(b),w=n(267),E=n.n(w),k=n(23),x=n.n(k),S=n(32),T=n.n(S),C=n(20),O=n(181),A=n.n(O),N=n(393),I=n.n(N),M=A()(2,function(e){return I()(Object(C.error)(e),Object(C.action)(e))}),j=n(157);n.d(t,"b",function(){return U});var L=g()("rise/learningPathUpNext/"),P=L("FETCH_LP_UP_NEXT"),D=L("FETCH_LP_UP_NEXT_PENDING"),R=h()(_()("id")),F=y()(u()({nextCourse:T()(R,l()({})),learningPathComplete:R,isPending:!1,isSuccess:!0})),B=f()("isPending",!0),U=(t.a=Object(C.handle)({nextCourse:{},learningPathComplete:!1,isPending:!1,isSuccess:!1},(r={},Object(i.a)(r,P,Object(C.onSuccess)(F)),Object(i.a)(r,D,B),r)),E()([Object(C.action)(D),x()(a.a.fromPromise(j.e),M(P))]))},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return _});var r=n(4),i=n.n(r),o=n(396),a=n.n(o),s=n(179),l=n.n(s),c=n(104),u=n.n(c),d=n(62),f=n.n(d),p=n(41),h=n.n(p),m=n(29),g=n(419),v=function(e,t){var n,r;return i()(n=i()(r="".concat(Object(m.c)("ID_MAPPER_URI"),"/v1/avatars/")).call(r,encodeURIComponent(e),"?size=")).call(n,t)},y=function(e){return{large:v(e,"large"),medium:v(e,"medium"),micro:v(e,"micro"),mini:v(e,"mini"),small:v(e,"small")}},b=l()({features:h()({},"features"),subscription:f()(["features"])}),_=a()([g.c,g.b,u()(g.d)])},function(e,t,n){var r=n(34),i=n(936);e.exports=r(function(e,t){return i(function(e,t,n){return t},e,t)})},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return B}),n.d(t,"b",function(){return z}),n.d(t,"a",function(){return H});var r=n(31),i=n(3),o=n.n(i),a=n(15),s=n.n(a),l=n(182),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(12),m=(n(2075),n(18)),g=n.n(m),v=n(2),y=n.n(v),b=n(28),_=n.n(b),w=n(44),E=n.n(w),k=n(40),x=n.n(k),S=n(33),T=n.n(S),C=n(1),O=n.n(C),A=n(76),N=n.n(A),I=n(57),M=n(22),j=n(58),L=n(85),P=n(27),D=n(68),R=n(100),F=n(56),B=function(t){function n(){return Object(u.a)(this,n),Object(f.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(h.a)(n,t),Object(d.a)(n,[{key:"nextNumber",value:function(e){var t,n=this.props.items,r=n.length>0?n[e].number:null;return isNaN(r)||""===r||(t=c()(r,10)+1),(t<1||t>99)&&(t=null),t}},{key:"render",value:function(){var t=this,n=this.props,i=n.animateBlockEntrance,a=n.lessonId,l=n.blockId,c=n.isLearner,u=n.items,d=n.labels,f=n.type,p=n.settings,h=n.editable,m=n.onStep,g=p.paddingTop,v=p.paddingBottom,b=p.backgroundColor,_=p.entranceAnimation,w=y()("block-list block-list--".concat(f),{"block-list--no-animation":!_}),E={backgroundColor:Object(D.a)("",b),paddingTop:"".concat(10*g,"px"),paddingBottom:"".concat(10*v,"px")};return e.createElement("div",{className:w,style:E},e.createElement("div",{className:"block-list__container"},e.createElement("div",{className:"block-list__row"},e.createElement("div",{"aria-label":q(d,f),className:"block-list__col",role:L.a},e.createElement("ul",{className:"block-list__list"},e.createElement(F.a,{animateBlockEntrance:i,animateIn:"fadeInRight",className:"block-list__animated-item",isLearner:c,siblingDelay:.25},s()(u).call(u,function(n,i){var s;return e.createElement(U,Object(r.a)({key:n.id,index:i,lessonId:a,blockId:l,isDone:n.isDone,type:f,editable:h,nextNumber:o()(s=t.nextNumber).call(s,t),onStep:m},n))})))))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:O.a.bool.isRequired,lessonId:O.a.any,blockId:O.a.any,isLearner:O.a.bool.isRequired,items:O.a.array.isRequired,settings:O.a.object.isRequired,type:O.a.string,editable:O.a.bool,onStep:O.a.func}}},{key:"defaultProps",get:function(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered"}}}]),n}(e.Component),U=function(t){function n(e){var t;return Object(u.a)(this,n),(t=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={isChecked:!1},t}return Object(h.a)(n,t),Object(d.a)(n,null,[{key:"propTypes",get:function(){return{id:O.a.any.isRequired,lessonId:O.a.any,blockId:O.a.any.isRequired,isDone:O.a.bool,index:O.a.number.isRequired,type:O.a.string.isRequired,number:O.a.oneOfType([O.a.string,O.a.number]),paragraph:O.a.string,isNewlyInserted:O.a.bool,editable:O.a.bool,nextNumber:O.a.func.isRequired,onStep:O.a.func}}}]),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.id;e.isNewlyInserted&&(this.editor.setFocus(),Object(j.a)(Object(I.g)({lessonId:t,blockId:n,itemId:r,payload:{isNewlyInserted:!1}})))}},{key:"checkBox",value:function(e){e.preventDefault(),this.setState({isChecked:!this.state.isChecked}),this.props.onStep(this.props)}},{key:"handleParagraphChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(j.a)(Object(I.g)({lessonId:r,blockId:i,itemId:e,payload:{paragraph:t}}))}},{key:"handleParagraphKeydown",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId,o=n.nextNumber,a=n.index;if(t.shiftKey||"Enter"!==t.key)t.shiftKey||"Backspace"!==t.key||""===t.target.textContent&&Object(j.a)(Object(I.d)({lessonId:r,blockId:i,itemId:e}));else{t.preventDefault(),t.stopPropagation();var s={paragraph:"",number:o(a)};Object(j.a)(Object(I.b)({lessonId:r,blockId:i,itemId:e,payload:s}))}return!1}},{key:"render",value:function(){var t,n,r,i,a=this,s=this.props,l=s.type,c=s.index,u=s.id,d=s.number,f=s.paragraph,p=s.editable,h=this.state.isChecked,m={className:"block-list__content brand--body brand--linkColor",component:"span",editable:p,onChange:o()(t=this.handleParagraphChange).call(t,this,u),onKeyDown:o()(n=this.handleParagraphKeydown).call(n,this,u),ref:function(e){a.editor=e},value:f},v=_()("hidden "),b=T()({className:v},m),w=e.createElement("div",{className:"block-list__number brand--background"},d||c+1),k=e.createElement("div",{className:"block-list__bullet brand--background"}),S=y()("block-list__checkbox","brand--border",{"block-list__checkbox--checked":h,"brand--background":h}),C=e.createElement("div",{className:S},e.createElement("i",{className:"block-list__checkbox__icon icon icon-checkmark-valid"}),e.createElement("div",{"aria-checked":h,className:"block-list__checkbox__hitarea",onClick:o()(r=this.checkBox).call(r,this),onKeyDown:Object(P.a)(o()(i=this.checkBox).call(i,this)),role:"checkbox",tabIndex:M.a})),O=E()([[x()("numbered"),g()(w)],[x()("bulleted"),g()(k)],[x()("checkboxes"),g()(C)],[N.a,g()(w)]]);return e.createElement("li",{className:"block-list__item"},e.createElement("div",{className:"block-list__content__left"},O(l),e.createElement(R.a,b)),e.createElement(R.a,m))}}]),n}(e.Component),q=function(e,t){var n=e.numberedListGroup,r=e.checkboxListGroup,i=e.bulletedListGroup;switch(t){case"numbered":return n;case"checkboxes":return r;case"bulleted":return i}},z=function(t){return e.createElement(B,Object(r.a)({type:"checkboxes"},t))},H=function(t){return e.createElement(B,Object(r.a)({type:"bulleted"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return h}),n.d(t,"a",function(){return m}),n.d(t,"b",function(){return g});var r=n(31),i=n(10),o=n(7),a=n(11),s=n(9),l=n(12),c=(n(2083),n(2)),u=n.n(c),d=n(1),f=n.n(d),p=n(68),h=function(t){function n(){return Object(i.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.labels.numberedDividerGroup,r=t.number,i=t.settings,o=t.type,a=i.paddingTop,s=i.paddingBottom,l=i.backgroundColor,c=i.entranceAnimation,d=u()("block-divider block-divider--".concat(o," brand--afterHead"),{"block-divider--no-animation":!c}),f="numbered"===o,h=u()("block-divider__wrap",{"brand--beforeBorder brand--afterBackground":f}),m={backgroundColor:Object(p.a)("",l),paddingTop:"".concat(10*a,"px"),paddingBottom:"".concat(10*s,"px")},g=f?n:"";return e.createElement("div",{className:d,style:m},e.createElement("div",{"aria-label":g,className:h,"data-number":r}))}}],[{key:"propTypes",get:function(){return{settings:f.a.object.isRequired,number:f.a.number,type:f.a.string}}},{key:"defaultProps",get:function(){return{type:"divider"}}}]),n}(e.Component),m=function(t){return e.createElement(h,Object(r.a)({type:"numbered"},t))},g=function(t){return e.createElement(h,Object(r.a)({type:"spacing"},t))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return V}),n.d(t,"b",function(){return K});var r=n(333),i=n.n(r),o=function(e){return!!e&&"object"==typeof e},a=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce(function(t,n){return Object.keys(n).forEach(function(r){Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=t[r].concat(n[r]):o(t[r])&&o(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]}),t},{})},s=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},l=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},c="INVALID_NUMBER_OF_PERIOD",u="DASH_EMPTY_MANIFEST",d="DASH_INVALID_XML",f="NO_BASE_URL",p="SEGMENT_TIME_UNSPECIFIED",h="UNSUPPORTED_UTC_TIMING_SCHEME";"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var m,g=(function(e,t){var n,r,i,o,a;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,a={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=a.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=a.normalizePath(i.path),a.buildURLFromParts(i)}var o=a.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=a.normalizePath(o.path),a.buildURLFromParts(o)):t;var s=a.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(c.netLoc=s.netLoc,"/"!==o.path[0]))if(o.path){var u=s.path,d=u.substring(0,u.lastIndexOf("/")+1)+o.path;c.path=a.normalizePath(d)}else c.path=s.path,o.params||(c.params=s.params,o.query||(c.query=s.query));return null===c.path&&(c.path=n.alwaysNormalize?a.normalizePath(o.path):o.path),a.buildURLFromParts(c)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a}(m={exports:{}},m.exports),m.exports),v=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=g.buildAbsoluteURL(i.a.location.href,e)),g.buildAbsoluteURL(e,t))},y=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,i=void 0===r?"":r,o=e.range,a=void 0===o?"":o,s=e.indexRange,l=void 0===s?"":s,c={uri:i,resolvedUri:v(n||"",i)};if(a||l){var u=(a||l).split("-"),d=parseInt(u[0],10),f=parseInt(u[1],10);c.byterange={length:f-d+1,offset:d}}return c},b={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration;return{start:0,end:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,o=void 0===i?1:i,a=e.duration,s=e.start,l=void 0===s?0:s,c=e.minimumUpdatePeriod,u=void 0===c?0:c,d=e.timeShiftBufferDepth,f=void 0===d?1/0:d,p=(t+n)/1e3,h=r+l,m=p+u-h,g=Math.ceil(m*o/a),v=Math.floor((p-h-f)*o/a),y=Math.floor((p-h)*o/a);return{start:Math.max(0,v),end:Math.min(g,y)}}},_=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.sourceDuration,s=b[n](e),l=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}(s.start,s.end).map(function(e){return function(t,n){var r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.periodIndex,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:r/o,timeline:a,time:n*r}}}(e));if("static"===n){var c=l.length-1;l[c].duration=a-r/o*c}return l},w=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,o=e.timescale,a=void 0===o?1:o,s=e.indexRange,l=void 0===s?"":s,c=e.duration;if(!t)throw new Error(f);var u=y({baseUrl:t,source:r.sourceURL,range:r.range}),d=y({baseUrl:t,source:t,indexRange:l});if(d.map=u,c){var p=_(e);p.length&&(d.duration=p[0].duration,d.timeline=p[0].timeline)}else i&&(d.duration=i/a,d.timeline=0);return d.number=0,[d]},E=function(e,t,n){for(var r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,s=a.offset+a.length,l=t.timescale,c=t.references.filter(function(e){return 1!==e.referenceType}),u=[],d=s+t.firstOffset,f=0;f<c.length;f++){var p=t.references[f],h=p.referencedSize,m=p.subsegmentDuration,g=w({baseUrl:n,timescale:l,timeline:o,periodIndex:o,duration:m,sourceDuration:i,indexRange:d+"-"+(d+h-1)})[0];r&&(g.map=r),u.push(g),d+=h}return e.segments=u,e},k=function(e){var t;return(t=e.reduce(function(e,t){var n,r=t.attributes.id+(t.attributes.lang||"");e[r]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[r].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):e[r]=t;return e},{}),Object.keys(t).map(function(e){return t[e]})).map(function(e){var t,n;return e.discontinuityStarts=(t=e.segments,n="discontinuity",t.reduce(function(e,t,r){return t[n]&&e.push(r),e},[])),e})},x=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e){var r=e[n];if(r.sidx){var i=r.sidx.uri+"-"+(a=r.sidx.byterange,s=void 0,s=a.offset+a.length-1,a.offset+"-"+s),o=t[i]&&t[i].sidx;r.sidx&&o&&E(r,o,r.sidx.resolvedUri)}}var a,s;return e},S=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},T=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},C=function(e,t){var n;if(void 0===t&&(t={}),!e.length)return{};var r=e[0].attributes,i=r.sourceDuration,o=r.minimumUpdatePeriod,a=void 0===o?0:o,s=k(e.filter(function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video"===t.contentType})).map(T),l=k(e.filter(function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio"===t.contentType})),c=e.filter(function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType}),u={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:i,playlists:x(s,t),minimumUpdatePeriod:1e3*a};return l.length&&(u.mediaGroups.AUDIO.audio=function(e,t){var n;void 0===t&&(t={});var r=e.reduce(function(e,r){var i=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",a="main";if(o){var s=i?" ("+i+")":"";a=""+r.attributes.lang+s}return e[a]&&e[a].playlists[0].attributes.BANDWIDTH>r.attributes.bandwidth?e:(e[a]={language:o,autoselect:!0,default:"main"===i,playlists:x([S(r)],t),uri:""},void 0===n&&"main"===i&&((n=r).default=!0),e)},{});n||(r[Object.keys(r)[0]].default=!0);return r}(l,t)),c.length&&(u.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce(function(e,n){var r,i,o,a,s=n.attributes.lang||"text";return e[s]?e:(e[s]={language:s,default:!1,autoselect:!1,playlists:x([(r=n,o=r.attributes,a=r.segments,void 0===a&&(a=[{uri:o.baseUrl,timeline:o.periodIndex,resolvedUri:o.baseUrl||"",duration:o.sourceDuration,number:0}],o.duration=o.sourceDuration),{attributes:(i={NAME:o.id,BANDWIDTH:o.bandwidth},i["PROGRAM-ID"]=1,i),uri:"",endList:"static"===(o.type||"static"),timeline:o.periodIndex,resolvedUri:o.baseUrl||"",targetDuration:o.duration,segments:a,mediaSequence:a.length?a[0].number:1})],t),uri:""},e)},{})}(c,t)),u},O=function(e,t,n){var r=e.NOW,i=e.clientOffset,o=e.availabilityStartTime,a=e.timescale,s=void 0===a?1:a,l=e.start,c=void 0===l?0:l,u=e.minimumUpdatePeriod,d=(r+i)/1e3+(void 0===u?0:u)-(o+c);return Math.ceil((d*s-t)/n)},A=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,o=void 0===i?0:i,a=e.media,s=void 0===a?"":a,l=e.sourceDuration,c=e.timescale,u=void 0===c?1:c,d=e.startNumber,f=void 0===d?1:d,p=e.periodIndex,h=[],m=-1,g=0;g<t.length;g++){var v=t[g],y=v.d,b=v.r||0,_=v.t||0;m<0&&(m=_),_&&_>m&&(m=_);var w=void 0;if(b<0){var E=g+1;w=E===t.length?"dynamic"===r&&o>0&&s.indexOf("$Number$")>0?O(e,m,y):(l*u-m)/y:(t[E].t-m)/y}else w=b+1;for(var k=f+h.length+w,x=f+h.length;x<k;)h.push({number:x,duration:y/u,time:m,timeline:p}),m+=y,x++}return h},N=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,I=function(e,t){return e.replace(N,function(e){return function(t,n,r,i){if("$$"===t)return"$";if(void 0===e[n])return t;var o=""+e[n];return"RepresentationID"===n?o:(i=r?parseInt(i,10):1,o.length>=i?o:""+new Array(i-o.length+1).join("0")+o)}}(t))},M=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,o=y({baseUrl:e.baseUrl,source:I(i.sourceURL,n),range:i.range});return function(e,t){return e.duration||t?e.duration?_(e):A(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map(function(t){n.Number=t.number,n.Time=t.time;var r=I(e.media||"",n);return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:v(e.baseUrl||"",r),map:o,number:t.number}})},j=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error(p);var o,a=i.map(function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,o=y({baseUrl:n,source:i.sourceURL,range:i.range}),a=y({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=o,a}(e,t)});return n&&(o=_(e)),t&&(o=A(e,t)),o.map(function(e,t){if(a[t]){var n=a[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}}).filter(function(e){return e})},L=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=M,t=a(r,i.template)):i.base?(n=w,t=a(r,i.base)):i.list&&(n=j,t=a(r,i.list));var o={attributes:r};if(!n)return o;var s=n(t,i.timeline);if(t.duration){var l=t,c=l.duration,u=l.timescale,d=void 0===u?1:u;t.duration=c/d}else s.length?t.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return o.attributes=t,o.segments=s,i.base&&t.indexRange&&(o.sidx=s[0],o.segments=[]),o},P=function(e,t){return l(e.childNodes).filter(function(e){return e.tagName===t})},D=function(e){return e.textContent.trim()},R=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(o||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(l||0)},F={mediaPresentationDuration:function(e){return R(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return R(e)},timeShiftBufferDepth:function(e){return R(e)},start:function(e){return R(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?R(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},B=function(e){return e&&e.attributes?l(e.attributes).reduce(function(e,t){var n=F[t.name]||F.DEFAULT;return e[t.name]=n(t.value),e},{}):{}};var U={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},q=function(e,t){return t.length?s(e.map(function(e){return t.map(function(t){return v(e,D(t))})})):e},z=function(e){var t=P(e,"SegmentTemplate")[0],n=P(e,"SegmentList")[0],r=n&&P(n,"SegmentURL").map(function(e){return a({tag:"SegmentURL"},B(e))}),i=P(e,"SegmentBase")[0],o=n||t,s=o&&P(o,"SegmentTimeline")[0],l=n||i||t,c=l&&P(l,"Initialization")[0],u=t&&B(t);u&&c?u.initialization=c&&B(c):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var d={template:u,timeline:s&&P(s,"S").map(function(e){return B(e)}),list:n&&a(B(n),{segmentUrls:r,initialization:B(c)}),base:i&&a(B(i),{initialization:B(c)})};return Object.keys(d).forEach(function(e){d[e]||delete d[e]}),d},H=function(e){return e.reduce(function(e,t){var n=B(t),r=U[n.schemeIdUri];if(r){e[r]={attributes:n};var o=P(t,"cenc:pssh")[0];if(o){var a=D(o),s=a&&function(e){for(var t=i.a.atob(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}(a);e[r].pssh=s}}return e},{})},W=function(e,t,n){return function(r){var i=B(r),o=q(t,P(r,"BaseURL")),l=P(r,"Role")[0],c={role:B(l)},u=a(e,i,c),d=H(P(r,"ContentProtection"));Object.keys(d).length&&(u=a(u,{contentProtection:d}));var f=z(r),p=P(r,"Representation"),h=a(n,f);return s(p.map(function(e,t,n){return function(r){var i=P(r,"BaseURL"),o=q(t,i),s=a(e,B(r)),l=z(r);return o.map(function(e){return{segmentInfo:a(n,l),attributes:a(s,{baseUrl:e})}})}}(u,o,h)))}},$=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,o=void 0===r?"":r,l=n.NOW,u=void 0===l?Date.now():l,d=n.clientOffset,f=void 0===d?0:d,p=P(e,"Period");if(!p.length)throw new Error(c);var h=B(e),m=q([o],P(e,"BaseURL"));return h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=u,h.clientOffset=f,s(p.map(function(e,t){return function(n,r){var o=q(t,P(n,"BaseURL")),l=B(n),c=parseInt(l.id,10),u=i.a.isNaN(c)?r:c,d=a(e,{periodIndex:u}),f=P(n,"AdaptationSet"),p=z(n);return s(f.map(W(d,o,p)))}}(h,m)))},Y=function(e){if(""===e)throw new Error(u);var t=(new i.a.DOMParser).parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null;if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(d);return n},V=function(e,t){return void 0===t&&(t={}),C($(Y(e),t).map(L),t.sidxMapping)},K=function(e){return function(e){var t=P(e,"UTCTiming")[0];if(!t)return null;var n=B(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(h)}return n}(Y(e))}}).call(this,n(69))},function(e,t,n){"use strict";n.d(t,"a",function(){return D}),n.d(t,"b",function(){return R});var r=n(43),i=n.n(r),o=n(104),a=n.n(o),s=n(6),l=n.n(s),c=n(44),u=n.n(c),d=n(120),f=n.n(d),p=n(115),h=n.n(p),m=n(36),g=n.n(m),v=n(214),y=n.n(v),b=n(42),_=n.n(b),w=n(23),E=n.n(w),k=n(397),x=n.n(k),S=n(41),T=n.n(S),C=n(14),O=n.n(C),A=n(232),N=n.n(A),I=n(76),M=n.n(I),j=a()(g.a),L=function(e){var t=P(e)[0],n=(t||{}).feedback,r=E()(_()(["action","emotion","goTo","nextSlide"]),i()({description:n,type:"dialogue"}));return t?[t,r(t)]:[r(e)]},P=function(e){return[e.responses[e.response]]},D=function(e){var t=N()(j,"response"),n=O()("hasFeedback",!0),r=function(t){return l()(x()(e),t)};return u()([[n,r(L)],[t,r(P)],[M.a,y.a]])(e)},R=f()(function(e,t){if(t){var n=t.scene,r=t.slide,i=h()(O()("id",n),e),o=T()([],"slides",e[i]);return{scene:i,slide:h()(O()("id",r),o)}}})},function(e,t,n){var r=n(227),i=n(82);e.exports=i(r,0)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return E}),n.d(t,"b",function(){return k});var r=n(3),i=n.n(r),o=n(4),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(2346),n(119)),h=n(2),m=n.n(h),g=n(1),v=n.n(g),y=n(105),b=n(47),_=n(52),w=n(216),E=function(t){var n=t.courseFinishLabel,r=t.onNextClick;return e.createElement("div",{className:"next-lesson brand--linkColorHover"},e.createElement(p.a,{className:"next-lesson__link",onClick:r,to:"/lessons/progress-summary"},e.createElement("div",{className:"next-lesson__name brand--ui"},n),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(b.f,null))))},k=function(t){function n(){var e,t,r,o;Object(s.a)(this,n);for(var l=arguments.length,f=new Array(l),p=0;p<l;p++)f[p]=arguments[p];return(o=Object(c.a)(this,(e=Object(u.a)(n)).call.apply(e,a()(t=[this]).call(t,f)))).handleRestrictedClick=i()(r=o.handleRestrictedClick).call(r,Object(d.a)(o)),o.state={isActive:!1},o}return Object(f.a)(n,t),Object(l.a)(n,[{key:"handleRestrictedClick",value:function(e){e.preventDefault()}},{key:"render",value:function(){var t=this.props,n=t.next,r=t.nextTitle,i=t.nextNumber,o=t.onNextClick,s=t.restrictions,l=t.isContinue,c=t.isLesson,u=t.labels,d=t.type,f=s.isRestricted,h=u.lessonName,g=u.quizContinue,v=m()("next-lesson","brand--linkColorHover",{"next-lesson--restricted":f,"next-lesson--map":"map"===d}),E=e.createElement(_.a,{className:"next-lesson__name--inline",value:r});if(f){var k,x,S=Object(y.a)({labels:u,restrictions:s});return e.createElement(w.a,{className:"runtime-tooltip"},e.createElement("div",{className:v},e.createElement(p.a,{"aria-disabled":"true","aria-label":a()(k="The ".concat(r," lesson is currently unavailable: ")).call(k,S),className:"next-lesson__link",disabled:!0,onClick:this.handleRestrictedClick,to:"/"},e.createElement("div",{className:"next-lesson__name brand--ui"},c?a()(x="".concat(h," ")).call(x,i," - "):""," ",E),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(b.f,null)))),e.createElement(w.b,{"aria-hidden":"true",side:"top"},S))}if(r||l){var T,C=c&&!l,O=l?g:E;return e.createElement("div",{className:v},e.createElement(p.a,{className:"next-lesson__link",to:"/lessons/"+encodeURIComponent(n),onClick:o},e.createElement("div",{className:"next-lesson__name brand--ui"},C?a()(T="".concat(h," ")).call(T,i," - "):""," ",O),e.createElement("div",{className:"brand--ui next-lesson__arrow"},e.createElement(b.f,null))))}return e.createElement("div",null)}}],[{key:"propTypes",get:function(){return{isContinue:v.a.bool,next:v.a.any.isRequired,nextTitle:v.a.string}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"c",function(){return p}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return m});var r=n(31),i=n(5),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2453),n(2)),d=n.n(u),f=n(80),p=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t=this.props,n=t.className,r=t.children;return e.createElement("div",{className:n,"data-lesson":!0,ref:this.props.contentRef},r)}}]),n}(e.Component),h=function(t){var n=t.children,o=t.hidden,a=t.id,s=t.label,l="".concat("lesson__sidebar","--safari"),c={className:d()("lesson__sidebar",Object(i.a)({},l,f.a.isSafari)),id:a};return e.createElement("section",Object(r.a)({"aria-hidden":o,"aria-label":s,"data-lesson-side":!0},c),n)},m=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t=this.props.onMobileMenuActiveClick;return e.createElement("div",{className:"lesson__content",onClick:t},this.props.children)}}]),n}(e.Component)}).call(this,n(0))},,function(e,t,n){var r=n(97),i=n(74).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(74),i=n(163);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(338),i=n(498),o=n(102),a=n(74).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){e.exports=n(74)},function(e,t,n){"use strict";var r=n(143),i=n(307),o=n(117);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){var r=n(434),i=n(110)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){"use strict";var r=n(24),i=n(777),o=n(244),a=n(436),s=n(243),l=n(163),c=n(189),u=n(336),d=n(110)("iterator"),f=n(434),p=n(778),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=function(){return this};e.exports=function(e,t,n,p,v,y,b){i(n,t,p);var _,w,E,k=function(e){if(e===v&&O)return O;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",S=!1,T=e.prototype,C=T[d]||T["@@iterator"]||v&&T[v],O=!m&&C||k(v),A="Array"==t&&T.entries||C;if(A&&(_=o(A.call(new e)),h!==Object.prototype&&_.next&&(u||o(_)===h||(a?a(_,h):"function"!=typeof _[d]&&l(_,d,g)),s(_,x,!0,!0),u&&(f[x]=g))),"values"==v&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),u&&!b||T[d]===O||l(T,d,O),f[t]=O,v)if(w={values:k("values"),keys:y?O:k("keys"),entries:k("entries")},b)for(E in w)!m&&!S&&E in T||c(T,E,w[E]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t,n){e.exports=!n(63)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(623),i=n(74),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){"use strict";var r=n(74),i=n(125),o=n(111).NATIVE_ARRAY_BUFFER,a=n(163),s=n(373),l=n(63),c=n(310),u=n(204),d=n(117),f=n(780),p=n(338).f,h=n(133).f,m=n(624),g=n(243),v=n(203),y=v.get,b=v.set,_=r.ArrayBuffer,w=_,E=r.DataView,k=r.Math,x=r.RangeError,S=k.abs,T=k.pow,C=k.floor,O=k.log,A=k.LN2,N=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?T(2,-24)-T(2,-77):0,d=e<0||0===e&&1/e<0?1:0,f=0;for((e=S(e))!=e||e===1/0?(i=e!=e?1:0,r=l):(r=C(O(e)/A),e*(o=T(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?u/o:u*T(2,1-c))*o>=2&&(r++,o/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(e*o-1)*T(2,t),r+=c):(i=e*T(2,c-1)*T(2,t),r=0));t>=8;a[f++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[f++]=255&r,r/=256,s-=8);return a[--f]|=128*d,a},I=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,l=r-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return n?NaN:c?-1/0:1/0;n+=T(2,t),u-=a}return(c?-1:1)*n*T(2,u-t)},M=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},j=function(e){return[255&e]},L=function(e){return[255&e,e>>8&255]},P=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},D=function(e){return N(e,23,4)},R=function(e){return N(e,52,8)},F=function(e,t){h(e.prototype,t,{get:function(){return y(this)[t]}})},B=function(e,t,n,r){var i=f(+n),o=y(e);if(i+t>o.byteLength)throw x("Wrong index");var a=y(o.buffer).bytes,s=i+o.byteOffset,l=a.slice(s,s+t);return r?l:l.reverse()},U=function(e,t,n,r,i,o){var a=f(+n),s=y(e);if(a+t>s.byteLength)throw x("Wrong index");for(var l=y(s.buffer).bytes,c=a+s.byteOffset,u=r(+i),d=0;d<t;d++)l[c+d]=u[o?d:t-d-1]};if(o){if(!l(function(){_(1)})||!l(function(){new _(-1)})||l(function(){return new _,new _(1.5),new _(NaN),"ArrayBuffer"!=_.name})){for(var q,z=(w=function(e){return c(this,w),new _(f(e))}).prototype=_.prototype,H=p(_),W=0;H.length>W;)(q=H[W++])in w||a(w,q,_[q]);z.constructor=w}var $=new E(new w(2)),Y=E.prototype.setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||s(E.prototype,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else w=function(e){c(this,w,"ArrayBuffer");var t=f(e);b(this,{bytes:m.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},E=function(e,t,n){c(this,E,"DataView"),c(e,w,"DataView");var r=y(e).byteLength,o=u(t);if(o<0||o>r)throw x("Wrong offset");if(o+(n=void 0===n?r-o:d(n))>r)throw x("Wrong length");b(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},i&&(F(w,"byteLength"),F(E,"buffer"),F(E,"byteLength"),F(E,"byteOffset")),s(E.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return M(B(this,4,e,arguments[1]))},getUint32:function(e){return M(B(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return I(B(this,4,e,arguments[1]),23)},getFloat64:function(e){return I(B(this,8,e,arguments[1]),52)},setInt8:function(e,t){U(this,1,e,j,t)},setUint8:function(e,t){U(this,1,e,j,t)},setInt16:function(e,t){U(this,2,e,L,t,arguments[2])},setUint16:function(e,t){U(this,2,e,L,t,arguments[2])},setInt32:function(e,t){U(this,4,e,P,t,arguments[2])},setUint32:function(e,t){U(this,4,e,P,t,arguments[2])},setFloat32:function(e,t){U(this,4,e,D,t,arguments[2])},setFloat64:function(e,t){U(this,8,e,R,t,arguments[2])}});g(w,"ArrayBuffer"),g(E,"DataView"),t.ArrayBuffer=w,t.DataView=E},function(e,t,n){var r=n(97),i=n(436);e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){"use strict";var r=n(204),i=n(202);e.exports="".repeat||function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){var r,i,o,a=n(74),s=n(219),l=n(309),c=n(771),u=n(619),d=a.setImmediate,f=a.clearImmediate,p=a.process,h=a.MessageChannel,m=a.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(g),g},f=function(e){delete v[e]},"process"==s(p)?r=function(e){p.nextTick(l(y,e,1))}:m&&m.now?r=function(e){m.now(l(y,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=l(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(e){a.postMessage(e+"","*")},a.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(l(y,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,n){var r=n(74).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(97),i=n(219),o=n(110)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(635),i=n(202);e.exports=function(e,t,n){if(r(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(i(e))}},function(e,t,n){var r=n(110)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(508);e.exports=function(e,t,n){return t+(n?r(e,t,!0).length:1)}},function(e,t,n){"use strict";var r,i,o=n(507),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,i,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),c&&(t=l.lastIndex),r=a.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)}),r}),e.exports=l},function(e,t,n){var r=n(63),i=n(505);e.exports=function(e){return r(function(){return!!i[e]()||"​᠎"!="​᠎"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(74),i=n(63),o=n(499),a=n(111).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i(function(){l(1)})||!i(function(){new l(-1)})||!o(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||i(function(){return 1!==new l(new s(2),1,void 0).length})},function(e,t,n){var r=n(144),i=n(164),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(1511);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(281),i=n(803);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(137);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r=n(134)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){var r=n(245),i=n(221),o=n(649),a=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(514),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r={};r[n(134)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){var r=n(205),i=n(1519);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n),i(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(282);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r,i,o=n(144),a=n(653),s=o.process,l=s&&s.versions,c=l&&l.v8;c?i=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){(t=e.exports=n(828)).Stream=t,t.Readable=t,t.Writable=n(657),t.Duplex=n(350),t.Transform=n(832),t.PassThrough=n(1550)},function(e,t,n){var r=n(349),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(522);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o;y.WritableState=v;var c=n(447);c.inherits=n(247);var u={deprecate:n(1548)},d=n(830),f=n(656).Buffer,p=i.Uint8Array||function(){};var h,m=n(831);function g(){}function v(e,t){s=s||n(350),e=e||{},this.objectMode=!!e.objectMode,t instanceof s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o(i,r),o(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),x(e,t))}(e,n,r,t,i);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?l(_,e,n,a,i):_(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(350),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,l=!0;n;)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t)}else{for(;n;){var c=n.chunk,u=n.encoding,d=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,u,d),n=n.next,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),x(e,t)})}function x(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(y,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||e&&e._writableState instanceof v}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=(r=e,(f.isBuffer(r)||r instanceof p)&&!i.objectMode);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,i,o);return l}(this,i,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,x(e,t),n&&(t.finished?o(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(284),n(1546).setImmediate,n(69))},function(e,t,n){"use strict";var r=n(1549).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(n);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(n+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(n+2)}}(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(660);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="decl",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=l(n(838)),o=l(n(846)),a=l(n(661)),s=l(n(847));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.raws={},"object"!==(void 0===t?"undefined":r(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var n in t)this[n]=t[n]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new i.default(e)},e.prototype.warn=function(e,t,n){var r={node:this};for(var i in n)r[i]=n[i];return e.warn(t,r)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,n){var i=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var a=t[o],s=void 0===a?"undefined":r(a);"parent"===o&&"object"===s?n&&(i[o]=n):"source"===o?i[o]=a:a instanceof Array?i[o]=a.map(function(t){return e(t,i)}):("object"===s&&null!==a&&(a=e(a)),i[o]=a)}return i}(this);for(var n in e)t[n]=e[n];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.parent.insertBefore(this,s)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,s.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,s.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,s.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){var e=this.parent.index(this);return this.parent.nodes[e+1]},e.prototype.prev=function(){var e=this.parent.index(this);return this.parent.nodes[e-1]},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var n=this[t];n instanceof Array?e[t]=n.map(function(e){return"object"===(void 0===e?"undefined":r(e))&&e.toJSON?e.toJSON():e}):"object"===(void 0===n?"undefined":r(n))&&n.toJSON?e[t]=n.toJSON():e[t]=n}return e},e.prototype.raw=function(e,t){return(new o.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),n=this.source.start.column,r=this.source.start.line,i=0;i<e;i++)"\n"===t[i]?(n=1,r+=1):n+=1;return{line:r,column:n}},e.prototype.positionBy=function(e){var t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){var n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t},e}();t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){new o.default(t).stringify(e)};var r,i=n(846),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(t&&t.safe)throw new Error('Option safe was removed. Use parser: require("postcss-safe-parser")');var n=new i.default(e,t),o=new r.default(n);try{o.parse()}catch(e){throw"CssSyntaxError"===e.name&&t&&t.from&&(/\.scss$/i.test(t.from)?e.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(t.from)?e.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(t.from)&&(e.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),e}return o.root};var r=o(n(1592)),i=o(n(841));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(660);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="comment",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(659)),o=a(n(663));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.push=function(e){return e.parent=this,this.nodes.push(e),this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var t=this.lastEach;if(this.indexes[t]=0,this.nodes){for(var n=void 0,r=void 0;this.indexes[t]<this.nodes.length&&(n=this.indexes[t],!1!==(r=e(this.nodes[n],n)));)this.indexes[t]+=1;return delete this.indexes[t],r}},t.prototype.walk=function(e){return this.each(function(t,n){var r=e(t,n);return!1!==r&&t.walk&&(r=t.walk(e)),r})},t.prototype.walkDecls=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("decl"===n.type&&e.test(n.prop))return t(n,r)}):this.walk(function(n,r){if("decl"===n.type&&n.prop===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("decl"===e.type)return t(e,n)}))},t.prototype.walkRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("rule"===n.type&&e.test(n.selector))return t(n,r)}):this.walk(function(n,r){if("rule"===n.type&&n.selector===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("rule"===e.type)return t(e,n)}))},t.prototype.walkAtRules=function(e,t){return t?e instanceof RegExp?this.walk(function(n,r){if("atrule"===n.type&&e.test(n.name))return t(n,r)}):this.walk(function(n,r){if("atrule"===n.type&&n.name===e)return t(n,r)}):(t=e,this.walk(function(e,n){if("atrule"===e.type)return t(e,n)}))},t.prototype.walkComments=function(e){return this.walk(function(t,n){if("comment"===t.type)return e(t,n)})},t.prototype.append=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,l=this.normalize(s,this.last),c=Array.isArray(l),u=0;for(l=c?l:l[Symbol.iterator]();;){var d;if(c){if(u>=l.length)break;d=l[u++]}else{if((u=l.next()).done)break;d=u.value}var f=d;this.nodes.push(f)}}return this},t.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t=t.reverse(),i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a,l=this.normalize(s,this.first,"prepend").reverse(),c=l,u=Array.isArray(c),d=0;for(c=u?c:c[Symbol.iterator]();;){var f;if(u){if(d>=c.length)break;f=c[d++]}else{if((d=c.next()).done)break;f=d.value}var p=f;this.nodes.unshift(p)}for(var h in this.indexes)this.indexes[h]=this.indexes[h]+l.length}return this},t.prototype.cleanRaws=function(t){if(e.prototype.cleanRaws.call(this,t),this.nodes){var n=this.nodes,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}o.cleanRaws(t)}}},t.prototype.insertBefore=function(e,t){var n=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.nodes[e],n).reverse(),i=r,o=Array.isArray(i),a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var l=s;this.nodes.splice(e,0,l)}var c=void 0;for(var u in this.indexes)e<=(c=this.indexes[u])&&(this.indexes[u]=c+r.length);return this},t.prototype.insertAfter=function(e,t){e=this.index(e);var n=this.normalize(t,this.nodes[e]).reverse(),r=n,i=Array.isArray(r),o=0;for(r=i?r:r[Symbol.iterator]();;){var a;if(i){if(o>=r.length)break;a=r[o++]}else{if((o=r.next()).done)break;a=o.value}var s=a;this.nodes.splice(e+1,0,s)}var l=void 0;for(var c in this.indexes)e<(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},t.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var n in this.indexes)(t=this.indexes[n])>=e&&(this.indexes[n]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}r.parent=void 0}return this.nodes=[],this},t.prototype.replaceValues=function(e,t,n){return n||(n=t,t={}),this.walkDecls(function(r){t.props&&-1===t.props.indexOf(r.prop)||t.fast&&-1===r.value.indexOf(t.fast)||(r.value=r.value.replace(e,n))}),this},t.prototype.every=function(e){return this.nodes.every(e)},t.prototype.some=function(e){return this.nodes.some(e)},t.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},t.prototype.normalize=function(e,t){var r=this;if("string"==typeof e)e=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(n(662)(e).nodes);else if(Array.isArray(e)){var a=e=e.slice(0),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;u.parent&&u.parent.removeChild(u,"ignore")}}else if("root"===e.type){var d=e=e.nodes.slice(0),f=Array.isArray(d),p=0;for(d=f?d:d[Symbol.iterator]();;){var h;if(f){if(p>=d.length)break;h=d[p++]}else{if((p=d.next()).done)break;h=p.value}var m=h;m.parent&&m.parent.removeChild(m,"ignore")}}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new i.default(e)]}else if(e.selector){e=[new(n(524))(e)]}else if(e.name){e=[new(n(523))(e)]}else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new o.default(e)]}return e.map(function(e){return"function"!=typeof e.before&&(e=r.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/[^\s]/g,"")),e.parent=r,e})},t.prototype.rebuild=function(e,t){var r=this,a=void 0;if("root"===e.type){var s=n(665);a=new s}else if("atrule"===e.type){var l=n(523);a=new l}else if("rule"===e.type){var c=n(524);a=new c}else"decl"===e.type?a=new i.default:"comment"===e.type&&(a=new o.default);for(var u in e)"nodes"===u?a.nodes=e.nodes.map(function(e){return r.rebuild(e,a)}):"parent"===u&&t?a.parent=t:e.hasOwnProperty(u)&&(a[u]=e[u]);return a},r(t,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),t}(a(n(660)).default);t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(664);var o=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.type="root",r.nodes||(r.nodes=[]),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.removeChild=function(t,n){var r=this.index(t);return!n&&0===r&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),e.prototype.removeChild.call(this,t)},t.prototype.normalize=function(t,n,r){var i=e.prototype.normalize.call(this,t);if(n)if("prepend"===r)this.nodes.length>1?n.raws.before=this.nodes[1].raws.before:delete n.raws.before;else if(this.first!==n){var o=i,a=Array.isArray(o),s=0;for(o=a?o:o[Symbol.iterator]();;){var l;if(a){if(s>=o.length)break;l=o[s++]}else{if((s=o.next()).done)break;l=s.value}l.raws.before=n.raws.before}}return i},t.prototype.toResult=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(n(849))(new(n(848)),this,e).stringify()},t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=o,e.exports=t.default},function(e,t,n){var r=n(352);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return r(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t,n){"use strict";var r=n(513),i=n(280),o=n(343);e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},function(e,t,n){"use strict";var r=n(70),i=n(144),o=n(282),a=n(281),s=n(176),l=n(646),c=n(804),u=n(137),d=n(193),f=n(452),p=n(164),h=n(205),m=n(222),g=n(245),v=n(513),y=n(343),b=n(441),_=n(442),w=n(858),E=n(1643),k=n(855),x=n(342),S=n(280),T=n(511),C=n(246),O=n(377),A=n(644),N=n(515),I=n(516),M=n(645),j=n(134),L=n(671),P=n(149),D=n(346),R=n(376),F=n(451).forEach,B=N("hidden"),U=j("toPrimitive"),q=R.set,z=R.getterFor("Symbol"),H=Object.prototype,W=i.Symbol,$=o("JSON","stringify"),Y=x.f,V=S.f,K=E.f,G=T.f,X=A("symbols"),Q=A("op-symbols"),Z=A("string-to-symbol-registry"),J=A("symbol-to-string-registry"),ee=A("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u(function(){return 7!=b(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Y(H,t);r&&delete H[t],V(e,t,n),r&&e!==H&&V(H,t,r)}:V,ie=function(e,t){var n=X[e]=b(W.prototype);return q(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof W},ae=function(e,t,n){e===H&&ae(Q,t,n),h(e);var r=v(t,!0);return h(n),d(X,r)?(n.enumerable?(d(e,B)&&e[B][r]&&(e[B][r]=!1),n=b(n,{enumerable:y(0,!1)})):(d(e,B)||V(e,B,y(1,{})),e[B][r]=!0),re(e,r,n)):V(e,r,n)},se=function(e,t){h(e);var n=g(t),r=_(n).concat(de(n));return F(r,function(t){s&&!le.call(n,t)||ae(e,t,n[t])}),e},le=function(e){var t=v(e,!0),n=G.call(this,t);return!(this===H&&d(X,t)&&!d(Q,t))&&(!(n||!d(this,t)||!d(X,t)||d(this,B)&&this[B][t])||n)},ce=function(e,t){var n=g(e),r=v(t,!0);if(n!==H||!d(X,r)||d(Q,r)){var i=Y(n,r);return!i||!d(X,r)||d(n,B)&&n[B][r]||(i.enumerable=!0),i}},ue=function(e){var t=K(g(e)),n=[];return F(t,function(e){d(X,e)||d(I,e)||n.push(e)}),n},de=function(e){var t=e===H,n=K(t?Q:g(e)),r=[];return F(n,function(e){!d(X,e)||t&&!d(H,e)||r.push(X[e])}),r};(l||(O((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=M(e),n=function(e){this===H&&n.call(Q,e),d(this,B)&&d(this[B],t)&&(this[B][t]=!1),re(this,t,y(1,e))};return s&&ne&&re(H,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",function(){return z(this).tag}),O(W,"withoutSetter",function(e){return ie(M(e),e)}),T.f=le,S.f=ae,x.f=ce,w.f=E.f=ue,k.f=de,L.f=function(e){return ie(j(e),e)},s&&(V(W.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),a||O(H,"propertyIsEnumerable",le,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),F(_(ee),function(e){P(e)}),r({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(Z,t))return Z[t];var n=W(t);return Z[t]=n,J[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(d(J,e))return J[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?b(e):se(b(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),r({target:"Object",stat:!0,forced:u(function(){k.f(1)})},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),$)&&r({target:"JSON",stat:!0,forced:!l||u(function(){var e=W();return"[null]"!=$([e])||"{}"!=$({a:e})||"{}"!=$(Object(e))})},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(p(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,$.apply(null,i)}});W.prototype[U]||C(W.prototype,U,W.prototype.valueOf),D(W,"Symbol"),I[B]=!0},function(e,t,n){var r=n(134);t.f=r},function(e,t,n){var r=n(345),i="["+n(526)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(o,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
function n(e){return function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}}e.exports={assign:function(e,t){var r=Object.keys(t).reduce(n(t),{});return Object.keys(e).reduce(n(e),r)},filter:function(e,t){return Object.keys(t).reduce(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{})},map:function(e,t){return Object.keys(t).reduce(function(n,r){return n[r]=e(t[r]),n},{})}}},function(e,t,n){var r=n(87),i=n(1661);e.exports=r(function(e){return i(e,[])})},function(e,t,n){var r=n(87),i=n(1675);e.exports=r(function(e){return i(e.length,e)})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){return null==e||Number.isNaN(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(868),i=n(454),o=n(314),a=n(93),s=function(e){return function(t){return t.concat(e)}};function l(e,t){return function(n,i){var o=t(i);if(!r(n)||!r(o))throw new TypeError("Array."+e+": Must wrap Applicatives");return o.map(function(e){return s([e])}).ap(n)}}var c=function(e){return e.reduce(function(e,t){return e&&a(t)},!0)},u=function(e,t){return t.map(function(t){return e(t)})};e.exports={ap:function(e,t){if(!t.length||!c(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(u(n,e))},[])},chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!o(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},map:u,sequence:function(e,t){return t.reduce(l("sequence",i),e([]))},traverse:function(e,t,n){return n.reduce(l("traverse",t),e([]))}}},function(e,t,n){var r=n(1717),i=n(872),o=n(1719);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=i(e)),r(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){var r=n(224),i=n(195),o=n(530);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(0)),a=(u(n(103)),u(n(458)),u(n(682))),s=u(n(533)),l=u(n(534)),c=u(n(889));function u(e){return e&&e.__esModule?e:{default:e}}var d={to:l.default.string.isRequired,containerId:l.default.string,container:l.default.object,activeClass:l.default.string,spy:l.default.bool,smooth:l.default.oneOfType([l.default.bool,l.default.string]),offset:l.default.number,delay:l.default.number,isDynamic:l.default.bool,onClick:l.default.func,duration:l.default.oneOfType([l.default.number,l.default.func]),absolute:l.default.bool,onSetActive:l.default.func,onSetInactive:l.default.func,ignoreCancelEvents:l.default.bool,hashSpy:l.default.bool};t.default=function(e,t){var n=t||s.default,l=function(t){function s(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return u.call(t),t.state={active:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,o.default.PureComponent),i(s,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e&&!t?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();a.default.isMounted(e)||a.default.mount(e),this.props.hashSpy&&(c.default.isMounted()||c.default.mount(n),c.default.mapContainer(this.props.to,e)),a.default.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){a.default.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in d)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,o.default.createElement(e,n)}}]),s}(),u=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!c.default.isMounted()||c.default.isInitialized()){var i=e.props.to,o=null,a=0,s=0,l=0;if(r.getBoundingClientRect)l=r.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(i)))return;var u=o.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var d=t-e.props.offset,f=d>=Math.floor(a)&&d<Math.floor(s),p=d<Math.floor(a)||d>=Math.floor(s),h=n.getActiveLink();p&&(i===h&&n.setActiveLink(void 0),e.props.hashSpy&&c.default.getHash()===i&&c.default.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive(i,o))),!f||h===i&&!1!==e.state.active||(n.setActiveLink(i),e.props.hashSpy&&c.default.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i,o)))}}};return l.propTypes=d,l.defaultProps={offset:0},l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(887),o=(r=i)&&r.__esModule?r:{default:r},a=n(683);var s={spyCallbacks:[],spySetState:[],scrollSpyContainers:[],mount:function(e){if(e){var t=function(e){return(0,o.default)(e,66)}(function(t){s.scrollHandler(e)});s.scrollSpyContainers.push(e),(0,a.addPassiveEventListener)(e,"scroll",t)}},isMounted:function(e){return-1!==s.scrollSpyContainers.indexOf(e)},currentPositionY:function(e){if(e===document){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(document.compatMode||"");return t?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}return e.scrollTop},scrollHandler:function(e){(s.scrollSpyContainers[s.scrollSpyContainers.indexOf(e)].spyCallbacks||[]).forEach(function(t){return t(s.currentPositionY(e))})},addStateHandler:function(e){s.spySetState.push(e)},addSpyHandler:function(e,t){var n=s.scrollSpyContainers[s.scrollSpyContainers.indexOf(t)];n.spyCallbacks||(n.spyCallbacks=[]),n.spyCallbacks.push(e),e(s.currentPositionY(t))},updateStates:function(){s.spySetState.forEach(function(e){return e()})},unmount:function(e,t){s.scrollSpyContainers.forEach(function(e){return e.spyCallbacks&&e.spyCallbacks.length&&e.spyCallbacks.splice(e.spyCallbacks.indexOf(t),1)}),s.spySetState&&s.spySetState.length&&s.spySetState.splice(s.spySetState.indexOf(e),1),document.removeEventListener("scroll",s.scrollHandler)},update:function(){return s.scrollSpyContainers.forEach(function(e){return s.scrollHandler(e)})}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.addPassiveEventListener=function(e,t,n){var r=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}();e.addEventListener(t,n,!!r&&{passive:!0})},t.removePassiveEventListener=function(e,t,n){e.removeEventListener(t,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={registered:{},scrollEvent:{register:function(e,t){r.registered[e]=t},remove:function(e){r.registered[e]=null}}};t.default=r},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1844),i=n(287),o=n(900);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(910),i=n(911),o=n(912).type("Async"),a=n(1880),s=n(913),l=n(1884),c=n(1885),u=n(688),d=n(1886),f=n(288),p=n(1887),h=n(914),m=function(e){return e.reduce(function(e,t){return e&&h(v,t)},!0)},g=function(e){return v(function(t,n){return n(e)})};function v(e,t){if(!f(e))throw new TypeError("Async: Function required");var n,r=s(function(){n=!0},f(t)?t:c);function a(t,i,o){if(!f(t)||!f(i))throw new TypeError("Async.fork: Reject and resolve functions required");var a=f(o)?o:c;return e(function(e){return n?c():t(e)},function(e){return n?c():i(e)}),l(s(a,r))}return{fork:a,toPromise:function(){return new Promise(function(e,t){a(t,e)})},inspect:function(){return"Async"+i(e)},type:o,swap:function(e,t){if(!f(e)||!f(t))throw new TypeError("Async.swap: Functions required for both arguments");return v(function(n,r){a(s(r,e),s(n,t))},r)},coalesce:function(e,t){if(!f(e)||!f(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return v(function(n,r){a(s(r,e),s(r,t))},r)},map:function(e){if(!f(e))throw new TypeError("Async.map: Function required");return v(function(t,n){a(t,s(n,e))},r)},bimap:function(e,t){if(!f(e)||!f(t))throw new TypeError("Async.bimap: Functions required for both arguments");return v(function(n,r){a(s(n,e),s(r,t))},r)},alt:function(e){var t=c;if(!h(v,e))throw new TypeError("Async.alt: Async required");return v(function(n,r){a(function(){t=e.fork(n,r)},r)},l(function(){return t(r())}))},ap:function(e){var t,n,i=!1,o=!1,u=c;if(!h(v,e))throw new TypeError("Async.ap: Async required");return v(function(r,c){var d=l(r);function p(){i&&o&&s(c,t)(n)}a(d,function(e){if(!f(e))throw new TypeError("Async.ap: Wrapped value must be a function");i=!0,t=e,p()}),u=e.fork(d,function(e){o=!0,n=e,p()})},l(function(){u(r())}))},chain:function(e){var t=c;if(!f(e))throw new TypeError("Async.chain: Async returning function required");return v(function(n,r){a(n,function(i){var o=e(i);if(!h(v,o))throw new TypeError("Async.chain: Function must return another Async");t=o.fork(n,r)})},l(function(){t(r())}))},of:g,constructor:v}}v.type=o,v.of=g,v.Rejected=function(e){return v(function(t){return t(e)})},v.Resolved=g,v.fromPromise=function(e){if(!f(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return v(function(n,r){var i=e.apply(null,t);if(!p(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r).catch(n)})}},v.fromNode=function(e,t){if(!f(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return v(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},v.all=function(e){if(!d(e)||!m(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return u(e)?a.sequence(v.of,e):e.sequence(v.of)},v["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=v},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return Array.isArray(e)}},function(e,t,n){var r=n(355),i=n(1890),o=r(function(e){return i(e.length,e)});e.exports=o},function(e,t,n){var r=n(539),i=n(1913),o=n(1914),a=n(1915),s=n(1916),l=n(1917);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(357)(n(225),"Map");e.exports=r},function(e,t,n){var r=n(1922),i=n(1929),o=n(1931),a=n(1932),s=n(1933);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){(function(e){var r=n(225),i=n(1939),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(223)(e))},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(918),i=n(695);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(1948),i=n(929),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t,n){var r=n(935);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){var r=n(289)("socket.io-parser"),i=n(385),o=n(943),a=n(1987),s=n(944);function l(){}function c(e){var n=""+e.type;return t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data&&(n+=JSON.stringify(e.data)),r("encoded %j as %s",e,n),n}function u(){this.reconstructor=null}function d(e){this.reconPack=e,this.buffers=[]}function f(){return{type:t.ERROR,data:"parser error"}}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=l,t.Decoder=u,l.prototype.encode=function(e,n){(e.type!==t.EVENT&&e.type!==t.ACK||!o(e.data)||(e.type=e.type===t.EVENT?t.BINARY_EVENT:t.BINARY_ACK),r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type)?function(e,t){a.removeBlobs(e,function(e){var n=a.deconstructPacket(e),r=c(n.packet),i=n.buffers;i.unshift(r),t(i)})}(e,n):n([c(e)])},i(u.prototype),u.prototype.add=function(e){var n;if("string"==typeof e)n=function(e){var n=0,i={type:Number(e.charAt(0))};if(null==t.types[i.type])return f();if(t.BINARY_EVENT===i.type||t.BINARY_ACK===i.type){for(var o="";"-"!==e.charAt(++n)&&(o+=e.charAt(n),n!=e.length););if(o!=Number(o)||"-"!==e.charAt(n))throw new Error("Illegal attachments");i.attachments=Number(o)}if("/"===e.charAt(n+1))for(i.nsp="";++n;){var a=e.charAt(n);if(","===a)break;if(i.nsp+=a,n===e.length)break}else i.nsp="/";var s=e.charAt(n+1);if(""!==s&&Number(s)==s){for(i.id="";++n;){var a=e.charAt(n);if(null==a||Number(a)!=a){--n;break}if(i.id+=e.charAt(n),n===e.length)break}i.id=Number(i.id)}e.charAt(++n)&&(i=function(e,t){try{e.data=JSON.parse(t)}catch(e){return f()}return e}(i,e.substr(n)));return r("decoded %s as %j",e,i),i}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new d(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!s(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},u.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t,n){(function(t){var r=n(1991);e.exports=function(e){var n=e.xdomain,i=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!i&&o)return new XDomainRequest}catch(e){}if(!n)try{return new(t[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}).call(this,n(69))},function(e,t,n){var r=n(386),i=n(385);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=o,i(o.prototype),o.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){var r=n(253),i=n(532),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.createPortalContainer=function(e){var t=document.createElement(e);return document.body.appendChild(t),t},t.removePortalContainer=function(e){document.body.removeChild(e)},t.fetchImage=function(e,t){var n=e.src,r=e.srcSet,i=e.sizes,o=new Image;o.addEventListener("load",function e(){t(o),o.removeEventListener("load",e)}),o.src=n,r&&(o.srcset=r),i&&(o.sizes=i)};var r=t.getScale=function(e){var t=e.width,n=e.height,r=e.zoomMargin,i=window.innerWidth/(t+r),o=window.innerHeight/(n+r);return Math.min(i,o)};t.getMaxDimensionScale=function(e){var t=e.width,n=e.height,i=e.naturalWidth,o=e.naturalHeight,a=e.zoomMargin,s=r({width:i,height:o,zoomMargin:a}),l=i>o?i/t:o/n;return s>1?l:s*l},t.isMaxDimension=function(e){return e.clientWidth>=e.naturalWidth||e.clientHeight>=e.naturalHeight}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(93);e.exports=function(e,t){return r(e)?e(t):e.runWith(t)}},function(e,t,n){var r=n(2220),i=n(463);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(359)(n(291),"Map");e.exports=r},function(e,t,n){var r=n(2237),i=n(2244),o=n(2246),a=n(2247),s=n(2248);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(1106),i=n(710);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(2283),i=n(2286),o=n(2297),a=n(292),s=n(2298);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(292),i=n(562),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(565),i=n(293),o=n(165),a=n(2360),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(293),i=n(165),o=n(564);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t,n){var r=n(159),i=n(468),o=n(215),a=n(2363),s=n(2365),l=n(2366);function c(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function u(e,t,n,r){return e["@@transducer/result"](n[r](l(e["@@transducer/step"],e),t))}var d=void 0!==o?i:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=s(e)),a(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return u(e,t,n,"fantasy-land/reduce");if(null!=n[d])return c(e,t,n[d]());if("function"==typeof n.next)return c(e,t,n);if("function"==typeof r(n))return u(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){var r=n(226);e.exports=r||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(380),i=n(381),o=n(251).type("IO"),a=n(315),s=n(93),l=n(194),c=function(e){return u(function(){return e})};function u(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return u(function(){var n=t(e());if(!l(u,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+i(e)},run:e,type:o,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return u(a(t,e))},ap:function(e){if(!l(u,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:c,chain:t}}u.of=c,u.type=o,u["@@implements"]=r(["ap","chain","map","of"]),e.exports=u},function(e,t,n){var r=n(348),i=n(1700),o=n(82),a=n(568);e.exports=function(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){e.exports=n(1768)},function(e,t,n){var r=n(687),i=n(689),o=n(915);e.exports=i(function(e,t,n){var i={};return function(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];return o(function(){var o=t.apply(null,a);return i[o]||(i[o]={},i[o].async=r(function(e,t){Object.assign(i[o],{reject:e,resolve:t})})),clearTimeout(i[o].timeout),i[o].timeout=setTimeout(function(){var e=i[o],t=e.reject,r=e.resolve;n.apply(null,a).fork(t,r),delete i[o]},e),i[o].async})}})},function(e,t,n){var r=n(687),i=n(689),o=n(915),a=n(1892);e.exports=i(function(e,t,n){var i={};return function(){for(var s=[],l=arguments.length;l--;)s[l]=arguments[l];return o(function(){var o=t.apply(null,s);i[o]||(i[o]={},i[o].async=r(function(e,t){Object.assign(i[o],{reject:e,resolve:t})})),i[o].args=s;var l=Date.now()-(i[o].last||0);if(!i[o].timeout){var c=a(0,e-l);i[o].timeout=setTimeout(function(e){i[e].last=Date.now();var t=i[e],r=t.args,o=t.reject,a=t.resolve;n.apply(null,r).fork(o,a),delete i[e].args,delete i[e].timeout}.bind(null,o),c)}return i[o].async})}})},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r})},function(e,t,n){var r=n(129),i=n(294),o=n(18);e.exports=r(function(e,t,n){return i(o(t),e,n)})},function(e,t,n){"use strict";var r,i,o=n(362).parseType,a=function(e){return new Date(1e3*e-20828448e5)},s=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},l=function(e){var t,n,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=[];for(t=0;t+4<e.length;t+=n)if(n=r.getUint32(t),t+=4,n<=0)i.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:i.push("slice_layer_without_partitioning_rbsp");break;case 5:i.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:i.push("sei_rbsp");break;case 7:i.push("seq_parameter_set_rbsp");break;case 8:i.push("pic_parameter_set_rbsp");break;case 9:i.push("access_unit_delimiter_rbsp");break;default:i.push("UNKNOWN NAL - "+e[t]&31)}return i},c={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:r(e.subarray(78,e.byteLength))}},avcC:function(e){var t,n,r,i,o=new DataView(e.buffer,e.byteOffset,e.byteLength),a={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},s=31&e[5];for(r=6,i=0;i<s;i++)n=o.getUint16(r),r+=2,a.sps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;for(t=e[r],r++,i=0;i<t;i++)n=o.getUint16(r),r+=2,a.pps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;return a},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={majorBrand:o(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},r=8;r<e.byteLength;)n.compatibleBrands.push(o(e.subarray(r,r+4))),r+=4;return n},dinf:function(e){return{boxes:r(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:r(e.subarray(8))}},hdlr:function(e){var t={version:new DataView(e.buffer,e.byteOffset,e.byteLength).getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:o(e.subarray(8,12)),name:""},n=8;for(n=24;n<e.byteLength;n++){if(0===e[n]){n++;break}t.name+=String.fromCharCode(e[n])}return t.name=decodeURIComponent(escape(t.name)),t},mdat:function(e){return{byteLength:e.byteLength,nals:l(e)}},mdhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:n.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===i.version?(r+=4,i.creationTime=a(n.getUint32(r)),r+=8,i.modificationTime=a(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=8,i.duration=n.getUint32(r)):(i.creationTime=a(n.getUint32(r)),r+=4,i.modificationTime=a(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=4,i.duration=n.getUint32(r)),r+=4,t=n.getUint16(r),i.language+=String.fromCharCode(96+(t>>10)),i.language+=String.fromCharCode(96+((992&t)>>5)),i.language+=String.fromCharCode(96+(31&t)),i},mdia:function(e){return{boxes:r(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:r(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(n.streamDescriptor=r(e.subarray(28))[0]),n},moof:function(e){return{boxes:r(e)}},moov:function(e){return{boxes:r(e)}},mvex:function(e){return{boxes:r(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=a(t.getUint32(n)),n+=8,r.modificationTime=a(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=8,r.duration=t.getUint32(n)):(r.creationTime=a(t.getUint32(n)),n+=4,r.modificationTime=a(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=4,r.duration=t.getUint32(n)),n+=4,r.rate=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,n+=8,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,n+=24,r.nextTrackId=t.getUint32(n),r},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)n.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return n},sidx:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8),earliestPresentationTime:n.getUint32(12),firstOffset:n.getUint32(16)},i=n.getUint16(22);for(t=24;i;t+=12,i--)r.references.push({referenceType:(128&e[t])>>>7,referencedSize:2147483647&n.getUint32(t),subsegmentDuration:n.getUint32(t+4),startsWithSap:!!(128&e[t+8]),sapType:(112&e[t+8])>>>4,sapDeltaTime:268435455&n.getUint32(t+8)});return r},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:r(e)}},stco:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},i=n.getUint32(4);for(t=8;i;t+=4,i--)r.chunkOffsets.push(n.getUint32(t));return r},stsc:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n.getUint32(4),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;r;t+=12,r--)i.sampleToChunks.push({firstChunk:n.getUint32(t),samplesPerChunk:n.getUint32(t+4),sampleDescriptionIndex:n.getUint32(t+8)});return i},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:r(e.subarray(8))}},stsz:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)r.entries.push(n.getUint32(t));return r},stts:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},i=n.getUint32(4);for(t=8;i;t+=8,i--)r.timeToSamples.push({sampleCount:n.getUint32(t),sampleDelta:n.getUint32(t+4)});return r},styp:function(e){return c.ftyp(e)},tfdt:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:e[4]<<24|e[5]<<16|e[6]<<8|e[7]};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=e[8]<<24|e[9]<<16|e[10]<<8|e[11]),t},tfhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],a=8&r.flags[2],s=16&r.flags[2],l=32&r.flags[2],c=65536&r.flags[0],u=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),c&&(r.durationIsEmpty=!0),!i&&u&&(r.baseDataOffsetIsMoof=!0),r},tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=a(t.getUint32(n)),n+=8,r.modificationTime=a(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=8,r.duration=t.getUint32(n)):(r.creationTime=a(t.getUint32(n)),n+=4,r.modificationTime=a(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=4,r.duration=t.getUint32(n)),n+=4,n+=8,r.layer=t.getUint16(n),n+=2,r.alternateGroup=t.getUint16(n),n+=2,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,r.width=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.height=t.getUint16(n)+t.getUint16(n+2)/16,r},traf:function(e){return{boxes:r(e)}},trak:function(e){return{boxes:r(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],o=4&n.flags[2],a=1&n.flags[1],l=2&n.flags[1],c=4&n.flags[1],u=8&n.flags[1],d=r.getUint32(4),f=8;for(i&&(n.dataOffset=r.getInt32(f),f+=4),o&&d&&(t={flags:s(e.subarray(f,f+4))},f+=4,a&&(t.duration=r.getUint32(f),f+=4),l&&(t.size=r.getUint32(f),f+=4),u&&(t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t),d--);d--;)t={},a&&(t.duration=r.getUint32(f),f+=4),l&&(t.size=r.getUint32(f),f+=4),c&&(t.flags=s(e.subarray(f,f+4)),f+=4),u&&(t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t);return n},"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};r=function(e){for(var t,n,r,i,a,s=0,l=[],u=new ArrayBuffer(e.length),d=new Uint8Array(u),f=0;f<e.length;++f)d[f]=e[f];for(t=new DataView(u);s<e.byteLength;)n=t.getUint32(s),r=o(e.subarray(s+4,s+8)),i=n>1?s+n:e.byteLength,(a=(c[r]||function(e){return{data:e}})(e.subarray(s+8,i))).size=n,a.type=r,l.push(a),s=i;return l},i=function(e,t){var n;return t=t||0,n=new Array(2*t+1).join(" "),e.map(function(e,r){return n+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var r=n+"  "+t+": ",i=e[t];if(i instanceof Uint8Array||i instanceof Uint32Array){var o=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return o?1===o.length?r+"<"+o.join("").slice(1)+">":r+"<\n"+o.map(function(e){return n+"  "+e}).join("\n")+"\n"+n+"  >":r+"<>"}return r+JSON.stringify(i,null,2).split("\n").map(function(e,t){return 0===t?e:n+"  "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+i(e.boxes,t+1):"")}).join("\n")},e.exports={inspect:r,textify:i,parseTfdt:c.tfdt,parseHdlr:c.hdlr,parseTfhd:c.tfhd,parseTrun:c.trun,parseSidx:c.sidx}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(2154))&&r.__esModule?r:{default:r};var o=function(e){return e?parseFloat((parseInt(e,16)/255).toFixed(2)):1},a=function(e){var t=(0,i.default)(e),n=t.slice(0,6),r=t.slice(6),a=parseInt(n,16);return[a>>16&255,a>>8&255,a>>0&255,o(r)]};t.default=a},function(e,t,n){"use strict";n.r(t);var r=n(16),i=n.n(r),o=n(38),a=n.n(o),s=n(1196),l=n.n(s),c=n(73),u=n.n(c),d=n(736),f=n.n(d),p=n(737),h=n.n(p),m=n(738),g=n.n(m),v=n(333),y=n.n(v);
/*! @name m3u8-parser @version 4.4.0 @license Apache-2.0 */
function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function _(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var w=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t,n,r,i=this.listeners[e];if(i)if(2===arguments.length)for(n=i.length,t=0;t<n;++t)i[t].call(this,arguments[1]);else for(r=Array.prototype.slice.call(arguments,1),n=i.length,t=0;t<n;++t)i[t].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),E=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return _(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(w),k=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},x=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}_(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(function(t,n){var r=n(e);return r===e?t:t.concat([r])},[e]).forEach(function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var o=k(t[1]);if(o.URI&&(n.uri=o.URI),o.BYTERANGE){var a=o.BYTERANGE.split("@"),s=a[0],l=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),l&&(n.byterange.offset=parseInt(l,10))}}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=k(t[1]),n.attributes.RESOLUTION){var c=n.attributes.RESOLUTION.split("x"),u={};c[0]&&(u.width=parseInt(c[0],10)),c[1]&&(u.height=parseInt(c[1],10)),n.attributes.RESOLUTION=u}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=k(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=k(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=k(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,o=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push(function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:o}),!0})},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push(function(e){return t.test(e)?n(e):e})},t}(w);function S(e){for(var t=y.a.atob(e||""),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}var T=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new E,t.parseStream=new x,t.lineStream.pipe(t.parseStream);var n,r,i=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),o=[],a={},s={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},l=0;return t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},t.parseStream.on("data",function(e){var t,c;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(this.trigger("info",{message:"defaulting offset to zero"}),e.offset=0)),"offset"in e&&(a.byterange=t,t.offset=e.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:S(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,l=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||s,e.attributes?(a.attributes||(a.attributes={}),b(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||s,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(c={default:/yes/i.test(e.attributes.DEFAULT)}).default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=c}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){l+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data}}[e.tagType]||function(){}).call(i)},uri:function(){a.uri=e.uri,o.push(a),!this.manifest.targetDuration||"duration"in a||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=l,n&&(a.map=n),a={}},comment:function(){},custom:function(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)}),t}_(t,e);var n=t.prototype;return n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(w),C=n(613),O=n(726),A=n.n(O),N=n(362),I=n.n(N),M=n(1197),j=n.n(M),L=n(1198),P=n.n(L);var D=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},R=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),F=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},B=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],o=void 0,a=void 0,s=void 0,l=[],c=[],u=void 0,d=void 0,f=void 0,p=void 0,h=void 0;for(o=0;o<256;o++)c[(l[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!r[a];a^=u||1,s=c[s]||1)for(f=(f=s^s<<1^s<<2^s<<3^s<<4)>>8^255&f^99,r[a]=f,i[f]=a,h=16843009*l[d=l[u=l[a]]]^65537*d^257*u^16843008*a,p=257*l[f]^16843008*f,o=0;o<4;o++)t[o][a]=p=p<<24^p>>>8,n[o][f]=h=h<<24^h>>>8;for(o=0;o<5;o++)t[o]=t[o].slice(0),n[o]=n[o].slice(0);return e},U=null,q=function(){function e(t){D(this,e),U||(U=B()),this._tables=[[U[0][0].slice(),U[0][1].slice(),U[0][2].slice(),U[0][3].slice(),U[0][4].slice()],[U[1][0].slice(),U[1][1].slice(),U[1][2].slice(),U[1][3].slice(),U[1][4].slice()]];var n=void 0,r=void 0,i=void 0,o=void 0,a=void 0,s=this._tables[0][4],l=this._tables[1],c=t.length,u=1;if(4!==c&&6!==c&&8!==c)throw new Error("Invalid aes key size");for(o=t.slice(0),a=[],this._key=[o,a],n=c;n<4*c+28;n++)i=o[n-1],(n%c==0||8===c&&n%c==4)&&(i=s[i>>>24]<<24^s[i>>16&255]<<16^s[i>>8&255]<<8^s[255&i],n%c==0&&(i=i<<8^i>>>24^u<<24,u=u<<1^283*(u>>7))),o[n]=o[n-c]^i;for(r=0;n;r++,n--)i=o[3&r?n:n-4],a[r]=n<=4||r<4?i:l[0][s[i>>>24]]^l[1][s[i>>16&255]]^l[2][s[i>>8&255]]^l[3][s[255&i]]}return e.prototype.decrypt=function(e,t,n,r,i,o){var a=this._key[1],s=e^a[0],l=r^a[1],c=n^a[2],u=t^a[3],d=void 0,f=void 0,p=void 0,h=a.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],w=v[3],E=v[4];for(m=0;m<h;m++)d=y[s>>>24]^b[l>>16&255]^_[c>>8&255]^w[255&u]^a[g],f=y[l>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&s]^a[g+1],p=y[c>>>24]^b[u>>16&255]^_[s>>8&255]^w[255&l]^a[g+2],u=y[u>>>24]^b[s>>16&255]^_[l>>8&255]^w[255&c]^a[g+3],g+=4,s=d,l=f,c=p;for(m=0;m<4;m++)i[(3&-m)+o]=E[s>>>24]<<24^E[l>>16&255]<<16^E[c>>8&255]<<8^E[255&u]^a[g++],d=s,s=l,l=c,c=u,u=d},e}(),z=function(){function e(){D(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),H=function(e){function t(){D(this,t);var n=F(this,e.call(this,z));return n.jobs=[],n.delay=1,n.timeout_=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},t.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(z),W=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},$=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new q(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),a=new Int32Array(o.buffer),s=void 0,l=void 0,c=void 0,u=void 0,d=void 0,f=void 0,p=void 0,h=void 0,m=void 0;for(s=n[0],l=n[1],c=n[2],u=n[3],m=0;m<r.length;m+=4)d=W(r[m]),f=W(r[m+1]),p=W(r[m+2]),h=W(r[m+3]),i.decrypt(d,f,p,h,a,m),a[m]=W(a[m]^s),a[m+1]=W(a[m+1]^l),a[m+2]=W(a[m+2]^c),a[m+3]=W(a[m+3]^u),s=d,l=f,c=p,u=h;return o},Y=function(){function e(t,n,r,i){D(this,e);var o=e.STEP,a=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new H,this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+o),n,r,s)),l=o;l<a.length;l+=o)r=new Uint32Array([W(a[l-4]),W(a[l-3]),W(a[l-2]),W(a[l-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(l,l+o),n,r,s));this.asyncStream_.push(function(){var e;i(null,(e=s).subarray(0,e.byteLength-e[e.byteLength-1]))})}return e.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=$(e,t,n);r.set(i,e.byteOffset)}},R(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}(),V="7.6.5",K=[],G=function(e,t){return function(n,r,o){var a=t.levels[r],s=new RegExp("^("+a+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),K&&K.push([].concat(o)),i.a.console){var l=i.a.console[n];l||"debug"!==n||(l=i.a.console.info||i.a.console.log),l&&a&&s.test(n)&&l[Array.isArray(o)?"apply":"call"](i.a.console,o)}}};var X=function e(t){var n,r="info",i=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=G(t,i),i.createLogger=function(n){return e(t+": "+n)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},i.level=function(e){if("string"==typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(i.history=function(){return K?[].concat(K):[]}).filter=function(e){return(K||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},i.history.clear=function(){K&&(K.length=0)},i.history.disable=function(){null!==K&&(K.length=0,K=null)},i.history.enable=function(){null===K&&(K=[])},i.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},i.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},i.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},i}("VIDEOJS"),Q=X.createLogger,Z=Object.prototype.toString,J=function(e){return ne(e)?Object.keys(e):[]};function ee(e,t){J(e).forEach(function(n){return t(e[n],n)})}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&ee(t,function(t,n){e[n]=t})}),e)}function ne(e){return!!e&&"object"==typeof e}function re(e){return ne(e)&&"[object Object]"===Z.call(e)&&e.constructor===Object}function ie(e,t){if(!e||!t)return"";if("function"==typeof i.a.getComputedStyle){var n=i.a.getComputedStyle(e);return n?n.getPropertyValue(t)||n[t]:""}return""}function oe(e){return"string"==typeof e&&/\S/.test(e)}function ae(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function se(){return a.a===i.a.document}function le(e){return ne(e)&&1===e.nodeType}function ce(){try{return i.a.parent!==i.a.self}catch(e){return!0}}function ue(e){return function(t,n){if(!oe(t))return a.a[e](null);oe(n)&&(n=a.a.querySelector(n));var r=le(n)?n:a.a;return r[e]&&r[e](t)}}function de(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(X.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?fe(i,n):i[e]=n}),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&Ie(i,r),i}function fe(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function pe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function he(e,t){return ae(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function me(e,t){return e.classList?e.classList.add(t):he(e,t)||(e.className=(e.className+" "+t).trim()),e}function ge(e,t){return e.classList?e.classList.remove(t):(ae(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function ve(e,t,n){var r=he(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?me(e,t):ge(e,t),e}function ye(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function be(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function _e(e,t){return e.getAttribute(t)}function we(e,t,n){e.setAttribute(t,n)}function Ee(e,t){e.removeAttribute(t)}function ke(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function xe(){a.a.onselectstart=function(){return!0}}function Se(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(ie(e,"height"))),n.width||(n.width=parseFloat(ie(e,"width"))),n}}function Te(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=a.a.documentElement,r=a.a.body,o=n.clientLeft||r.clientLeft||0,s=i.a.pageXOffset||r.scrollLeft,l=t.left+s-o,c=n.clientTop||r.clientTop||0,u=i.a.pageYOffset||r.scrollTop,d=t.top+u-c;return{left:Math.round(l),top:Math.round(d)}}function Ce(e,t){var n={},r=Te(e),i=e.offsetWidth,o=e.offsetHeight,a=r.top,s=r.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-s)/i)),n}function Oe(e){return ne(e)&&3===e.nodeType}function Ae(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ne(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),le(e)||Oe(e)?e:"string"==typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0}).filter(function(e){return e})}function Ie(e,t){return Ne(t).forEach(function(t){return e.appendChild(t)}),e}function Me(e,t){return Ie(Ae(e),t)}function je(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Le,Pe=ue("querySelector"),De=ue("querySelectorAll"),Re=Object.freeze({isReal:se,isEl:le,isInFrame:ce,createEl:de,textContent:fe,prependTo:pe,hasClass:he,addClass:me,removeClass:ge,toggleClass:ve,setAttributes:ye,getAttributes:be,getAttribute:_e,setAttribute:we,removeAttribute:Ee,blockTextSelection:ke,unblockTextSelection:xe,getBoundingClientRect:Se,findPosition:Te,getPointerPosition:Ce,isTextNode:Oe,emptyEl:Ae,normalizeContent:Ne,appendContent:Ie,insertContent:Me,isSingleLeftClick:je,$:Pe,$$:De}),Fe=!1,Be=function(){if(se()&&!1!==Le.options.autoSetup){var e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(!s||!s.getAttribute){Ue(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&Le(s)}else Fe||Ue(1)}};function Ue(e,t){t&&(Le=t),i.a.setTimeout(Be,e)}function qe(){Fe=!0,i.a.removeEventListener("load",qe)}se()&&("complete"===a.a.readyState?qe():i.a.addEventListener("load",qe));var ze=function(e){var t=a.a.createElement("style");return t.className=e,t},He=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},We=new WeakMap,$e=3;function Ye(){return $e++}function Ve(e,t){if(We.has(e)){var n=We.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&We.delete(e)}}function Ke(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Ge(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||i.a.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=a.a.documentElement,l=a.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var Xe=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){Xe=!0}});i.a.addEventListener("test",null,e),i.a.removeEventListener("test",null,e)}catch(e){}}();var Qe=["touchstart","touchmove"];function Ze(e,t,n){if(Array.isArray(t))return Ke(Ze,e,t,n);We.has(e)||We.set(e,{});var r=We.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Ye()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Ge(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){X.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;Xe&&Qe.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Je(e,t,n){if(We.has(e)){var r=We.get(e);if(r.handlers){if(Array.isArray(t))return Ke(Je,e,t,n);var i=function(e,t){r.handlers[t]=[],Ve(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);Ve(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function et(e,t,n){var r=We.has(e)?We.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ge(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)et.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){We.has(t.target)||We.set(t.target,{});var o=We.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function tt(e,t,n){if(Array.isArray(t))return Ke(tt,e,t,n);var r=function r(){Je(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Ye(),Ze(e,t,r)}function nt(e,t,n){var r=function r(){Je(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Ye(),Ze(e,t,r)}var rt,it=Object.freeze({fixEvent:Ge,on:Ze,off:Je,trigger:et,one:tt,any:nt}),ot=30,at=function(e,t,n){t.guid||(t.guid=Ye());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},st=function(e,t){var n=i.a.performance.now();return function(){var r=i.a.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},lt=function(e,t,n,r){var o;void 0===r&&(r=i.a);var a=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||e.apply(i,a)};!o&&n&&e.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,t)};return a.cancel=function(){r.clearTimeout(o),o=null},a},ct=function(){};ct.prototype.allowedEvents_={},ct.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ze(this,e,t),this.addEventListener=n},ct.prototype.addEventListener=ct.prototype.on,ct.prototype.off=function(e,t){Je(this,e,t)},ct.prototype.removeEventListener=ct.prototype.off,ct.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},tt(this,e,t),this.addEventListener=n},ct.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},nt(this,e,t),this.addEventListener=n},ct.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Ge(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),et(this,e)},ct.prototype.dispatchEvent=ct.prototype.trigger,ct.prototype.queueTrigger=function(e){var t=this;rt||(rt=new Map);var n=e.type||e,r=rt.get(this);r||(r=new Map,rt.set(this,r));var o=r.get(n);r.delete(n),i.a.clearTimeout(o);var a=i.a.setTimeout(function(){0===r.size&&(r=null,rt.delete(t)),t.trigger(e)},0);r.set(n,a)};var ut=function(e){return e instanceof ct||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},dt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ft=function(e){if(!e.nodeName&&!ut(e))throw new Error("Invalid target; must be a DOM node or evented object.")},pt=function(e){if(!dt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ht=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},mt=function(e,t){var n,r,i,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),ft(n),pt(r),ht(i),{isTargetingSelf:o,target:n,type:r,listener:i=at(e,i)}},gt=function(e,t,n,r){ft(e),e.nodeName?it[t](e,n,r):e[t](n,r)},vt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=mt(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(gt(a,"on",s,l),!o){var c=function(){return e.off(a,s,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,gt(this,"on","dispose",c),gt(a,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=mt(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(o)gt(a,"one",s,l);else{var c=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};c.guid=l.guid,gt(a,"one",s,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=mt(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,l=i.listener;if(o)gt(a,"any",s,l);else{var c=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};c.guid=l.guid,gt(a,"any",s,c)}},off:function(e,t,n){if(!e||dt(e))Je(this.eventBusEl_,e,t);else{var r=e,i=t;ft(r),pt(i),ht(n),n=at(this,n),this.off("dispose",n),r.nodeName?(Je(r,i,n),Je(r,"dispose",n)):ut(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return et(this.eventBusEl_,e,t)}};function yt(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=de("span",{className:"vjs-event-bus"});return te(e,vt),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),i.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}var bt={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),ee(e,function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e}),t&&ut(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function _t(e,t){return te(e,bt),e.state=te({},e.state,t),"function"==typeof e.handleStateChanged&&ut(e)&&e.on("statechanged",e.handleStateChanged),e}var wt=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},Et=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})};function kt(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&ee(t,function(t,n){re(t)?(re(e[n])||(e[n]={}),e[n]=kt(e[n],t)):e[n]=t})}),e}var xt=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.parentComponent_=null,this.options_=kt({},this.options_),t=this.options_=kt(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Ye()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&yt(this,{eventBusKey:this.el_?"el_":null}),_t(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),We.has(this.el_)&&We.delete(this.el_),this.el_=null),this.player_=null},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=kt(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return de(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],l=n;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i})),l},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=Et(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&Et(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[wt(o)]=i),"function"==typeof i.el&&i.el()){var l=this.contentEl().children[r]||null;this.contentEl().insertBefore(i.el(),l)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Et(e.name())]=null,this.childNameIndex_[wt(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||Et(t.name));return n&&!o.isTech(n)}).forEach(function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}})}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return Pe(e,t||this.contentEl())},t.$$=function(e,t){return De(e,t||this.contentEl())},t.hasClass=function(e){return he(this.el_,e)},t.addClass=function(e){me(this.el_,e)},t.removeClass=function(e){ge(this.el_,e)},t.toggleClass=function(e,t){ve(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return _e(this.el_,e)},t.setAttribute=function(e,t){we(this.el_,e,t)},t.removeAttribute=function(e){Ee(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+Et(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=ie(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+Et(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i.a.performance.now(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}});var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(n=null,!0===e)&&(i.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=at(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=at(this,e),this.clearTimersOnDispose_(),n=i.a.setTimeout(function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),i.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=at(this,e),this.clearTimersOnDispose_();var n=i.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),i.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=at(this,e),t=i.a.requestAnimationFrame(function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),i.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var n=t[0],r=t[1];e[n].forEach(e[r],e)}),e.clearingTimersOnDispose_=!1}))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),o=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw r=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=Et(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,c=Object.keys(l);if(l&&c.length>0&&c.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[wt(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function St(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Tt(e,t){return(Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e,t,n){return(Ct=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Tt(i,n.prototype),i}).apply(null,arguments)}function Ot(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}xt.prototype.supportsRaf_="function"==typeof i.a.requestAnimationFrame&&"function"==typeof i.a.cancelAnimationFrame,xt.registerComponent("Component",xt);var At,Nt=i.a.navigator&&i.a.navigator.userAgent||"",It=/AppleWebKit\/([\d.]+)/i.exec(Nt),Mt=It?parseFloat(It.pop()):null,jt=/iPad/i.test(Nt),Lt=/iPhone/i.test(Nt)&&!jt,Pt=/iPod/i.test(Nt),Dt=Lt||jt||Pt,Rt=(At=Nt.match(/OS (\d+)_/i))&&At[1]?At[1]:null,Ft=/Android/i.test(Nt),Bt=function(){var e=Nt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Ut=Ft&&Bt<5&&Mt<537,qt=/Firefox/i.test(Nt),zt=/Edge/i.test(Nt),Ht=!zt&&(/Chrome/i.test(Nt)||/CriOS/i.test(Nt)),Wt=function(){var e=Nt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),$t=function(){var e=/MSIE\s(\d+)\.\d/.exec(Nt),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Nt)&&/rv:11.0/.test(Nt)&&(t=11),t}(),Yt=/Safari/i.test(Nt)&&!Ht&&!Ft&&!zt,Vt=(Yt||Dt)&&!Ht,Kt=/Windows/i.test(Nt),Gt=se()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch),Xt=Object.freeze({IS_IPAD:jt,IS_IPHONE:Lt,IS_IPOD:Pt,IS_IOS:Dt,IOS_VERSION:Rt,IS_ANDROID:Ft,ANDROID_VERSION:Bt,IS_NATIVE_ANDROID:Ut,IS_FIREFOX:qt,IS_EDGE:zt,IS_CHROME:Ht,CHROME_VERSION:Wt,IE_VERSION:$t,IS_SAFARI:Yt,IS_ANY_SAFARI:Vt,IS_WINDOWS:Kt,TOUCH_ENABLED:Gt});function Qt(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function Zt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Qt.bind(null,"start",0,e),end:Qt.bind(null,"end",1,e)}}function Jt(e,t){return Array.isArray(e)?Zt(e):void 0===e||void 0===t?Zt():Zt([[e,t]])}function en(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Jt(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}for(var tn,nn={prefixed:!0},rn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],on=rn[0],an=0;an<rn.length;an++)if(rn[an][1]in a.a){tn=rn[an];break}if(tn){for(var sn=0;sn<tn.length;sn++)nn[on[sn]]=tn[sn];nn.prefixed=tn[0]!==on[0]}function ln(e){if(e instanceof ln)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ne(e)&&("number"==typeof e.code&&(this.code=e.code),te(this,e)),this.message||(this.message=ln.defaultMessages[this.code]||"")}ln.prototype.code=0,ln.prototype.message="",ln.prototype.status=null,ln.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ln.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var cn=0;cn<ln.errorTypes.length;cn++)ln[ln.errorTypes[cn]]=cn,ln.prototype[ln.errorTypes[cn]]=cn;function un(e){return null!=e&&"function"==typeof e.then}function dn(e){un(e)&&e.then(null,function(e){})}var fn=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},pn=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=fn(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===n.indexOf(e)}).map(fn))},hn=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},mn="vjs-modal-dialog",gn=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=de("div",{className:mn+"-content"},{role:"document"}),r.descEl_=de("p",{className:mn+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),fe(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return mn+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Me(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),Ae(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),u.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(u.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}a.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof i.a.HTMLAnchorElement||e instanceof i.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i.a.HTMLInputElement||e instanceof i.a.HTMLSelectElement||e instanceof i.a.HTMLTextAreaElement||e instanceof i.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i.a.HTMLIFrameElement||e instanceof i.a.HTMLObjectElement||e instanceof i.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(xt);gn.prototype.options_={pauseOnOpen:!0,temporary:!0},xt.registerComponent("ModalDialog",gn);var vn=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(Ot(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}St(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this}))},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(ct);for(var yn in vn.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},vn.prototype.allowedEvents_)vn.prototype["on"+yn]=null;var bn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},_n=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){bn(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}St(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&bn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,bn(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(vn),wn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},En=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){wn(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(Ot(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}St(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&wn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,wn(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(vn),kn=function(e){function t(){return e.apply(this,arguments)||this}St(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(vn),xn=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Sn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),Tn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Cn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},On={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},An={disabled:"disabled",hidden:"hidden",showing:"showing"},Nn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+Ye(),kind:t.kind||"",label:t.label||"",language:t.language||""},i=function(e){Object.defineProperty(Ot(n),e,{get:function(){return r[e]},set:function(){}})};for(var o in r)i(o);return n}return St(t,e),t}(ct),In=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.a.createElement("a");n.href=e;var r,o=""===n.host&&"file:"!==n.protocol;o&&((r=a.a.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),a.a.body.appendChild(r));for(var s={},l=0;l<t.length;l++)s[t[l]]=n[t[l]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=i.a.location.protocol),o&&a.a.body.removeChild(r),s},Mn=function(e){if(!e.match(/^https?:\/\//)){var t=a.a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},jn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Ln=function(e){var t=i.a.location,n=In(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},Pn=Object.freeze({parseUrl:In,getAbsoluteURL:Mn,getFileExtension:jn,isCrossOrigin:Ln}),Dn=function(e,t){var n=new i.a.WebVTT.Parser(i.a,i.a.vttjs,i.a.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i.a.console&&i.a.console.groupCollapsed&&i.a.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return X.error(e)}),i.a.console&&i.a.console.groupEnd&&i.a.console.groupEnd()),n.flush()},Rn=function(e,t){var n={uri:e},r=Ln(e);r&&(n.cors=r),f()(n,at(this,function(e,n,r){if(e)return X.error(e,n);t.loaded_=!0,"function"!=typeof i.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){if("vttjserror"!==e.type)return Dn(r,t);X.error("vttjs failed to load, stopping trying to process "+t.src)}):Dn(r,t)}))},Fn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=kt(t,{kind:On[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=An[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[];var a=new Sn(n.cues_),s=new Sn(n.activeCues_),l=!1,c=at(Ot(n),function(){this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1)});return"disabled"!==i&&n.tech_.ready(function(){n.tech_.on("timeupdate",c)},!0),Object.defineProperties(Ot(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return i},set:function(e){var t=this;An[e]&&("disabled"!==(i=e)?this.tech_.ready(function(){t.tech_.on("timeupdate",c)},!0):this.tech_.off("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=e&&i.endTime>=e?t.push(i):i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e&&t.push(i)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(l=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,Rn(r.src,Ot(n))):n.loaded_=!0,n}St(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(i.a.vttjs&&!(e instanceof i.a.vttjs.VTTCue)){for(var n in t=new i.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Nn);Fn.prototype.allowedEvents_={cuechange:"cuechange"};var Bn=function(e){function t(t){var n;void 0===t&&(t={});var r=kt(t,{kind:Cn[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(Ot(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return St(t,e),t}(Nn),Un=function(e){function t(t){var n;void 0===t&&(t={});var r=kt(t,{kind:Tn[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(Ot(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return St(t,e),t}(Nn),qn=0,zn=2,Hn=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new Fn(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(Ot(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=qn,i.addEventListener("loadeddata",function(){r=zn,n.trigger({type:"load",target:Ot(n)})}),n}return St(t,e),t}(ct);Hn.prototype.allowedEvents_={load:"load"},Hn.NONE=qn,Hn.LOADING=1,Hn.LOADED=zn,Hn.ERROR=3;var Wn={audio:{ListClass:_n,TrackClass:Bn,capitalName:"Audio"},video:{ListClass:En,TrackClass:Un,capitalName:"Video"},text:{ListClass:kn,TrackClass:Fn,capitalName:"Text"}};Object.keys(Wn).forEach(function(e){Wn[e].getterName=e+"Tracks",Wn[e].privateName=e+"Tracks_"});var $n={remoteText:{ListClass:kn,TrackClass:Fn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:xn,TrackClass:Hn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Yn=kt(Wn,$n);$n.names=Object.keys($n),Wn.names=Object.keys(Wn),Yn.names=[].concat($n.names).concat(Wn.names);var Vn=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),Yn.names.forEach(function(e){var n=Yn[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new Yn.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}St(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(at(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Jt(0,0)},n.bufferedPercent=function(){return en(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Wn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.error=function(e){return void 0!==e&&(this.error_=new ln(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Jt(0,0):Jt()},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Wn.names.forEach(function(t){var n=Wn[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})},n.addWebVttScript_=function(){var e=this;if(!i.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&re(h.a)&&Object.keys(h.a).length>0)return void this.trigger("vttjsloaded");var t=a.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),i.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",o)}})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var a=new Yn.text.TrackClass(i);return o.addTrack(a),a}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=kt(e,{tech:this});return new $n.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(X.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(r.track)}),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i.a.Promise;if(e)return e.reject()},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Et(e),t.techs_[e]=n,t.techs_[wt(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Et(e),i.a&&i.a.videojs&&i.a.videojs[e]?(X.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.a.videojs[e]):void 0)},t}(xt);Yn.names.forEach(function(e){var t=Yn[e];Vn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Vn.prototype.featuresVolumeControl=!0,Vn.prototype.featuresMuteControl=!0,Vn.prototype.featuresFullscreenResize=!1,Vn.prototype.featuresPlaybackRate=!1,Vn.prototype.featuresProgressEvents=!1,Vn.prototype.featuresSourceset=!1,Vn.prototype.featuresTimeupdateEvents=!1,Vn.prototype.featuresNativeTextTracks=!1,Vn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:X.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},xt.registerComponent("Tech",Vn),Vn.registerTech("Tech",Vn),Vn.defaultTechOrder_=[];var Kn={},Gn={},Xn={};function Qn(e,t,n){e.setTimeout(function(){return function e(t,n,r,i,o,a){void 0===t&&(t={});void 0===n&&(n=[]);void 0===o&&(o=[]);void 0===a&&(a=!1);var s=n,l=s[0],c=s.slice(1);if("string"==typeof l)e(t,Kn[l],r,i,o,a);else if(l){var u=function(e,t){var n=Gn[e.id()],r=null;if(null==n)return r=t(e),Gn[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===t&&(r=s)}null===r&&(r=t(e),n.push([t,r]));return r}(i,l);if(!u.setSource)return o.push(u),e(t,c,r,i,o,a);u.setSource(te({},t),function(n,s){if(n)return e(t,c,r,i,o,a);o.push(u),e(s,t.type===s.type?c:Kn[s.type],r,i,o,a)})}else c.length?e(t,c,r,i,o,a):a?r(t,o):e(t,Kn["*"],r,i,o,!0)}(t,Kn[t.type],n,e)},1)}function Zn(e,t,n,r){void 0===r&&(r=null);var i="call"+Et(n),o=e.reduce(nr(i),r),a=o===Xn,s=a?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,s,a),s}var Jn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1,volume:1},er={setCurrentTime:1,setVolume:1},tr={play:1,pause:1};function nr(e){return function(t,n){return t===Xn?Xn:n[e]?n[e](t):t}}var rr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},ir=function(e){void 0===e&&(e="");var t=jn(e);return rr[t.toLowerCase()]||""};function or(e){if(!e.type){var t=ir(e.src);t&&(e.type=t)}return e}var ar=function(e){function t(t,n,r){var i,o=kt({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var l=Et(s[a]),c=Vn.getTech(l);if(l||(c=xt.getComponent(l)),c&&c.isSupported()){t.loadTech_(l);break}}return i}return St(t,e),t}(xt);xt.registerComponent("MediaLoader",ar);var sr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).emitTapEvents(),r.enable(),r}St(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=te({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&X.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=te({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=de("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,fe(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleClick=function(e){},n.handleKeyDown=function(t){u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(xt);xt.registerComponent("ClickableComponent",sr);var lr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",at(Ot(r),r.update)),r}St(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},n.createEl=function(){return de("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?dn(this.player_.play()):this.player_.pause())},t}(sr);xt.registerComponent("PosterImage",lr);var cr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ur(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function dr(e,t,n){try{e.style[t]=n}catch(e){return}}var fr=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var a=at(Ot(o),o.updateDisplay);return t.on("loadstart",at(Ot(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",at(Ot(o),o.preselectTrack)),t.ready(at(Ot(o),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),i.a.addEventListener("orientationchange",a),t.on("dispose",function(){return i.a.removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}})),o}St(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<i.length;a++){var s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in r?s.kind===o.kind?n=s:n||(n=s):o&&!o.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof i.a.WebVTT&&i.a.WebVTT.processCues(i.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,a=null,s=e.length;s--;){var l=e[s];"showing"===l.mode&&("descriptions"===l.kind?o=l:a=l)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var o=n[r];if(o){var a=o.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&dr(a.firstChild,"color",ur(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&dr(a.firstChild,"backgroundColor",ur(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?dr(a,"backgroundColor",ur(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=i.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=cr[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof i.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],o=0;o<r.activeCues.length;++o)t.push(r.activeCues[o]);i.a.WebVTT.processCues(i.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],l=0;l<s.activeCues.length;++l){var c=s.activeCues[l].displayState;me(c,"vjs-text-track-cue"),me(c,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(xt);xt.registerComponent("TextTrackDisplay",fr);var pr=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=de("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(xt);xt.registerComponent("LoadingSpinner",pr);var hr=function(e){function t(){return e.apply(this,arguments)||this}St(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=te({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=te({type:"button"},n);var r=xt.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return X.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),xt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(sr);xt.registerComponent("Button",hr);var mr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return dn(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var i=function(){return r.focus()};un(t)?t.then(i,function(){}):this.setTimeout(i,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(hr);mr.prototype.controlText_="Play Video",xt.registerComponent("BigPlayButton",mr);var gr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){u.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(hr);xt.registerComponent("CloseButton",gr);var vr=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),n.replay&&r.on(t,"ended",r.handleEnded),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(hr);vr.prototype.controlText_="Play",xt.registerComponent("PlayToggle",vr);var yr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},br=yr;function _r(e,t){return void 0===t&&(t=e),br(e,t)}var wr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).throttledUpdateContent=st(at(Ot(r),r.updateContent),ot),r.on(t,"timeupdate",r.throttledUpdateContent),r}St(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=de("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=a.a.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},n.formatTime_=function(e){return _r(e)},n.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},n.updateContent=function(e){},t}(xt);wr.prototype.labelText_="Time",wr.prototype.controlText_="Time",xt.registerComponent("TimeDisplay",wr);var Er=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"ended",r.handleEnded),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(wr);Er.prototype.labelText_="Current Time",Er.prototype.controlText_="Current Time",xt.registerComponent("CurrentTimeDisplay",Er);var kr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r.on(t,"loadstart",r.updateContent),r.on(t,"loadedmetadata",r.throttledUpdateContent),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(wr);kr.prototype.labelText_="Duration",kr.prototype.controlText_="Duration",xt.registerComponent("DurationDisplay",kr);var xr=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(xt);xt.registerComponent("TimeDivider",xr);var Sr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.throttledUpdateContent),r.on(t,"ended",r.handleEnded),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(de("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){"number"==typeof this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(wr);Sr.prototype.labelText_="Remaining Time",Sr.prototype.controlText_="Remaining Time",xt.registerComponent("RemainingTimeDisplay",Sr);var Tr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}St(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=de("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(xt);xt.registerComponent("LiveDisplay",Tr);var Cr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus),r}St(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=de("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(e){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,e.prototype.dispose.call(this)},t}(hr);Cr.prototype.controlText_="Seek to live, currently playing live",xt.registerComponent("SeekToLive",Cr);var Or=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}St(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=te({tabIndex:0},n),r=te({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Ht||e.preventDefault(),ke(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;xe(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!=e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",r=t.el().style,i=this.vertical()?"height":"width";return r[i]!==n&&(r[i]=n),e}}},n.calculateDistance=function(e){var t=Ce(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){u.a.isEventKey(t,"Left")||u.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):u.a.isEventKey(t,"Right")||u.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(xt);xt.registerComponent("Slider",Or);var Ar=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",r.update),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+'</span>: <span class="vjs-control-text-loaded-percentage">0%</span></span>'})},n.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this.player_.liveTracker,n=this.player_.buffered(),r=t&&t.isLive()?t.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),o=this.partEls_,a=this.$(".vjs-control-text-loaded-percentage"),s=function(e,t,n){var r=e/t||0;return r=100*(r>=1?1:r),n&&(r=r.toFixed(2)),r+"%"};this.el_.style.width=s(i,r),fe(a,s(i,r,!0));for(var l=0;l<n.length;l++){var c=n.start(l),u=n.end(l),d=o[l];d||(d=this.el_.appendChild(de()),o[l]=d),d.style.left=s(c,i),d.style.width=s(u-c,i)}for(var f=o.length;f>n.length;f--)this.el_.removeChild(o[f-1]);o.length=n.length},t}(xt);xt.registerComponent("LoadProgressBar",Ar);var Nr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=st(at(Ot(r),r.update),ot),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=Se(this.el_),i=Se(this.player_.el()),o=e.width*t;if(i&&r){var a=e.left-i.left+o,s=e.width-o+(i.right-e.right),l=r.width/2;a<l?l+=l-a:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){fe(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var o,a=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),l=s-t*s;o=(l<1?"":"-")+_r(l,s)}else o=_r(n,a);i.update(e,t,o),r&&r()})},t}(xt);xt.registerComponent("TimeTooltip",Nr);var Ir=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=st(at(Ot(r),r.update),ot),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(xt);Ir.prototype.options_={children:[]},Dt||Ft||Ir.prototype.options_.children.push("timeTooltip"),xt.registerComponent("PlayProgressBar",Ir);var Mr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=st(at(Ot(r),r.update),ot),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,function(){n.el_.style.left=e.width*t+"px"})},t}(xt);Mr.prototype.options_={children:["timeTooltip"]},xt.registerComponent("MouseTimeDisplay",Mr);var jr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}St(t,e);var n=t.prototype;return n.setEventHandlers_=function(){this.update=st(at(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.on(this.player_,"durationchange",this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){a.a.hidden?this.disableInterval_(e):(this.enableInterval_(),this.requestAnimationFrame(this.update))},n.enableInterval_=function(){var e=this;this.clearInterval(this.updateInterval),this.updateInterval=this.setInterval(function(){e.requestAnimationFrame(e.update)},30)},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&"ended"!==e.type||this.clearInterval(this.updateInterval)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update_=function(e,t){var n=this.player_.liveTracker,r=this.player_.duration();n&&n.isLive()&&(r=this.player_.liveTracker.liveCurrentTime()),this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[_r(e,r),_r(r,r)],"{1} of {2}")),this.bar&&this.bar.update(Se(this.el_),t)},n.update=function(t){if(null!==this.el().offsetParent){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n}},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.handleEnded=function(e){this.update_(this.player_.duration(),1)},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e>=1?1:e||0},n.handleMouseDown=function(t){je(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(je(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&dn(this.player_.play())},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){if(u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(u.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(0);else if(u.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(u()(t))){t.preventDefault(),t.stopPropagation();var n=10*(u.a.codes[u()(t)]-u.a.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else u.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):u.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},t}(Or);jr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Dt||Ft||jr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),xt.registerComponent("SeekBar",jr);var Lr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=st(at(Ot(r),r.handleMouseMove),ot),r.throttledHandleMouseSeek=st(at(Ot(r),r.handleMouseSeek),ot),r.enable(),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),r=t.el(),i=Se(r),o=Ce(r,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(i,o)}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(xt);Lr.prototype.options_={children:["seekBar"]},xt.registerComponent("ProgressControl",Lr);var Pr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange),a.a.pictureInPictureEnabled||r.disable(),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture")},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(hr);Pr.prototype.controlText_="Picture-in-Picture",xt.registerComponent("PictureInPictureToggle",Pr);var Dr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",r.handleFullscreenChange),!1===a.a[t.fsApi_.fullscreenEnabled]&&r.disable(),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(hr);Dr.prototype.controlText_="Fullscreen",xt.registerComponent("FullscreenToggle",Dr);var Rr=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},Fr=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(xt);xt.registerComponent("VolumeLevel",Fr);var Br=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",r.updateLastVolume_),r.on(t,"volumechange",r.updateARIAAttributes),t.ready(function(){return r.updateARIAAttributes()}),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){je(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){je(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Or);Br.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Br.prototype.playerEvent="volumechange",xt.registerComponent("VolumeBar",Br);var Ur=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||re(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,Rr(Ot(r),t),r.throttledHandleMouseMove=st(at(Ot(r),r.handleMouseMove),ot),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}St(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(xt);Ur.prototype.options_={children:["volumeBar"]},xt.registerComponent("VolumeControl",Ur);var qr=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},zr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,qr(Ot(r),t),r.on(t,["loadstart","volumechange"],r.update),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Dt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ge(this.el_,"vjs-vol-"+n);me(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(hr);zr.prototype.controlText_="Mute",xt.registerComponent("MuteToggle",zr);var Hr=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||re(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).on(t,["loadstart"],r.volumePanelState_),r.on(r.muteToggle,"keyup",r.handleKeyPress),r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp),r.on("keydown",r.handleKeyPress),r.on("mouseover",r.handleMouseOver),r.on("mouseout",r.handleMouseOut),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}St(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ze(a.a,"keyup",at(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Je(a.a,"keyup",at(this,this.handleKeyPress))},n.handleKeyPress=function(e){u.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(xt);Hr.prototype.options_={children:["muteToggle","volumeControl"]},xt.registerComponent("VolumePanel",Hr);var Wr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyDown),r.boundHandleBlur_=at(Ot(r),r.handleBlur),r.boundHandleTapClick_=at(Ot(r),r.handleTapClick),r}St(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof xt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof xt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=de(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ze(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||a.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter(function(t){return t.el()===e.target})[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){u.a.isEventKey(e,"Left")||u.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u.a.isEventKey(e,"Right")||u.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(xt);xt.registerComponent("Menu",Wr);var $r=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new hr(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=hr.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",function(){r.addClass("vjs-hover"),r.menu.show(),Ze(a.a,"keyup",at(Ot(r),r.handleMenuKeyUp))}),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}St(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Wr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=de("li",{className:"vjs-menu-title",innerHTML:Et(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new xt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+hr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Je(a.a,"keyup",at(this,this.handleMenuKeyUp))},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),u.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(u.a.isEventKey(e,"Up")||u.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),u.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Dt&&ce())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(xt);xt.registerComponent("MenuButton",$r);var Yr=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return Ot(r);var o=at(Ot(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),r.player_.on("ready",o),r.player_.on("dispose",function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o)}),r}return St(t,e),t}($r);xt.registerComponent("TrackButton",Yr);var Vr=["Tab","Esc","Up","Down","Right","Left"],Kr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}St(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",te({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){Vr.some(function(e){return u.a.isEventKey(t,e)})||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(sr);xt.registerComponent("MenuItem",Kr);var Gr=function(e){function t(t,n){var r,o=n.track,s=t.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=e.call(this,t,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var l,c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(Ot(r),t)},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(Ot(r),t)};(t.on(["loadstart","texttrackchange"],c),s.addEventListener("change",c),s.addEventListener("selectedlanguagechange",u),r.on("dispose",function(){t.off(["loadstart","texttrackchange"],c),s.removeEventListener("change",c),s.removeEventListener("selectedlanguagechange",u)}),void 0===s.onchange)&&r.on(["tap","click"],function(){if("object"!=typeof i.a.Event)try{l=new i.a.Event("change")}catch(e){}l||(l=a.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(l)});return r.handleTracksChange(),r}St(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Kr);xt.registerComponent("TextTrackMenuItem",Gr);var Xr=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}St(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Gr);xt.registerComponent("OffTextTrackMenuItem",Xr);var Qr=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return St(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Gr),this.label_&&(n=this.label_+" off"),e.push(new Xr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Yr);xt.registerComponent("TextTrackButton",Qr);var Zr=function(e){function t(t,n){var r,i=n.track,o=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",at(Ot(r),r.update)),r}St(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Kr);xt.registerComponent("ChaptersTrackMenuItem",Zr);var Jr=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Et(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],o=new Zr(this.player_,{track:this.track_,cue:i});e.push(o)}return e},t}(Qr);Jr.prototype.kind_="chapters",Jr.prototype.controlText_="Chapters",xt.registerComponent("ChaptersButton",Jr);var ei=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),a=at(Ot(i),i.handleTracksChange);return o.addEventListener("change",a),i.on("dispose",function(){o.removeEventListener("change",a)}),i}St(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Qr);ei.prototype.kind_="descriptions",ei.prototype.controlText_="Descriptions",xt.registerComponent("DescriptionsButton",ei);var ti=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Qr);ti.prototype.kind_="subtitles",ti.prototype.controlText_="Subtitles",xt.registerComponent("SubtitlesButton",ti);var ni=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return St(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Gr);xt.registerComponent("CaptionSettingsMenuItem",ni);var ri=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ni(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Qr);ri.prototype.kind_="captions",ri.prototype.controlText_="Captions",xt.registerComponent("CaptionsButton",ri);var ii=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n      "),i+="</span>",e.prototype.createEl.call(this,t,te({innerHTML:i},n),r)},t}(Gr);xt.registerComponent("SubsCapsMenuItem",ii);var oi=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(Et(r.label_)),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new ni(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,ii)},t}(Qr);oi.prototype.kinds_=["captions","subtitles"],oi.prototype.controlText_="Subtitles",xt.registerComponent("SubsCapsButton",oi);var ai=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(Ot(r),t)};return o.addEventListener("change",a),r.on("dispose",function(){o.removeEventListener("change",a)}),r}St(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n        <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n        <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n      "),i+="</span>",e.prototype.createEl.call(this,t,te({innerHTML:i},n),r)},n.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Kr);xt.registerComponent("AudioTrackMenuItem",ai);var si=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new ai(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Yr);si.prototype.controlText_="Audio Track",xt.registerComponent("AudioTrackButton",si);var li=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",r.update),r}St(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Kr);li.prototype.contentElType="button",xt.registerComponent("PlaybackRateMenuItem",li);var ci=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}St(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=de("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var e=new Wr(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new li(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}($r);ci.prototype.controlText_="Playback Rate",xt.registerComponent("PlaybackRateMenuButton",ci);var ui=function(e){function t(){return e.apply(this,arguments)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(xt);xt.registerComponent("Spacer",ui);var di=function(e){function t(){return e.apply(this,arguments)||this}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(ui);xt.registerComponent("CustomControlSpacer",di);var fi=function(e){function t(){return e.apply(this,arguments)||this}return St(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(xt);fi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in a.a&&fi.prototype.options_.children.splice(fi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),xt.registerComponent("ControlBar",fi);var pi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",r.open),r}St(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(gn);pi.prototype.options_=kt(gn.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),xt.registerComponent("ErrorDisplay",pi);var hi=["#000","Black"],mi=["#00F","Blue"],gi=["#0FF","Cyan"],vi=["#0F0","Green"],yi=["#F0F","Magenta"],bi=["#F00","Red"],_i=["#FFF","White"],wi=["#FF0","Yellow"],Ei=["1","Opaque"],ki=["0.5","Semi-Transparent"],xi=["0","Transparent"],Si={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[hi,_i,bi,vi,mi,wi,yi,gi]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ei,ki,xi]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[_i,hi,bi,vi,mi,wi,yi,gi]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",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%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ei,ki]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[xi,ki,Ei]}};function Ti(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Si.windowColor.options=Si.backgroundColor.options;var Ci=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=at(Ot(r),r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=de("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),ee(Si,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}St(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=Si[e],o=i.id.replace("%s",this.id_),a=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map(function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',r.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return de("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return de("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return de("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o,a=(i=r.$(t.selector),o=t.parser,Ti(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[n]=a),e},void 0===(n={})&&(n=0),J(e=Si).reduce(function(n,r){return t(n,e[r],r)},n)},n.setValues=function(e){var t=this;ee(Si,function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(Ti(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)})},n.setDefaults=function(){var e=this;ee(Si,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(i.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){X.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):i.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){X.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(gn);xt.registerComponent("TextTrackSettings",Ci);var Oi=function(e){function t(t,n){var r,o=n.ResizeObserver||i.a.ResizeObserver;null===n.ResizeObserver&&(o=!1);var a=kt({createEl:!o,reportTouchActivity:!1},n);return(r=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||i.a.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=lt(function(){r.resizeHandler()},100,!1,Ot(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){Je(this,"resize",e),Je(this,"unload",t),t=null};Ze(r.el_.contentWindow,"unload",t),Ze(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}St(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(xt);xt.registerComponent("ResizeManager",Oi);var Ai=function(e){function t(t,n){var r,i=kt({createEl:!1},n);return(r=e.call(this,t,i)||this).reset_(),r.on(r.player_,"durationchange",r.handleDurationchange),$t&&"hidden"in a.a&&"visibilityState"in a.a&&r.on(a.a,"visibilitychange",r.handleVisibilityChange),r}St(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(a.a.hidden?this.stopTracking():this.startTracking())},n.isBehind_=function(){if(!this.timeupdateSeen_)return!1;var e=this.liveCurrentTime(),t=this.player_.currentTime(),n=2*this.seekableIncrement_+.07;return e!==1/0&&e-n>=t},n.trackLive_=function(){this.pastSeekEnd_=this.pastSeekEnd_;var e=this.player_.seekable();if(e&&e.length){var t,n,r,i=this.seekableEnd();i!==this.lastSeekEnd_&&(this.lastSeekEnd_&&(this.seekableIncrementList_=this.seekableIncrementList_.slice(-11),this.seekableIncrementList_.push(Math.abs(i-this.lastSeekEnd_)),this.seekableIncrementList_.length>3&&(this.seekableIncrement_=(t=this.seekableIncrementList_,n=Math.floor(t.length/2),r=[].concat(t).sort(function(e,t){return e-t}),t.length%2!=0?r[n]:(r[n-1]+r[n])/2))),this.pastSeekEnd_=0,this.lastSeekEnd_=i,this.trigger("seekableendchange")),this.pastSeekEnd_=this.pastSeekEnd()+.03,this.isBehind_()!==this.behindLiveEdge()&&(this.behindLiveEdge_=this.isBehind_(),this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.player_.duration()===1/0?this.startTracking():this.stopTracking()},n.startTracking=function(){var e=this;this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,"play",this.trackLive_),this.on(this.player_,"pause",this.trackLive_),this.timeupdateSeen_||(this.one(this.player_,"play",this.handlePlay),this.handleTimeupdate=function(){e.timeupdateSeen_=!0,e.handleTimeupdate=null},this.one(this.player_,"timeupdate",this.handleTimeupdate)))},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},n.reset_=function(){this.pastSeekEnd_=0,this.lastSeekEnd_=null,this.behindLiveEdge_=null,this.timeupdateSeen_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.seekableIncrement_=12,this.seekableIncrementList_=[],this.off(this.player_,"play",this.trackLive_),this.off(this.player_,"pause",this.trackLive_),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.seekToLiveEdge),this.handleTimeupdate&&(this.off(this.player_,"timeupdate",this.handleTimeupdate),this.handleTimeupdate=null)},n.stopTracking=function(){this.isTracking()&&this.reset_()},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?1/0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){return this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.atLiveEdge()||(this.player_.currentTime(this.liveCurrentTime()),this.player_.paused()&&this.player_.play())},n.dispose=function(){this.stopTracking(),e.prototype.dispose.call(this)},t}(xt);xt.registerComponent("LiveTracker",Ai);var Ni=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},Ii=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",i.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Mi=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},ji=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return Mi([e.el(),i.a.HTMLMediaElement.prototype,i.a.Element.prototype,Ii],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(t,i);return Ni(e),a}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))}),Object.defineProperty(t,"innerHTML",kt(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Li=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Mn(i.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i.a.Element.prototype.setAttribute.call(this,"src",e),e}}),Pi=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return Mi([e.el(),i.a.HTMLMediaElement.prototype,Li],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",kt(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=o.call(t);return Ni(e)||(e.triggerSourceset(""),ji(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Ni(e)||ji(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Di=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,l=[];s--;){var c=a[s];"track"===c.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(c),r.remoteTextTracks().addTrack(c.track),r.textTracks().addTrack(c.track),o||r.el_.hasAttribute("crossorigin")||!Ln(c.src)||(o=!0)):l.push(c))}for(var u=0;u<l.length;u++)r.el_.removeChild(l[u])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&X.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Gt||Lt||Ut)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}St(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Pi(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach(function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Wn[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(e){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach(function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",function(t){return r.removeEventListener(e,n)})}),this.on("loadstart",a),this.on("dispose",function(e){return t.off("loadstart",a)})}},n.proxyNativeTracks_=function(){var e=this;Wn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.a.createElement("video");var r=kt({},this.options_.tag&&be(this.options_.tag));Gt&&!0===this.options_.nativeControlsForTouch||delete r.controls,ye(e,te(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&we(e,"preload",this.options_.preload);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var s=i[o],l=this.options_[s];void 0!==l&&(l?we(e,s,s):Ee(e,s),e[s]=l)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},n.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){X(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&Ft&&Ht&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=i.a.navigator&&i.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},n.exitFullScreen=function(){this.el_.webkitExitFullScreen()},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i.a.performance&&"function"==typeof i.a.performance.now?e.creationTime=i.a.performance.now():i.a.performance&&i.a.performance.timing&&"number"==typeof i.a.performance.timing.navigationStart&&(e.creationTime=i.a.Date.now()-i.a.performance.timing.navigationStart),e},t}(Vn);if(se()){Di.TEST_VID=a.a.createElement("video");var Ri=a.a.createElement("track");Ri.kind="captions",Ri.srclang="en",Ri.label="English",Di.TEST_VID.appendChild(Ri)}Di.isSupported=function(){try{Di.TEST_VID.volume=.5}catch(e){return!1}return!(!Di.TEST_VID||!Di.TEST_VID.canPlayType)},Di.canPlayType=function(e){return Di.TEST_VID.canPlayType(e)},Di.canPlaySource=function(e,t){return Di.canPlayType(e.type)},Di.canControlVolume=function(){try{var e=Di.TEST_VID.volume;return Di.TEST_VID.volume=e/2+.1,e!==Di.TEST_VID.volume}catch(e){return!1}},Di.canMuteVolume=function(){try{var e=Di.TEST_VID.muted;return Di.TEST_VID.muted=!e,Di.TEST_VID.muted?we(Di.TEST_VID,"muted","muted"):Ee(Di.TEST_VID,"muted"),e!==Di.TEST_VID.muted}catch(e){return!1}},Di.canControlPlaybackRate=function(){if(Ft&&Ht&&Wt<58)return!1;try{var e=Di.TEST_VID.playbackRate;return Di.TEST_VID.playbackRate=e/2+.1,e!==Di.TEST_VID.playbackRate}catch(e){return!1}},Di.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Di.supportsNativeTextTracks=function(){return Vt||Dt&&Ht},Di.supportsNativeVideoTracks=function(){return!(!Di.TEST_VID||!Di.TEST_VID.videoTracks)},Di.supportsNativeAudioTracks=function(){return!(!Di.TEST_VID||!Di.TEST_VID.audioTracks)},Di.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Di.prototype.featuresVolumeControl=Di.canControlVolume(),Di.prototype.featuresMuteControl=Di.canMuteVolume(),Di.prototype.featuresPlaybackRate=Di.canControlPlaybackRate(),Di.prototype.featuresSourceset=Di.canOverrideAttributes(),Di.prototype.movingMediaElementInDOM=!Dt,Di.prototype.featuresFullscreenResize=!0,Di.prototype.featuresProgressEvents=!0,Di.prototype.featuresTimeupdateEvents=!0,Di.prototype.featuresNativeTextTracks=Di.supportsNativeTextTracks(),Di.prototype.featuresNativeVideoTracks=Di.supportsNativeVideoTracks(),Di.prototype.featuresNativeAudioTracks=Di.supportsNativeAudioTracks();var Fi=Di.TEST_VID&&Di.TEST_VID.constructor.prototype.canPlayType,Bi=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;Di.patchCanPlayType=function(){Bt>=4&&!qt&&!Ht&&(Di.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Bi.test(e)?"maybe":Fi.call(this,e)})},Di.unpatchCanPlayType=function(){var e=Di.TEST_VID.constructor.prototype.canPlayType;return Di.TEST_VID.constructor.prototype.canPlayType=Fi,e},Di.patchCanPlayType(),Di.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Di.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Di.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Di.prototype["set"+Et(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Di.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Di.prototype["set"+Et(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Di.prototype[e]=function(){return this.el_[e]()}}),Vn.withSourceHandlers(Di),Di.nativeSourceHandler={},Di.nativeSourceHandler.canPlayType=function(e){try{return Di.TEST_VID.canPlayType(e)}catch(e){return""}},Di.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Di.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=jn(e.src);return Di.nativeSourceHandler.canPlayType("video/"+n)}return""},Di.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Di.nativeSourceHandler.dispose=function(){},Di.registerSourceHandler(Di.nativeSourceHandler),Vn.registerTech("Html5",Di);var Ui=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],qi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},zi=["tiny","xsmall","small","medium","large","xlarge","huge"],Hi={};zi.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Hi[e]="vjs-layout-"+t});var Wi={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},$i=function(e){function t(n,r,i){var o;if(n.id=n.id||r.id||"vjs_video_"+Ye(),(r=te(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var a=n.closest("[lang]");a&&a.getAttribute&&(r.language=a.getAttribute("lang"))}else for(var s=n;s&&1===s.nodeType;){if(be(s).hasOwnProperty("lang")){r.language=s.getAttribute("lang");break}s=s.parentNode}if((o=e.call(this,null,r,i)||this).boundDocumentFullscreenChange_=at(Ot(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=at(Ot(o),o.fullWindowOnEscKey),o.log=Q(o.id_),o.fsApi_=nn,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&be(n),o.language(o.options_.language),r.languages){var l={};Object.getOwnPropertyNames(r.languages).forEach(function(e){l[e.toLowerCase()]=r.languages[e]}),o.languages_=l}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],n.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach(function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')}),o.scrubbing_=!1,o.el_=o.createEl(),yt(Ot(o),{eventBusKey:"el_"}),o.fluid_&&o.on("playerreset",o.updateStyleEl_);var c=kt(o.options_);r.plugins&&Object.keys(r.plugins).forEach(function(e){o[e](r.plugins[e])}),o.options_.playerOptions=c,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),Gt&&o.addClass("vjs-touch-enabled"),Dt||o.addClass("vjs-workinghover"),t.players[o.id_]=Ot(o);var u=V.split(".")[0];return o.addClass("vjs-v"+u),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("stageclick",o.handleStageClick_),o.on("keydown",o.handleKeyDown),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}St(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Je(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Je(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Gn[this.id()]=null,Yn.names.forEach(function(e){var t=Yn[e],r=n[t.getterName]();r&&r.off&&r.off()}),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=be(n);if(o){for(t=this.el_=n,n=this.tag=a.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);he(t,"video-js")||me(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach(function(e){n[e]=t[e]})}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",($t||Ht&&Kt)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){o&&"class"===e||t.setAttribute(e,s[e]),o&&n.setAttribute(e,s[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ze("vjs-styles-dimensions");var l=Pe(".vjs-styles-defaults"),c=Pe("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var u=n.getElementsByTagName("a"),d=0;d<u.length;d++){var f=u.item(d);me(f,"vjs-hidden"),f.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),pe(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?X.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){if(void 0===e)return!!this.fluid_;var t,n;this.fluid_=!!e,ut(this)&&this.off("playerreset",this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),ut(t=function(){this.on("playerreset",this.updateStyleEl_)})?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),He(this.styleEl_,"\n      ."+n+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+n+".vjs-fluid {\n        padding-top: "+100*o+"%;\n      }\n    ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(a>=0&&(l.width=a),s>=0&&(l.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=Et(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(Vn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Yn.names.forEach(function(e){var t=Yn[e];o[t.getterName]=n[t.privateName]}),te(o,this.options_[r]),te(o,this.options_[i]),te(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=Vn.getTech(e);if(!a)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(at(this,this.handleTechReady_),!0),hn(this.textTracksJson_||[],this.tech_),Ui.forEach(function(e){n.on(n.tech_,e,n["handleTech"+Et(e)+"_"])}),Object.keys(qi).forEach(function(e){n.on(n.tech_,e,function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+qi[e]+"_"].bind(n),event:t}):n["handleTech"+qi[e]+"_"](t)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||pe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Yn.names.forEach(function(t){var n=Yn[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=pn(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&X.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(un(r))return r.catch(n)};if("any"===e&&!0!==this.muted()?un(n=this.play())&&(n=n.catch(r)):n="muted"===e&&!0!==this.muted()?r():this.play(),un(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return ir(t)}(this,t)),this.cache_.source=kt({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var l=be(o[s]);i.push(l),l.src&&l.src===t&&a.push(l.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(X.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){je(e)&&this.controls_&&(this.paused()?dn(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=this.el(),n=a.a[this.fsApi_.fullscreenElement]===t;!n&&t.matches?n=t.matches(":"+this.fsApi_.fullscreen):!n&&t.msMatchesSelector&&(n=t.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n),!1===this.isFullscreen()&&Je(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed&&this.trigger("fullscreenchange")},n.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},n.techCall_=function(e,t){this.ready(function(){if(e in er)return function(e,t,n,r){return t[n](e.reduce(nr(n),r))}(this.middleware_,this.tech_,e,t);if(e in tr)return Zn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw X(e),e}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Jn)return function(e,t,n){return e.reduceRight(nr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in tr)return Zn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw X("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw X("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw X(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i.a.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=dn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Vt&&!Dt||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Jt(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?(this.addClass("vjs-live"),this.options_.liveui&&this.player_.liveTracker&&this.addClass("vjs-liveui")):(this.removeClass("vjs-live"),this.removeClass("vjs-liveui")),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Jt(0,0)),e},n.bufferedPercent=function(){return en(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,void this.toggleFullscreenClass_()):!!this.isFullscreen_},n.requestFullscreen=function(e){var t;this.isFullscreen(!0),this.fsApi_.requestFullscreen?(Ze(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),dn(this.el_[this.fsApi_.requestFullscreen](t))):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},n.exitFullscreen=function(){this.isFullscreen(!1),this.fsApi_.requestFullscreen?dn(a.a[this.fsApi_.exitFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},n.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,Ze(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",me(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){u.a.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},n.exitFullWindow=function(){this.isFullWindow=!1,Je(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,ge(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return a.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return u.a.isEventKey(e,"f")}:n,i=t.muteKey,o=void 0===i?function(e){return u.a.isEventKey(e,"m")}:i,s=t.playPauseKey,l=void 0===s?function(e){return u.a.isEventKey(e,"k")||u.a.isEventKey(e,"Space")}:s;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var c=xt.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),xt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation(),xt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=Vn.getTech(i);if(o||(o=xt.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else X.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,Vn.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(X.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},n.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):ne(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[or({src:t})]:ne(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[or(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),Qn(this,n[0],function(e,r){var i,o;if(t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void t.triggerReady());i=r,o=t.tech_,i.forEach(function(e){return e.setTech&&e.setTech(o)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,Et(t)!==Et(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready(function(){r.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i.a.Promise;this.paused()||!t?this.doReset_():dn(this.play().then(function(){return e.doReset_()}))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),ut(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&e.message&&e.message===this.localize(this.options_.notSupportedMessage)){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ln(e),this.addClass("vjs-error"),X.error("(CODE:"+this.error_.code+" "+ln.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=at(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(t){r(),this.clearInterval(e)});var i,o=this.getChild("controlBar");!o||Dt||Ft||(o.on("mouseenter",function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),o.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var e=this.options_.inactivityTimeout;e<=0||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},n.languages=function(){return kt(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=kt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=kt(r)).player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new gn(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<zi.length;n++){var r=zi[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Hi[e]),this.addClass(Hi[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e?te(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=te({},Wi,e),this.updateCurrentBreakpoint_(),te(this.breakpoints_))},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Hi[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=kt(e);var r=this.cache_.media,i=r.artwork,o=r.poster,a=r.src,s=r.textTracks;!i&&o&&(this.cache_.media.artwork=[{src:o,type:ir(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach(function(e){return n.addRemoteTextTrack(e,!1)}),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:ir(t.poster)}]),t}return kt(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=be(e),r=n["data-setup"];if(he(e,"vjs-fill")&&(n.fill=!0),he(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=l()(r||"{}"),o=i[0],a=i[1];o&&X.error(o),te(n,a)}if(te(t,n),e.hasChildNodes())for(var s=e.childNodes,c=0,u=s.length;c<u;c++){var d=s[c],f=d.nodeName.toLowerCase();"source"===f?t.sources.push(be(d)):"track"===f&&t.tracks.push(be(d))}return t},n.flexNotSupported_=function(){var e=a.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(xt);Yn.names.forEach(function(e){var t=Yn[e];$i.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),$i.players={};var Yi=i.a.navigator;$i.prototype.options_={techOrder:Vn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Yi&&(Yi.languages&&Yi.languages[0]||Yi.userLanguage||Yi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){$i.prototype[e]=function(){return this.techGet_(e)}}),Ui.forEach(function(e){$i.prototype["handleTech"+Et(e)+"_"]=function(){return this.trigger(e)}}),xt.registerComponent("Player",$i);var Vi={},Ki=function(e){return Vi.hasOwnProperty(e)},Gi=function(e){return Ki(e)?Vi[e]:void 0},Xi=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Qi=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Zi=function(e,t){return t.prototype.name=e,function(){Qi(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Ct(t,[this].concat(r));return this[e]=function(){return o},Qi(this,o.getEventHash()),o}},Ji=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,yt(this),delete this.trigger,_t(this,this.constructor.defaultState),Xi(t,this.name),this.dispose=at(this,this.dispose),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),et(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Zi(e,Vi[e])},e.isBasic=function(t){var n="string"==typeof t?Gi(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Ki(t))X.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if($i.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Vi[t]=n,"plugin"!==t&&(e.isBasic(n)?$i.prototype[t]=function(e,t){var n=function(){Qi(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Xi(this,e),Qi(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):$i.prototype[t]=Zi(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");Ki(e)&&(delete Vi[e],delete $i.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Vi)),e.forEach(function(e){var n=Gi(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=Gi(e);return t&&t.VERSION||""},e}();Ji.getPlugin=Gi,Ji.BASE_PLUGIN_NAME="plugin",Ji.registerPlugin("plugin",Ji),$i.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},$i.prototype.hasPlugin=function(e){return!!Ki(e)};var eo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function to(e,t,n){var r=to.getPlayer(e);if(r)return t&&X.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Pe("#"+eo(e)):e;if(!le(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||X.warn("The element supplied is not included in the DOM"),t=t||{},to.hooks("beforesetup").forEach(function(e){var n=e(i,kt(t));ne(n)&&!Array.isArray(n)?t=kt(t,n):X.error("please return an object in beforesetup hooks")});var o=xt.getComponent("Player");return r=new o(i,t,n),to.hooks("setup").forEach(function(e){return e(r)}),r}if(to.hooks_={},to.hooks=function(e,t){return to.hooks_[e]=to.hooks_[e]||[],t&&(to.hooks_[e]=to.hooks_[e].concat(t)),to.hooks_[e]},to.hook=function(e,t){to.hooks(e,t)},to.hookOnce=function(e,t){to.hooks(e,[].concat(t).map(function(t){return function n(){return to.removeHook(e,n),t.apply(void 0,arguments)}}))},to.removeHook=function(e,t){var n=to.hooks(e).indexOf(t);return!(n<=-1)&&(to.hooks_[e]=to.hooks_[e].slice(),to.hooks_[e].splice(n,1),!0)},!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE&&se()){var no=Pe(".vjs-styles-defaults");if(!no){no=ze("vjs-styles-defaults");var ro=Pe("head");ro&&ro.insertBefore(no,ro.firstChild),He(no,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}Ue(1,to),to.VERSION=V,to.options=$i.prototype.options_,to.getPlayers=function(){return $i.players},to.getPlayer=function(e){var t,n=$i.players;if("string"==typeof e){var r=eo(e),i=n[r];if(i)return i;t=Pe("#"+r)}else t=e;if(le(t)){var o=t,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},to.getAllPlayers=function(){return Object.keys($i.players).map(function(e){return $i.players[e]}).filter(Boolean)},to.players=$i.players,to.getComponent=xt.getComponent,to.registerComponent=function(e,t){Vn.isTech(t)&&X.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),xt.registerComponent.call(xt,e,t)},to.getTech=Vn.getTech,to.registerTech=Vn.registerTech,to.use=function(e,t){Kn[e]=Kn[e]||[],Kn[e].push(t)},Object.defineProperty(to,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(to.middleware,"TERMINATOR",{value:Xn,writeable:!1,enumerable:!0}),to.browser=Xt,to.TOUCH_ENABLED=Gt,to.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)}(n,e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},to.mergeOptions=kt,to.bind=at,to.registerPlugin=Ji.registerPlugin,to.deregisterPlugin=Ji.deregisterPlugin,to.plugin=function(e,t){return X.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Ji.registerPlugin(e,t)},to.getPlugins=Ji.getPlugins,to.getPlugin=Ji.getPlugin,to.getPluginVersion=Ji.getPluginVersion,to.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),to.options.languages=kt(to.options.languages,((n={})[e]=t,n)),to.options.languages[e]},to.log=X,to.createLogger=Q,to.createTimeRange=to.createTimeRanges=Jt,to.formatTime=_r,to.setFormatTime=function(e){br=e},to.resetFormatTime=function(){br=yr},to.parseUrl=In,to.isCrossOrigin=Ln,to.EventTarget=ct,to.on=Ze,to.one=tt,to.off=Je,to.trigger=et,to.xhr=f.a,to.TextTrack=Fn,to.AudioTrack=Bn,to.VideoTrack=Un,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){to[e]=function(){return X.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Re[e].apply(null,arguments)}}),to.computedStyle=ie,to.dom=Re,to.url=Pn;
/**
 * @videojs/http-streaming
 * @version 1.10.6
 * @copyright 2019 Brightcove, Inc
 * @license Apache-2.0
 */
var io=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=g.a.buildAbsoluteURL(i.a.location.href,e)),g.a.buildAbsoluteURL(e,t))},oo=function(e,t,n){return e&&n.responseURL&&t!==n.responseURL?n.responseURL:t},ao=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},so=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),lo=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},co=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},uo=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),fo=to.mergeOptions,po=to.EventTarget,ho=to.log,mo=function(e,t){["AUDIO","SUBTITLES"].forEach(function(n){for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r]){var o=e.mediaGroups[n][r][i];t(o,n,r,i)}})},go=function(e,t){var n=fo(e,{}),r=n.playlists[t.uri];if(!r)return null;if(r.segments&&t.segments&&r.segments.length===t.segments.length&&r.endList===t.endList&&r.mediaSequence===t.mediaSequence)return null;var i=fo(r,t);r.segments&&(i.segments=function(e,t,n){var r=t.slice();n=n||0;for(var i=Math.min(e.length,t.length+n),o=n;o<i;o++)r[o-n]=fo(e[o],r[o-n]);return r}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)),i.segments.forEach(function(e){!function(e,t){e.resolvedUri||(e.resolvedUri=io(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=io(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=io(t,e.map.uri))}(e,i.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].uri===t.uri&&(n.playlists[o]=i);return n.playlists[t.uri]=i,n},vo=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];e.playlists[n.uri]=n,n.resolvedUri=io(e.uri,n.uri),n.id=t,n.attributes||(n.attributes={},ho.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},yo=function(e){mo(e,function(t){t.uri&&(t.resolvedUri=io(e.uri,t.uri))})},bo=function(e,t){var n=e.segments[e.segments.length-1];return t&&n&&n.duration?1e3*n.duration:500*(e.targetDuration||10)},_o=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ao(this,t);var i=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),o=r.withCredentials,a=void 0!==o&&o,s=r.handleManifestRedirects,l=void 0!==s&&s;i.srcUrl=e,i.hls_=n,i.withCredentials=a,i.handleManifestRedirects=l;var c=n.options_;if(i.customTagParsers=c&&c.customTagParsers||[],i.customTagMappers=c&&c.customTagMappers||[],!i.srcUrl)throw new Error("A non-empty playlist URL is required");return i.state="HAVE_NOTHING",i.on("mediaupdatetimeout",function(){"HAVE_METADATA"===i.state&&(i.state="HAVE_CURRENT_METADATA",i.request=i.hls_.xhr({uri:io(i.master.uri,i.media().uri),withCredentials:i.withCredentials},function(e,t){if(i.request)return e?i.playlistRequestError(i.request,i.media().uri,"HAVE_METADATA"):void i.haveMetadata(i.request,i.media().uri)}))}),i}return lo(t,po),so(t,[{key:"playlistRequestError",value:function(e,t,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+t+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,t){var n=this;this.request=null,this.state="HAVE_METADATA";var r=new T;this.customTagParsers.forEach(function(e){return r.addParser(e)}),this.customTagMappers.forEach(function(e){return r.addTagMapper(e)}),r.push(e.responseText),r.end(),r.manifest.uri=t,r.manifest.attributes=r.manifest.attributes||{};var o=go(this.master,r.manifest);this.targetDuration=r.manifest.targetDuration,o?(this.master=o,this.media_=this.master.playlists[r.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(i.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=i.a.setTimeout(function(){n.trigger("mediaupdatetimeout")},bo(this.media(),!!o))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.finalRenditionTimeout)}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(i.a.clearTimeout(this.finalRenditionTimeout),t){var r=e.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=i.a.setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,a=!this.media_||e.uri!==this.media_.uri;if(this.master.playlists[e.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},function(t,r){if(n.request){if(e.resolvedUri=oo(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e.uri,o);n.haveMetadata(r,e.uri),"HAVE_MASTER"===o?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}}},{key:"pause",value:function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout(function(){return t.load()},r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.srcUrl+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");var r=new T;return e.customTagParsers.forEach(function(e){return r.addParser(e)}),e.customTagMappers.forEach(function(e){return r.addTagMapper(e)}),r.push(n.responseText),r.end(),e.state="HAVE_MASTER",e.srcUrl=oo(e.handleManifestRedirects,e.srcUrl,n),r.manifest.uri=e.srcUrl,r.manifest.playlists?(e.master=r.manifest,vo(e.master),yo(e.master),e.trigger("loadedplaylist"),void(e.request||e.media(r.manifest.playlists[0]))):(e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:i.a.location.href,playlists:[{uri:e.srcUrl,id:0,resolvedUri:e.srcUrl,attributes:{}}]},e.master.playlists[e.srcUrl]=e.master.playlists[0],e.haveMetadata(n,e.srcUrl),e.trigger("loadedmetadata"))}})}}]),t}(),wo=to.createTimeRange,Eo=function(e,t,n){var r,i;return void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence?0:(r=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(void 0!==(i=e.segments[r]).end)return{result:n+i.end,precise:!0};if(n+=i.duration,void 0!==i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}}(e,t)).precise?r.result:(i=function(e,t){for(var n=0,r=void 0,i=t-e.mediaSequence;i<e.segments.length;i++){if(void 0!==(r=e.segments[i]).start)return{result:r.start-n,precise:!0};if(n+=r.duration,void 0!==r.end)return{result:r.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t)).precise?i.result:r.result+n},ko=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return i.a.Infinity}return Eo(e,t,n)},xo=function(e,t,n){var r=0;if(t>n){var i=[n,t];t=i[0],n=i[1]}if(t<0){for(var o=t;o<Math.min(0,n);o++)r+=e.targetDuration;t=0}for(var a=t;a<n;a++)r+=e.segments[a].duration;return r},So=function(e){if(!e.segments.length)return 0;for(var t=e.segments.length-1,n=e.segments[t].duration||e.targetDuration,r=n+2*e.targetDuration;t--&&!((n+=e.segments[t].duration)>=r););return Math.max(0,t)},To=function(e,t,n){if(!e||!e.segments)return null;if(e.endList)return ko(e);if(null===t)return null;t=t||0;var r=n?So(e):e.segments.length;return Eo(e,e.mediaSequence+r,t)},Co=function(e){return e-Math.floor(e)==0},Oo=function(e,t){if(Co(t))return t+.1*e;for(var n=t.toString().split(".")[1].length,r=1;r<=n;r++){var i=Math.pow(10,r),o=t*i;if(Co(o)||r===n)return(o+e)/i}},Ao=Oo.bind(null,1),No=Oo.bind(null,-1),Io=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},Mo=function(e){return e.excludeUntil&&e.excludeUntil===1/0},jo=function(e){var t=Io(e);return!e.disabled&&!t},Lo=function(e,t){return t.attributes&&t.attributes[e]},Po=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!jo(e)&&(e.attributes.BANDWIDTH||0)<n}).length},Do={duration:ko,seekable:function(e,t){var n=t||0,r=To(e,t,!0);return null===r?wo():wo(n,r)},safeLiveIndex:So,getMediaInfoForTime:function(e,t,n,r){var i=void 0,o=void 0,a=e.segments.length,s=t-r;if(s<0){if(n>0)for(i=n-1;i>=0;i--)if(o=e.segments[i],(s+=No(o.duration))>0)return{mediaIndex:i,startTime:r-xo(e,n,i)};return{mediaIndex:0,startTime:t}}if(n<0){for(i=n;i<0;i++)if((s-=e.targetDuration)<0)return{mediaIndex:0,startTime:t};n=0}for(i=n;i<a;i++)if(o=e.segments[i],(s-=Ao(o.duration))<0)return{mediaIndex:i,startTime:r+xo(e,n,i)};return{mediaIndex:a-1,startTime:t}},isEnabled:jo,isDisabled:function(e){return e.disabled},isBlacklisted:Io,isIncompatible:Mo,playlistEnd:To,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},isFmp4:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].map)return!0;return!1},hasAttribute:Lo,estimateSegmentRequestTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return Lo("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*r)/t:NaN},isLowestEnabledRendition:Po},Ro=to.xhr,Fo=to.mergeOptions,Bo=function(){return function e(t,n){t=Fo({timeout:45e3},t);var r=e.beforeRequest||to.Hls.xhr.beforeRequest;if(r&&"function"==typeof r){var i=r(t);i&&(t=i)}var o=Ro(t,function(e,t){var r=o.response;!e&&r&&(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=r.byteLength||r.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),t.headers&&(o.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(o.timedout=!0),e||o.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(o&&(r||o.responseText)))),n(e,o)}),a=o.abort;return o.abort=function(){return o.aborted=!0,a.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o}},Uo=function(e){var t,n,r={};return e.byterange&&(r.Range=(t=e.byterange,n=t.offset+t.length-1,"bytes="+t.offset+"-"+n)),r},qo=function(e,t){return e.start(t)+"-"+e.end(t)},zo=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Ho=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Wo=function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];ArrayBuffer.isView(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t},$o=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Yo=function(e){return e.resolvedUri},Vo=function(e){for(var t=Array.prototype.slice.call(e),n="",r=0;r<t.length/16;r++)n+=t.slice(16*r,16*r+16).map(zo).join("")+" "+t.slice(16*r,16*r+16).map(Ho).join("")+"\n";return n},Ko=Object.freeze({createTransferableMessage:Wo,initSegmentId:$o,segmentKeyId:Yo,hexDump:Vo,tagDump:function(e){var t=e.bytes;return Vo(t)},textRanges:function(e){var t="",n=void 0;for(n=0;n<e.length;n++)t+=qo(e,n)+" ";return t}}),Go=function(e){var t=e.playlist,n=e.time,r=void 0===n?void 0:n,i=e.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===r)return i({message:"getProgramTime: playlist and time must be provided"});var o=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n=0,r=void 0,i=0;i<t.segments.length&&!(e<=(n=(r=t.segments[i]).videoTimingInfo?r.videoTimingInfo.transmuxedPresentationEnd:n+r.duration));i++);var o=t.segments[t.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+.25*o.duration)return null;r=o}return{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:n-r.duration,type:r.videoTimingInfo?"accurate":"estimate"}}(r,t);if(!o)return i({message:"valid programTime was not found"});if("estimate"===o.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var a={mediaSeconds:r},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,r=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*r)}(r,o.segment);return s&&(a.programDateTime=s.toISOString()),i(null,a)},Xo=function e(t){var n=t.programTime,r=t.playlist,i=t.retryCount,o=void 0===i?2:i,a=t.seekTo,s=t.pauseAfterSeek,l=void 0===s||s,c=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!a)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!c.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(r))return u({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var d=function(e,t){var n=void 0;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var r=t.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<t.segments.length-1&&(r=t.segments[i],!(n<t.segments[i+1].dateTimeObject));i++);var o,a=t.segments[t.segments.length-1],s=a.dateTimeObject,l=a.videoTimingInfo?(o=a.videoTimingInfo).transmuxedPresentationEnd-o.transmuxedPresentationStart-o.transmuxerPrependedSeconds:a.duration+.25*a.duration;return n>new Date(s.getTime()+1e3*l)?null:(n>s&&(r=a),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Do.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!d)return u({message:n+" was not found in the stream"});var f=d.segment,p=function(e,t){var n=void 0,r=void 0;try{n=new Date(e),r=new Date(t)}catch(e){}var i=n.getTime();return(r.getTime()-i)/1e3}(f.dateTimeObject,n);if("estimate"===d.type)return 0===o?u({message:n+" is not buffered yet. Try again"}):(a(d.estimatedStart+p),void c.one("seeked",function(){e({programTime:n,playlist:r,retryCount:o-1,seekTo:a,pauseAfterSeek:l,tech:c,callback:u})}));var h=f.start+p;c.one("seeked",function(){return u(null,c.currentTime())}),l&&c.pause(),a(h)},Qo=function(e,t){var n=[],r=void 0;if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&n.push([e.start(r),e.end(r)]);return to.createTimeRanges(n)},Zo=function(e,t){return Qo(e,function(e,n){return e-.1<=t&&n+.1>=t})},Jo=function(e,t){return Qo(e,function(e){return e-1/30>=t})},ea=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},ta=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},na=function(e,t,n){var r=void 0,i=void 0;if(n&&n.cues)for(r=n.cues.length;r--;)(i=n.cues[r]).startTime<=t&&i.endTime>=e&&n.removeCue(i)},ra=function(e){return isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e},ia=function(e,t,n){var r=i.a.WebKitDataCue||i.a.VTTCue;if(t&&t.forEach(function(e){var t=e.stream;this.inbandTextTracks_[t].addCue(new r(e.startTime+this.timestampOffset,e.endTime+this.timestampOffset,e.text))},e),n){var o=ra(e.mediaSource_.duration);if(n.forEach(function(e){var t=e.cueTime+this.timestampOffset;!("number"!=typeof t||i.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var n=new r(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return to.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return to.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return to.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),this.metadataTrack_.addCue(n)},this)},e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length){for(var a=e.metadataTrack_.cues,s=[],l=0;l<a.length;l++)a[l]&&s.push(a[l]);var c=s.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),u=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});u.forEach(function(e,t){var n=c[e],r=Number(u[t+1])||o;n.forEach(function(e){e.endTime=r})})}}},oa="undefined"!=typeof window?window:{},aa="undefined"==typeof Symbol?"__target":Symbol(),sa="application/javascript",la=oa.BlobBuilder||oa.WebKitBlobBuilder||oa.MozBlobBuilder||oa.MSBlobBuilder,ca=oa.URL||oa.webkitURL||ca&&ca.msURL,ua=oa.Worker;function da(e,t){return function(n){var r=this;if(!t)return new ua(e);if(ua&&!n){var i=ma(t.toString().replace(/^function.+?{/,"").slice(0,-1));return this[aa]=new ua(i),function(e,t){if(!e||!t)return;var n=e.terminate;e.objURL=t,e.terminate=function(){e.objURL&&ca.revokeObjectURL(e.objURL),n.call(e)}}(this[aa],i),this[aa]}var o={postMessage:function(e){r.onmessage&&setTimeout(function(){r.onmessage({data:e,target:o})})}};t.call(o),this.postMessage=function(e){setTimeout(function(){o.onmessage({data:e,target:r})})},this.isThisThread=!0}}if(ua){var fa,pa=ma("self.onmessage = function () {}"),ha=new Uint8Array(1);try{(fa=new ua(pa)).postMessage(ha,[ha.buffer])}catch(e){ua=null}finally{ca.revokeObjectURL(pa),fa&&fa.terminate()}}function ma(e){try{return ca.createObjectURL(new Blob([e],{type:sa}))}catch(n){var t=new la;return t.append(e),ca.createObjectURL(t.getBlob(type))}}var ga=new da("./transmuxer-worker.worker.js",function(e,t){var n=this;!function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,_,w,E,k,x,S,T,C,O,A,N,I,M,j,L,P,D,R,F,B,U,q,z=e,H=Math.pow(2,32)-1;!function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);x=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),T=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),S=new Uint8Array([0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:C,audio:O},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),j=new Uint8Array([0,0,0,0,0,0,0,0]),L=j,P=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=j,N=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,r=[],i=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)i+=r[t].byteLength;for(n=new Uint8Array(i+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,i=8;t<r.length;t++)n.set(r[t],i),i+=r[t].byteLength;return n},r=function(){return t(k.dinf,t(k.dref,M))},i=function(e){return t(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(k.hdlr,A[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(k.mdhd,n)},h=function(e){return t(k.mdia,m(e),g(e.type),s(e))},a=function(e){return t(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(k.minf,"video"===e.type?t(k.vmhd,N):t(k.smhd,I),r(),y(e))},l=function(e,n){for(var r=[],i=n.length;i--;)r[i]=_(n[i]);return t.apply(null,[k.moof,a(e)].concat(r))},c=function(e){for(var n=e.length,r=[];n--;)r[n]=f(e[n]);return t.apply(null,[k.moov,d(4294967295)].concat(r).concat(u(e)))},u=function(e){for(var n=e.length,r=[];n--;)r[n]=w(e[n]);return t.apply(null,[k.mvex].concat(r))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(k.mvhd,n)},v=function(e){var n,r,i=e.samples||[],o=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,o[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(k.sdtp,o)},y=function(e){return t(k.stbl,b(e),t(k.stts,D),t(k.stsc,L),t(k.stsz,P),t(k.stco,j))},b=function(e){return t(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?R(e):F(e))},R=function(e){var n,r,i=e.sps||[],o=e.pps||[],a=[],s=[];for(n=0;n<i.length;n++)a.push((65280&i[n].byteLength)>>>8),a.push(255&i[n].byteLength),a=a.concat(Array.prototype.slice.call(i[n]));for(n=0;n<o.length;n++)s.push((65280&o[n].byteLength)>>>8),s.push(255&o[n].byteLength),s=s.concat(Array.prototype.slice.call(o[n]));if(r=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[o.length],s))),t(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],c=e.sarRatio[1];r.push(t(k.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return t.apply(null,r)},F=function(e){return t(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},p=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(k.tkhd,n)},_=function(e){var n,r,i,o,a,s;return n=t(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(H+1)),s=Math.floor(e.baseMediaDecodeTime%(H+1)),r=t(k.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(i=E(e,92),t(k.traf,n,r,i)):(o=v(e),i=E(e,o.length+92),t(k.traf,n,r,i,o))},f=function(e){return e.duration=e.duration||4294967295,t(k.trak,p(e),h(e))},w=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(k.trex,n)},q=function(e,t){var n=0,r=0,i=0,o=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(o=8)),[0,0,n|r|i|o,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},U=function(e,n){var r,i,o,a;for(n+=20+16*(i=e.samples||[]).length,r=q(i,n),a=0;a<i.length;a++)o=i[a],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return t(k.trun,new Uint8Array(r))},B=function(e,n){var r,i,o,a;for(n+=20+8*(i=e.samples||[]).length,r=q(i,n),a=0;a<i.length;a++)o=i[a],r=r.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return t(k.trun,new Uint8Array(r))},E=function(e,t){return"audio"===e.type?B(e,t):U(e,t)};o=function(){return t(k.ftyp,x,S,x,T)};var W,$,Y,V,K,G,X,Q,Z=function(e){return t(k.mdat,e)},J=l,ee=function(e){var t,n=o(),r=c(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t},te=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ne=function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),(r=[n]).byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i},re=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),(r=[n]).nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},ie=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},oe=function(e,t){var n,r,i,o,a,s=t||0,l=[];for(n=0;n<e.length;n++)for(o=e[n],r=0;r<o.length;r++)a=o[r],s+=(i=te(a,s)).size,l.push(i);return l},ae=function(e){var t,n,r,i,o,a,s=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(o=i[n],r=0;r<o.length;r++)a=o[r],d.setUint32(s,a.data.byteLength),s+=4,u.set(a.data,s),s+=a.data.byteLength;return u},se=[33,16,5,32,164,27],le=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ce=function(e){for(var t=[];e--;)t.push(0);return t},ue={96000:[se,[227,64],ce(154),[56]],88200:[se,[231],ce(170),[56]],64000:[se,[248,192],ce(240),[56]],48000:[se,[255,192],ce(268),[55,148,128],ce(54),[112]],44100:[se,[255,192],ce(268),[55,163,128],ce(84),[112]],32000:[se,[255,192],ce(268),[55,234],ce(226),[112]],24000:[se,[255,192],ce(268),[55,255,128],ce(268),[111,112],ce(126),[224]],16000:[se,[255,192],ce(268),[55,255,128],ce(268),[111,255],ce(269),[223,108],ce(195),[1,192]],12000:[le,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,253,128],ce(259),[56]],11025:[le,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,255,192],ce(268),[55,175,128],ce(108),[112]],8000:[le,ce(268),[3,121,16],ce(47),[7]]},de=(W=ue,Object.keys(W).reduce(function(e,t){return e[t]=new Uint8Array(W[t].reduce(function(e,t){return e.concat(t)},[])),e},{}));G=function(e,t){return $(K(e,t))},X=function(e,t){return Y(V(e),t)},Q=function(e,t,n){return V(n?e:e-t)};var fe=9e4,pe=($=function(e){return 9e4*e},Y=function(e,t){return e*t},V=function(e){return e/9e4},K=function(e,t){return e/t},G),he=X,me=Q,ge=function(e,t,n,r){var i,o,a,s,l,c=0,u=0,d=0;if(t.length&&(i=pe(e.baseMediaDecodeTime,e.samplerate),o=Math.ceil(fe/(e.samplerate/1024)),n&&r&&(c=i-Math.max(n,r),d=(u=Math.floor(c/o))*o),!(u<1||d>fe/2))){for((a=de[e.samplerate])||(a=t[0].data),s=0;s<u;s++)l=t[0],t.splice(0,0,{data:a,dts:l.dts-o,pts:l.pts-o});e.baseMediaDecodeTime-=Math.floor(he(d,e.samplerate))}},ve=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},ye=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},be=function(e){var t,n,r=0,i=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i},_e=fe,we=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ee=function(e,t){var n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/_e,n=Math.floor(n)),n},ke=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},xe=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},Se=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Te=function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[2+(i=3*n)],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},Ce=4,Oe=function e(){e.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new je(0,0),new je(0,1),new je(1,0),new je(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)};(Oe.prototype=new z).push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=xe(e.escapedRBSP)).payloadType===Ce&&(n=Se(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=Te(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Oe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Oe.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Oe.prototype.flush=function(){return this.flushStream("flush")},Oe.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Oe.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Oe.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Oe.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Oe.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Oe.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var Ae={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ne=function(e){return null===e?"":(e=Ae[e]||e,String.fromCharCode(e))},Ie=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Me=function(){for(var e=[],t=15;t--;)e.push("");return e},je=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Me();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Me();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Me()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=Ne((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=Ne((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=Ie.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=Ne(r),o+=Ne(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};je.prototype=new z,je.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},je.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Me(),this.nonDisplayed_=Me(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},je.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},je.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},je.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},je.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},je.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},je.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},je.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},je.prototype.isNormalChar=function(e){return e>=32&&e<=127},je.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Me(),this.displayed_=Me()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},je.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},je.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},je.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},je.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},je.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},je.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Le={CaptionStream:Oe,Cea608Stream:je},Pe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},De=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Re=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===r&&(r=e.dts),e.dts=De(e.dts,r),e.pts=De(e.pts,r),n=e.dts,this.trigger("data",e))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Re.prototype=new z;var Fe,Be=Re,Ue=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},qe=function(e,t,n){return decodeURIComponent(Ue(e,t,n))},ze=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},He={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=qe(e.data,1,t),e.value=qe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=qe(e.data,1,t),e.url=qe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,n;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(n=e.data,unescape(Ue(n,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Fe=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,i=[],o=0;if(Fe.prototype.init.call(this),this.dispatchType=Pe.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,a,s,l,c;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(o=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(i.push(e),o+=e.data.byteLength,1===i.length&&(r=ze(e.data.subarray(6,10)),r+=10),!(o<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},c=0;c<r;)t.data.set(i[0].data.subarray(0,r-c),c),c+=i[0].data.byteLength,o-=i[0].data.byteLength,i.shift();a=10,64&t.data[5]&&(a+=4,a+=ze(t.data.subarray(10,14)),r-=ze(t.data.subarray(16,20)));do{if((s=ze(t.data.subarray(a+4,a+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((l={id:String.fromCharCode(t.data[a],t.data[a+1],t.data[a+2],t.data[a+3]),data:t.data.subarray(a+10,a+s+10)}).key=l.id,He[l.id]&&(He[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var u=l.data,d=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;d*=4,d+=3&u[7],l.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=l.timeStamp,t.dts=l.timeStamp),this.trigger("timestamp",l)}t.frames.push(l),a+=10,a+=s}while(a<r);this.trigger("data",t)}}}).prototype=new z;var We,$e,Ye,Ve=Fe,Ke=Be;(We=function(){var e=new Uint8Array(188),t=0;We.prototype.init.call(this),this.push=function(n){var r,i=0,o=188;for(t?((r=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),r.set(n,t),t=0):r=n;o<r.byteLength;)71!==r[i]||71!==r[o]?(i++,o++):(this.trigger("data",r.subarray(i,o)),i+=188,o+=188);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new z,($e=function(){var e,t,n,r;$e.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,i=12+((15&e[10])<<8|e[11]);i<n;){var o=e[i],a=(31&e[i+1])<<8|e[i+2];o===Pe.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=a:o===Pe.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=a:o===Pe.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][a]=o),i+=5+((15&e[i+3])<<8|e[i+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Pe.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Pe.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new z,$e.STREAM_TYPES={h264:27,adts:15},(Ye=function(){var e,t=this,n={data:[],size:0},r={data:[],size:0},i={data:[],size:0},o=function(e,n,r){var i,o,a=new Uint8Array(e.size),s={type:n},l=0,c=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,l=0;l<e.data.length;l++)o=e.data[l],a.set(o.data,c),c+=o.data.byteLength;var u,d,f;u=a,(d=s).packetLength=6+(u[4]<<8|u[5]),d.dataAlignmentIndicator=0!=(4&u[6]),192&(f=u[7])&&(d.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,d.pts*=4,d.pts+=(6&u[13])>>>1,d.dts=d.pts,64&f&&(d.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,d.dts*=4,d.dts+=(6&u[18])>>>1)),d.data=u.subarray(9+u[8]),i="video"===n||s.packetLength<=e.size,(r||i)&&(e.size=0,e.data.length=0),i&&t.trigger("data",s)}};Ye.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case Pe.H264_STREAM_TYPE:case Pe.H264_STREAM_TYPE:e=n,t="video";break;case Pe.ADTS_STREAM_TYPE:e=r,t="audio";break;case Pe.METADATA_STREAM_TYPE:e=i,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(r,"audio"),o(i,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new z;var Ge={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:We,TransportParseStream:$e,ElementaryStream:Ye,TimestampRolloverStream:Ke,CaptionStream:Le.CaptionStream,Cea608Stream:Le.Cea608Stream,MetadataStream:Ve};for(var Xe in Pe)Pe.hasOwnProperty(Xe)&&(Ge[Xe]=Pe[Xe]);var Qe,Ze=Ge,Je=fe,et=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(Qe=function(e){var t,n=0;Qe.prototype.init.call(this),this.push=function(r){var i,o,a,s,l,c,u=0;if(e||(n=0),"audio"===r.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+r.data.byteLength)).set(s),t.set(r.data,s.byteLength)):t=r.data;u+5<t.length;)if(255===t[u]&&240==(246&t[u+1])){if(o=2*(1&~t[u+1]),i=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,c=(l=1024*(1+(3&t[u+6])))*Je/et[(60&t[u+2])>>>2],a=u+i,t.byteLength<a)return;if(this.trigger("data",{pts:r.pts+n*c,dts:r.dts+n*c,sampleCount:l,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:et[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+o,a)}),n++,t.byteLength===a)return void(t=void 0);t=t.subarray(a)}else u++},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new z;var tt,nt,rt,it=Qe,ot=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,o=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");o.set(e.subarray(i,i+a)),n=new DataView(o.buffer).getUint32(0),r=8*a,t-=a},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,e-=8*(i=Math.floor(e/8)),t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),o=n>>>32-i;return(r-=i)>0?n<<=i:t>0&&this.loadWord(),(i=e-i)>0?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!=(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(nt=function(){var e,t,n=0;nt.prototype.init.call(this),this.push=function(r){var i;t?((i=new Uint8Array(t.byteLength+r.data.byteLength)).set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var o=t.byteLength;n<o-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<o;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<o);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new z,rt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(tt=function(){var e,t,n,r,i,o,a,s=new nt;tt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,s.push(e))},s.on("data",function(a){var s={trackId:t,pts:n,dts:r,data:a};switch(31&a[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=i(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=i(a.subarray(1)),s.config=o(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),s.on("done",function(){e.trigger("done")}),s.on("partialdone",function(){e.trigger("partialdone")}),s.on("reset",function(){e.trigger("reset")}),s.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},a=function(e,t){var n,r=8,i=8;for(n=0;n<e;n++)0!==i&&(i=(r+t.readExpGolomb()+256)%256),r=0===i?r:i},i=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},o=function(e){var t,n,r,i,o,s,l,c,u,d,f,p,h,m=0,g=0,v=0,y=0,b=1;if(n=(t=new ot(e)).readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),rt[n]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(f=3!==o?8:12,h=0;h<f;h++)t.readBoolean()&&a(h<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),h=0;h<l;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:p=[1,1];break;case 2:p=[12,11];break;case 3:p=[10,11];break;case 4:p=[16,11];break;case 5:p=[40,33];break;case 6:p=[24,11];break;case 7:p=[20,11];break;case 8:p=[32,11];break;case 9:p=[80,33];break;case 10:p=[18,11];break;case 11:p=[15,11];break;case 12:p=[64,33];break;case 13:p=[160,99];break;case 14:p=[4,3];break;case 15:p=[3,2];break;case 16:p=[2,1];break;case 255:p=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}p&&(b=p[0]/p[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:Math.ceil((16*(c+1)-2*m-2*g)*b),height:(2-d)*(u+1)*16-2*v-2*y,sarRatio:p}}}).prototype=new z;var at,st={H264Stream:tt,NalByteStream:nt},lt=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},ct=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},ut=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n};(at=function(){var e=new Uint8Array,t=0;at.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,o,a,s=0,l=0;for(e.length?(a=e.length,(e=new Uint8Array(n.byteLength+a)).set(e.subarray(0,a)),e.set(n,a)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!=(255&e[l])||240!=(240&e[l+1]))l++;else{if(e.length-l<7)break;if(l+(s=ut(e,l))>e.length)break;o={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",o),l+=s}else{if(e.length-l<10)break;if(l+(s=ct(e,l))>e.length)break;i={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",i),l+=s}r=e.length-l,e=r>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new z;var dt,ft,pt,ht,mt=at,gt=st.H264Stream,vt=lt,yt=fe,bt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],_t=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],wt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Et=function(e,t,n,r,i,o){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(r-t),pts:e+(i-n)},prependedContentDuration:o,baseMediaDecodeTime:e}};(ft=function(e,t){var n=[],r=0,i=0,o=0,a=1/0;t=t||{},ft.prototype.init.call(this),this.push=function(t){ke(e,t),e&&bt.forEach(function(n){e[n]=t[n]}),n.push(t)},this.setEarliestDts=function(t){i=t-e.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var s,l,c,u,d;0!==n.length?(s=ve(n,e,i),e.baseMediaDecodeTime=Ee(e,t.keepOriginalTimestamps),ge(e,s,o,a),e.samples=ye(s),c=Z(be(s)),n=[],l=J(r,[e]),u=new Uint8Array(l.byteLength+c.byteLength),r++,u.set(l),u.set(c,l.byteLength),we(e),d=Math.ceil(1024*yt/e.samplerate),s.length&&this.trigger("timingInfo",{start:s[0].dts,end:s[0].dts+s.length*d}),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){we(e),n=[],this.trigger("reset")}}).prototype=new z,(dt=function(e,t){var n,r,i=0,o=[],a=[];t=t||{},dt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){ke(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],_t.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,s,l,c,u,d,f,p=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=ne(o),(s=re(n))[0][0].keyFrame||((r=this.getGopForFusion_(o[0],e))?(p=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=ie(s)),a.length){var h;if(!(h=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");we(e),s=h}ke(e,s),e.samples=oe(s),c=Z(ae(s)),e.baseMediaDecodeTime=Ee(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=s[0],f=s[s.length-1],this.trigger("segmentTimingInfo",Et(e.baseMediaDecodeTime,d.dts,d.pts,f.dts+f.duration,f.pts+f.duration,p)),this.trigger("timingInfo",{start:s[0].dts,end:s[s.length-1].dts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=J(i,[e]),u=new Uint8Array(l.byteLength+c.byteLength),i++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){we(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,r,i,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)i=(o=this.gopCache_[a]).gop,e.pps&&wt(e.pps[0],o.pps[0])&&e.sps&&wt(e.sps[0],o.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||s>n)&&(r=o,s=n));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,o,s,l,c;for(o=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;t<a.length&&n<e.length&&(r=a[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,o-=i.byteLength,s-=i.nalCount,l-=i.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=o,c.duration=l,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,r,i,o,s,l;for(t=a.length-1,n=e.length-1,o=null,s=!1;t>=0&&n>=0;){if(r=a[t],i=e[n],r.pts===i.pts){s=!0;break}r.pts>i.pts?t--:(t===a.length-1&&(o=n),n--)}if(!s&&null===o)return null;if(0===(l=s?n:o))return e;var c=e.slice(l),u=c.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){a=e}}).prototype=new z,(ht=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ht.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new z,ht.prototype.flush=function(e){var t,n,r,i,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,_t.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,bt.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,r=ee(this.pendingTracks),a.initSegment=new Uint8Array(r.byteLength),a.initSegment.set(r),a.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)a.data.set(this.pendingBoxes[i],o),o+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=me(t.startPts,s,this.keepOriginalTimestamps),t.endTime=me(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(n=this.pendingMetadata[i]).cueTime=me(n.pts,s,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),i=0;i<a.captions.length;i++)t=a.captions[i],this.trigger("caption",t);for(i=0;i<a.metadata.length;i++)n=a.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ht.prototype.setRemux=function(e){this.remuxTracks=e},(pt=function(e){var t,n,r=this,i=!0;pt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new Ze.MetadataStream,i.aacStream=new mt,i.audioTimestampRolloverStream=new Ze.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new Ze.TimestampRolloverStream("timed-metadata"),i.adtsStream=new it,i.coalesceStream=new ht(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",function(e){i.aacStream.setTimestamp(e.timeStamp)}),i.aacStream.on("data",function(o){"timed-metadata"!==o.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new ft(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new Ze.MetadataStream,i.packetStream=new Ze.TransportPacketStream,i.parseStream=new Ze.TransportParseStream,i.elementaryStream=new Ze.ElementaryStream,i.timestampRolloverStream=new Ze.TimestampRolloverStream,i.adtsStream=new it,i.h264Stream=new gt,i.captionStream=new Ze.CaptionStream,i.coalesceStream=new ht(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(o){var a;if("metadata"===o.type){for(a=o.tracks.length;a--;)t||"video"!==o.tracks[a].type?n||"audio"!==o.tracks[a].type||((n=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new dt(t,e),i.videoSegmentStream.on("timelineStartInfo",function(e){n&&(n.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts))}),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new ft(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,we(n),e.keepOriginalTimestamps||(n.timelineStartInfo.baseMediaDecodeTime=r),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,we(t),i.captionStream.reset(),e.keepOriginalTimestamps||(t.timelineStartInfo.baseMediaDecodeTime=r)),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=vt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new z;var kt={Transmuxer:pt,VideoSegmentStream:dt,AudioSegmentStream:ft,AUDIO_PROPERTIES:bt,VIDEO_PROPERTIES:_t,generateVideoSegmentTimingInfo:Et},xt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},St=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Tt=function(){function e(t,n){xt(this,e),this.options=n||{},this.self=t,this.init()}return St(e,[{key:"init",value:function(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new kt.Transmuxer(this.options),e=this.self,(t=this.transmuxer).on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])}),t.captionStream&&t.captionStream.on("data",function(t){e.postMessage({action:"caption",data:t})}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})}),t.on("videoSegmentTimingInfo",function(t){e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})})}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*t))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*e.appendStart))}},{key:"flush",value:function(e){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}();new function(e){e.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new Tt(e,t.data.options):(this.messageHandlers||(this.messageHandlers=new Tt(e)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}(n)}()}),va={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},ya=function(e){return e.map(function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})})},ba=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n={codecCount:0};return n.codecCount=t.split(",").length,n.codecCount=n.codecCount||2,(e=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(t))&&(n.videoCodec=e[2],n.videoObjectTypeIndicator=e[3]),n.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(t),n.audioProfile=n.audioProfile&&n.audioProfile[2],n},_a=function(e,t,n){return e+"/"+t+'; codecs="'+n.filter(function(e){return!!e}).join(", ")+'"'},wa=function(e,t){var n=function(e){return e.segments&&e.segments.length&&e.segments[0].map?"mp4":"mp2t"}(t),r=function(e){var t=e.attributes||{};return t.CODECS?ba(t.CODECS):va}(t),i=t.attributes||{},o=!0,a=!1;if(!t)return[];if(e.mediaGroups.AUDIO&&i.AUDIO){var s=e.mediaGroups.AUDIO[i.AUDIO];if(s)for(var l in a=!0,o=!1,s)if(!s[l].uri&&!s[l].playlists){o=!0;break}}a&&!r.audioProfile&&(o||(r.audioProfile=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return ba(i.playlists[0].attributes.CODECS).audioProfile}return null}(e,i.AUDIO)),r.audioProfile||(to.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),r.audioProfile=va.audioProfile));var c={};r.videoCodec&&(c.video=""+r.videoCodec+r.videoObjectTypeIndicator),r.audioProfile&&(c.audio="mp4a.40."+r.audioProfile);var u=_a("audio",n,[c.audio]),d=_a("video",n,[c.video]),f=_a("video",n,[c.video,c.audio]);return a?!o&&c.video?[d,u]:o||c.video?[f,u]:[u,u]:c.video?[f]:[u]},Ea=function(e){return/mp4a\.\d+.\d+/i.test(e)},ka=function(e){return/avc1\.[\da-f]+/i.test(e)},xa=function(e,t,n){if(null==t||!e.length)return[];var r=Math.ceil(9e4*(t-n+3)),i=void 0;for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},Sa=function(e,t,n){var r=null,i=null,o=0,a=[],s=[];if(!e&&!t)return to.createTimeRange();if(!e)return t.buffered;if(!t)return e.buffered;if(n)return e.buffered;if(0===e.buffered.length&&0===t.buffered.length)return to.createTimeRange();for(var l=e.buffered,c=t.buffered,u=l.length;u--;)a.push({time:l.start(u),type:"start"}),a.push({time:l.end(u),type:"end"});for(u=c.length;u--;)a.push({time:c.start(u),type:"start"}),a.push({time:c.end(u),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),u=0;u<a.length;u++)"start"===a[u].type?2===++o&&(r=a[u].time):"end"===a[u].type&&1===--o&&(i=a[u].time),null!==r&&null!==i&&(s.push([r,i]),r=null,i=null);return to.createTimeRanges(s)},Ta=function(e){function t(e,n){ao(this,t);var r=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,to.EventTarget));r.timestampOffset_=0,r.pendingBuffers_=[],r.bufferUpdating_=!1,r.mediaSource_=e,r.codecs_=n,r.audioCodec_=null,r.videoCodec_=null,r.audioDisabled_=!1,r.appendAudioInitSegment_=!0,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=to.browser.IE_VERSION>=11;var i={remux:!1,alignGopsAtEnd:r.safeAppend_};return r.codecs_.forEach(function(e){Ea(e)?r.audioCodec_=e:ka(e)&&(r.videoCodec_=e)}),r.transmuxer_=new ga,r.transmuxer_.postMessage({action:"init",options:i}),r.transmuxer_.onmessage=function(e){return"data"===e.data.action?r.data_(e):"done"===e.data.action?r.done_(e):"gopInfo"===e.data.action?r.appendGopInfo_(e):"videoSegmentTimingInfo"===e.data.action?r.videoSegmentTimingInfo_(e.data.videoSegmentTimingInfo):void 0},Object.defineProperty(r,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"==typeof e&&e>=0&&(this.timestampOffset_=e,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e}))}}),Object.defineProperty(r,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(e){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=e),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=e)}}),Object.defineProperty(r,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(r,"buffered",{get:function(){return Sa(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),r}return lo(t,e),so(t,[{key:"data_",value:function(e){var t=e.data.segment;t.data=new Uint8Array(t.data,e.data.byteOffset,e.data.byteLength),t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength),function(e,t,n){var r=t.player_;if(n.captions&&n.captions.length)for(var i in e.inbandTextTracks_||(e.inbandTextTracks_={}),n.captionStreams)if(!e.inbandTextTracks_[i]){r.tech_.trigger({type:"usage",name:"hls-608"});var o=r.textTracks().getTrackById(i);e.inbandTextTracks_[i]=o||r.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}n.metadata&&n.metadata.length&&!e.metadataTrack_&&(e.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)}(this,this.mediaSource_,t),this.pendingBuffers_.push(t)}},{key:"done_",value:function(e){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"videoSegmentTimingInfo_",value:function(e){var t={start:{decode:e.start.dts/9e4,presentation:e.start.pts/9e4},end:{decode:e.end.dts/9e4,presentation:e.end.pts/9e4},baseMediaDecodeTime:e.baseMediaDecodeTime/9e4};e.prependedContentDuration&&(t.prependedContentDuration=e.prependedContentDuration/9e4),this.trigger({type:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}},{key:"createRealSourceBuffers_",value:function(){var e=this,t=["audio","video"];t.forEach(function(n){if(e[n+"Codec_"]&&!e[n+"Buffer_"]){var r=null;if(e.mediaSource_[n+"Buffer_"])(r=e.mediaSource_[n+"Buffer_"]).updating=!1;else{var i=n+'/mp4;codecs="'+e[n+"Codec_"]+'"';r=function(e,t){var n=e.addSourceBuffer(t),r=Object.create(null);r.updating=!1,r.realBuffer_=n;var i=function(e){"function"==typeof n[e]?r[e]=function(){return n[e].apply(n,arguments)}:void 0===r[e]&&Object.defineProperty(r,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})};for(var o in n)i(o);return r}(e.mediaSource_.nativeMediaSource_,i),e.mediaSource_[n+"Buffer_"]=r}e[n+"Buffer_"]=r,["update","updatestart","updateend"].forEach(function(i){r.addEventListener(i,function(){if("audio"!==n||!e.audioDisabled_)return"updateend"===i&&(e[n+"Buffer_"].updating=!1),t.every(function(t){return!("audio"!==t||!e.audioDisabled_)||(n===t||!e[t+"Buffer_"]||!e[t+"Buffer_"].updating)})?e.trigger(i):void 0})})}})}},{key:"appendBuffer",value:function(e){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var t=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:t.end(t.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:xa(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(e){this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var r=t[0].pts,i=0;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)}(this.gopBuffer_,e.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(e,t){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(e,t),this.gopBuffer_=function(e,t,n,r){for(var i=Math.ceil(9e4*(t-r)),o=Math.ceil(9e4*(n-r)),a=e.slice(),s=e.length;s--&&!(e[s].pts<=o););if(-1===s)return a;for(var l=s+1;l--&&!(e[l].pts<=i););return l=Math.max(l,0),a.splice(l,s-l+1),a}(this.gopBuffer_,e,t,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(e,t)),na(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)na(e,t,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger("updateend"),void(this.bufferUpdating_=!1);e=this.pendingBuffers_.reduce(function(e,t){var n=t.type,r=t.data,i=t.initSegment;return e[n].segments.push(r),e[n].bytes+=r.byteLength,e[n].initSegment=i,t.captions&&(e.captions=e.captions.concat(t.captions)),t.info&&(e[n].info=t.info),t.metadata&&(e.metadata=e.metadata.concat(t.metadata)),e},e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var t=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(t=!0),ia(this,e.captions,e.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,t&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(e,t){var n=0,r=void 0;if(e.bytes){r=new Uint8Array(e.bytes),e.segments.forEach(function(e){r.set(e,n),n+=e.byteLength});try{t.updating=!0,t.appendBuffer(r)}catch(e){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:e.message,originalError:e})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),t}(to.EventTarget),Ca=function(e){function t(){ao(this,t);var e=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=void 0;for(n in e.nativeMediaSource_=new i.a.MediaSource,e.nativeMediaSource_)n in t.prototype||"function"!=typeof e.nativeMediaSource_[n]||(e[n]=e.nativeMediaSource_[n].bind(e.nativeMediaSource_));return e.duration_=NaN,Object.defineProperty(e,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(e){this.duration_=e,e===1/0||(this.nativeMediaSource_.duration=e)}}),Object.defineProperty(e,"seekable",{get:function(){return this.duration_===1/0?to.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(e,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(e,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),e.sourceBuffers=[],e.activeSourceBuffers_=[],e.updateActiveSourceBuffers_=function(){if(e.activeSourceBuffers_.length=0,1===e.sourceBuffers.length){var t=e.sourceBuffers[0];return t.appendAudioInitSegment_=!0,t.audioDisabled_=!t.audioCodec_,void e.activeSourceBuffers_.push(t)}for(var n=!1,r=!0,i=0;i<e.player_.audioTracks().length;i++){var o=e.player_.audioTracks()[i];if(o.enabled&&"main"!==o.kind){n=!0,r=!1;break}}e.sourceBuffers.forEach(function(t,i){if(t.appendAudioInitSegment_=!0,t.videoCodec_&&t.audioCodec_)t.audioDisabled_=n;else if(t.videoCodec_&&!t.audioCodec_)t.audioDisabled_=!0,r=!1;else if(!t.videoCodec_&&t.audioCodec_&&(t.audioDisabled_=i?r:!r,t.audioDisabled_))return;e.activeSourceBuffers_.push(t)})},e.onPlayerMediachange_=function(){e.sourceBuffers.forEach(function(e){e.appendAudioInitSegment_=!0})},e.onHlsReset_=function(){e.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.postMessage({action:"resetCaptions"})})},e.onHlsSegmentTimeMapping_=function(t){e.sourceBuffers.forEach(function(e){return e.timeMapping_=t.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(e){this.nativeMediaSource_.addEventListener(e,this.trigger.bind(this))},e),e.on("sourceopen",function(t){var n=a.a.querySelector('[src="'+e.url_+'"]');n&&(e.player_=to(n.parentNode),e.player_&&(e.player_.tech_.on("hls-reset",e.onHlsReset_),e.player_.tech_.on("hls-segment-time-mapping",e.onHlsSegmentTimeMapping_),e.player_.audioTracks&&e.player_.audioTracks()&&(e.player_.audioTracks().on("change",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("addtrack",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("removetrack",e.updateActiveSourceBuffers_)),e.player_.on("mediachange",e.onPlayerMediachange_)))}),e.on("sourceended",function(t){for(var n=ra(e.duration),r=0;r<e.sourceBuffers.length;r++){var i=e.sourceBuffers[r],o=i.metadataTrack_&&i.metadataTrack_.cues;o&&o.length&&(o[o.length-1].endTime=n)}}),e.on("sourceclose",function(e){this.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}),e}return lo(t,e),so(t,[{key:"addSeekableRange_",value:function(e,t){var n=void 0;if(this.duration!==1/0)throw(n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",n.code=11,n;(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(e){var t=void 0,n=function(e){var t={type:"",parameters:{}},n=e.trim().split(";");return t.type=n.shift().trim(),n.forEach(function(e){var n=e.trim().split("=");if(n.length>1){var r=n[0].replace(/"/g,"").trim(),i=n[1].replace(/"/g,"").trim();t.parameters[r]=i}}),t}(e);if(/^(video|audio)\/mp2t$/i.test(n.type)){var r=[];n.parameters&&n.parameters.codecs&&(r=n.parameters.codecs.split(","),r=(r=ya(r)).filter(function(e){return Ea(e)||ka(e)})),0===r.length&&(r=["avc1.4d400d","mp4a.40.2"]),t=new Ta(this,r),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),t.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else t=this.nativeMediaSource_.addSourceBuffer(e);return this.sourceBuffers.push(t),t}}]),t}(to.EventTarget),Oa=0;to.mediaSources={};var Aa=function(e,t){var n=to.mediaSources[e];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:t})},Na=function(){return!!i.a.MediaSource&&!!i.a.MediaSource.isTypeSupported&&i.a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},Ia=function(){if(this.MediaSource={open:Aa,supportsNativeMediaSources:Na},Na())return new Ca;throw new Error("Cannot use create a virtual MediaSource for this video")};Ia.open=Aa,Ia.supportsNativeMediaSources=Na;var Ma={createObjectURL:function(e){var t=void 0;return e instanceof Ca?(t=i.a.URL.createObjectURL(e.nativeMediaSource_),e.url_=t,t):e instanceof Ca?(t="blob:vjs-media-source/"+Oa,Oa++,to.mediaSources[t]=e,t):(t=i.a.URL.createObjectURL(e),e.url_=t,t)}};to.MediaSource=Ia,to.URL=Ma;var ja=to.EventTarget,La=to.mergeOptions,Pa=function(e,t){for(var n=void 0,r=La(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),i=0;i<t.playlists.length;i++){var o=go(r,t.playlists[i]);o?r=o:n=!0}return mo(t,function(e,t,i,o){if(e.playlists&&e.playlists.length){var a=e.playlists[0].uri,s=go(r,e.playlists[0]);s&&((r=s).mediaGroups[t][i][o].playlists[0]=r.playlists[a],n=!1)}}),n?null:r},Da=function(e){var t=e.byterange.offset+e.byterange.length-1;return e.uri+"-"+e.byterange.offset+"-"+t},Ra=function(e,t){var n,r,i={};for(var o in e){var a=e[o].sidx;if(a){var s=Da(a);if(!t[s])break;var l=t[s].sidxInfo;n=l,r=a,(Boolean(!n.map&&!r.map)||Boolean(n.map&&r.map&&n.map.byterange.offset===r.map.byterange.offset&&n.map.byterange.length===r.map.byterange.length))&&n.uri===r.uri&&n.byterange.offset===r.byterange.offset&&n.byterange.length===r.byterange.length&&(i[s]=t[s])}}return i},Fa=function(e,t,n,r,i){var o={uri:oo(r.handleManifestRedirects,e.resolvedUri),byterange:e.byterange,playlist:t};return n(to.mergeOptions(o,{responseType:"arraybuffer",headers:Uo(o)}),i)},Ba=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3];ao(this,t);var o=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),a=r.withCredentials,s=void 0!==a&&a,l=r.handleManifestRedirects,c=void 0!==l&&l;if(o.hls_=n,o.withCredentials=s,o.handleManifestRedirects=c,!e)throw new Error("A non-empty playlist URL or playlist is required");return o.on("minimumUpdatePeriod",function(){o.refreshXml_()}),o.on("mediaupdatetimeout",function(){o.refreshMedia_(o.media().uri)}),o.state="HAVE_NOTHING",o.loadedPlaylists_={},"string"==typeof e?(o.srcUrl=e,o.sidxMapping_={},co(o)):(o.setupChildLoader(i,e),o)}return lo(t,ja),so(t,[{key:"setupChildLoader",value:function(e,t){this.masterPlaylistLoader_=e,this.childPlaylist_=t}},{key:"dispose",value:function(){this.stopRequest(),this.loadedPlaylists_={},i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),i.a.clearTimeout(this.mediaRequest_),i.a.clearTimeout(this.mediaUpdateTimeout)}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"sidxRequestFinished_",value:function(e,t,n,r){var i=this;return function(o,a){if(i.request){if(i.request=null,o)return i.error={status:a.status,message:"DASH playlist request error at URL: "+e.uri,response:a.response,code:2},n&&(i.state=n),i.trigger("error"),r(t,null);var s=new Uint8Array(a.response),l=A.a.parseSidx(s.subarray(8));return r(t,l)}}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var r=!this.media_||e.uri!==this.media_.uri;if(r&&this.loadedPlaylists_[e.uri]&&this.loadedPlaylists_[e.uri].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(r)if(this.media_&&this.trigger("mediachanging"),e.sidx){var o=void 0,a=void 0;this.masterPlaylistLoader_?(o=this.masterPlaylistLoader_.master,a=this.masterPlaylistLoader_.sidxMapping_):(o=this.master,a=this.sidxMapping_);var s=Da(e.sidx);a[s]={sidxInfo:e.sidx},this.request=Fa(e.sidx,e,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(e,o,n,function(r,i){if(!r||!i)throw new Error("failed to request sidx");a[s].sidx=i,t.haveMetadata({startingState:n,playlist:r.playlists[e.uri]})}))}else this.mediaRequest_=i.a.setTimeout(this.haveMetadata.bind(this,{startingState:n,playlist:e}),0)}},{key:"haveMetadata",value:function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.uri]=n,this.mediaRequest_=null,this.refreshMedia_(n.uri),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout(function(){return t.load()},r)}else this.started?this.trigger("loadedplaylist"):this.start()}},{key:"parseMasterXml",value:function(){var e=Object(C.a)(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});e.uri=this.srcUrl;for(var t=0;t<e.playlists.length;t++){var n="placeholder-uri-"+t;e.playlists[t].uri=n,e.playlists[n]=e.playlists[t]}return mo(e,function(t,n,r,i){if(t.playlists&&t.playlists.length){var o="placeholder-uri-"+n+"-"+r+"-"+i;t.playlists[0].uri=o,e.playlists[o]=t.playlists[0]}}),vo(e),yo(e),e}},{key:"start",value:function(){var e=this;this.started=!0,this.masterPlaylistLoader_?this.mediaRequest_=i.a.setTimeout(this.haveMaster_.bind(this),0):this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?e.masterLoaded_=Date.parse(n.responseHeaders.date):e.masterLoaded_=Date.now(),e.srcUrl=oo(e.handleManifestRedirects,e.srcUrl,n),e.syncClientServerClock_(e.onClientServerClockSync_.bind(e))}})}},{key:"syncClientServerClock_",value:function(e){var t=this,n=Object(C.b)(this.masterXml_);return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),e()):void(this.request=this.hls_.xhr({uri:io(this.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(r,i){if(t.request){if(r)return t.clientOffset_=t.masterLoaded_-Date.now(),e();var o=void 0;o="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.clientOffset_=o-Date.now(),e()}}))}},{key:"haveMaster_",value:function(){this.state="HAVE_MASTER",this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger("loadedplaylist"))}},{key:"onClientServerClockSync_",value:function(){var e=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},this.master.minimumUpdatePeriod))}},{key:"refreshXml_",value:function(){var e=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,e.sidxMapping_=function(e,t,n,r){var i=Object(C.a)(e,{manifestUri:t,clientOffset:n}),o=Ra(i.playlists,r);return mo(i,function(e,t,n,i){if(e.playlists&&e.playlists.length){var a=e.playlists;o=La(o,Ra(a,r))}}),o}(e.masterXml_,e.srcUrl,e.clientOffset_,e.sidxMapping_);var r=e.parseMasterXml(),o=Pa(e.master,r),a=e.media().sidx;if(o)if(a){var s=Da(a);if(!e.sidxMapping_[s]){var l=e.media();e.request=Fa(l.sidx,l,e.hls_.xhr,{handleManifestRedirects:e.handleManifestRedirects},e.sidxRequestFinished_(l,r,e.state,function(t,n){if(!t||!n)throw new Error("failed to request sidx on minimumUpdatePeriod");e.sidxMapping_[s].sidx=n,e.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},e.master.minimumUpdatePeriod),e.refreshMedia_(e.media().uri)}))}}else e.master=o;e.minimumUpdatePeriodTimeout_=i.a.setTimeout(function(){e.trigger("minimumUpdatePeriod")},e.master.minimumUpdatePeriod)}})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media uri");var n=void 0,r=void 0;this.masterPlaylistLoader_?(n=this.masterPlaylistLoader_.master,r=this.masterPlaylistLoader_.parseMasterXml()):(n=this.master,r=this.parseMasterXml());var o=Pa(n,r);o?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=o:this.master=o,this.media_=o.playlists[e]):(this.media_=r.playlists[e],this.trigger("playlistunchanged")),this.media().endList||(this.mediaUpdateTimeout=i.a.setTimeout(function(){t.trigger("mediaupdatetimeout")},bo(this.media(),!!o))),this.trigger("loadedplaylist")}}]),t}(),Ua=function(e){return to.log.debug?to.log.debug.bind(to,"VHS:",e+" >"):function(){}};function qa(){}var za=function(){function e(t,n,r,i){ao(this,e),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=t,this.processedAppend_=!1,this.type_=r,this.mimeType_=n,this.logger_=Ua("SourceUpdater["+r+"]["+n+"]"),"closed"===t.readyState?t.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,n,i)):this.createSourceBuffer_(n,i)}return so(e,[{key:"createSourceBuffer_",value:function(e,t){var n=this;this.sourceBuffer_=this.mediaSource.addSourceBuffer(e),this.logger_("created SourceBuffer"),t&&(t.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?t.on("sourcebufferadded",function(){n.start_()}):this.start_()}},{key:"start_",value:function(){var e=this;this.started_=!0,this.onUpdateendCallback_=function(){var t=e.pendingCallback_;e.pendingCallback_=null,e.sourceBuffer_.removing=!1,e.logger_("buffered ["+ea(e.buffered())+"]"),t&&t(),e.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(e){var t=this;this.processedAppend_&&this.queueCallback_(function(){t.sourceBuffer_.abort()},e)}},{key:"appendBuffer",value:function(e,t){var n=this;this.processedAppend_=!0,this.queueCallback_(function(){e.videoSegmentTimingInfoCallback&&n.sourceBuffer_.addEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),n.sourceBuffer_.appendBuffer(e.bytes)},function(){e.videoSegmentTimingInfoCallback&&n.sourceBuffer_.removeEventListener("videoSegmentTimingInfo",e.videoSegmentTimingInfoCallback),t()})}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:to.createTimeRanges()}},{key:"remove",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qa;this.processedAppend_&&this.queueCallback_(function(){n.logger_("remove ["+e+" => "+t+"]"),n.sourceBuffer_.removing=!0,n.sourceBuffer_.remove(e,t)},r)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==qa}},{key:"timestampOffset",value:function(e){var t=this;return void 0!==e&&(this.queueCallback_(function(){t.sourceBuffer_.timestampOffset=e,t.runCallback_()}),this.timestampOffset_=e),this.timestampOffset_}},{key:"queueCallback_",value:function(e,t){this.callbacks_.push([e.bind(this),t]),this.runCallback_()}},{key:"runCallback_",value:function(){var e=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(e=this.callbacks_.shift(),this.pendingCallback_=e[1],e[0]())}},{key:"dispose",value:function(){var e=this,t=function t(){e.sourceBuffer_&&"open"===e.mediaSource.readyState&&e.sourceBuffer_.abort(),e.sourceBuffer_.removeEventListener("updateend",t)};this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener("updateend",t):t()}}]),e}(),Ha={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},Wa=2,$a=-101,Ya=-102,Va=function(e){e.forEach(function(e){e.abort()})},Ka=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:$a,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Ya,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Wa,xhr:t}:null},Ga=function(e,t,n){var r=0,i=!1;return function(o,a){if(!i)return o?(i=!0,Va(e),n(o,a)):(r+=1)===e.length?(a.endOfAllRequests=Date.now(),a.encryptedBytes?function(e,t,n){e.addEventListener("message",function r(i){if(i.data.source===t.requestId){e.removeEventListener("message",r);var o=i.data.decrypted;return t.bytes=new Uint8Array(o.bytes,o.byteOffset,o.byteLength),n(null,t)}});var r=void 0;r=t.key.bytes.slice?t.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.key.bytes)),e.postMessage(Wo({source:t.requestId,encrypted:t.encryptedBytes,key:r,iv:t.key.iv}),[t.encryptedBytes.buffer,r.buffer])}(t,a,n):n(null,a)):void 0}},Xa=function(e,t){return function(n){var r,i,o;return e.stats=to.mergeOptions(e.stats,(i=(r=n).target,(o={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-i.requestTime||0}).bytesReceived=r.loaded,o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3),o)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)}},Qa=function(e,t,n,r,i,o,a){var s=[],l=Ga(s,n,a);if(i.key&&!i.key.bytes){var c=e(to.mergeOptions(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),function(e,t){return function(n,r){var i=r.response,o=Ka(n,r);if(o)return t(o,e);if(16!==i.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Wa,xhr:r},e);var a=new DataView(i);return e.key.bytes=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),t(null,e)}}(i,l));s.push(c)}if(i.map&&!i.map.bytes){var u=e(to.mergeOptions(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:Uo(i.map)}),function(e,t,n){return function(r,i){var o=i.response,a=Ka(r,i);return a?n(a,e):0===o.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:Wa,xhr:i},e):(e.map.bytes=new Uint8Array(i.response),t&&!t.isInitialized()&&t.init(),e.map.timescales=I.a.timescale(e.map.bytes),e.map.videoTrackIds=I.a.videoTrackIds(e.map.bytes),n(null,e))}}(i,r,l));s.push(u)}var d=e(to.mergeOptions(t,{uri:i.resolvedUri,responseType:"arraybuffer",headers:Uo(i)}),function(e,t,n){return function(r,i){var o=i.response,a=Ka(r,i),s=void 0;return a?n(a,e):0===o.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:Wa,xhr:i},e):(e.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(i),e.key?e.encryptedBytes=new Uint8Array(i.response):e.bytes=new Uint8Array(i.response),t&&e.map&&e.map.bytes&&(t.isInitialized()||t.init(),(s=t.parse(e.bytes,e.map.videoTrackIds,e.map.timescales))&&s.captions&&(e.captionStreams=s.captionStreams,e.fmp4Captions=s.captions)),n(null,e))}}(i,r,l));return d.addEventListener("progress",Xa(i,o)),s.push(d),function(){return Va(s)}},Za=function(e,t){var n;return e&&(n=i.a.getComputedStyle(e))?n[t]:""},Ja=function(e,t){var n=e.slice();e.sort(function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i})},es=function(e,t){var n=void 0,r=void 0;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||i.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),n-(r=r||i.a.Number.MAX_VALUE)},ts=function(e){return"number"==typeof e&&isFinite(e)},ns=function(e){function t(e){ao(this,t);var n=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=e.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.hasPlayed_=e.hasPlayed,n.currentTime_=e.currentTime,n.seekable_=e.seekable,n.seeking_=e.seeking,n.duration_=e.duration,n.mediaSource_=e.mediaSource,n.hls_=e.hls,n.loaderType_=e.loaderType,n.startingMedia_=void 0,n.segmentMetadataTrack_=e.segmentMetadataTrack,n.goalBufferLength_=e.goalBufferLength,n.sourceType_=e.sourceType,n.inbandTextTracks_=e.inbandTextTracks,n.state_="INIT",n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.mimeType_=null,n.sourceUpdater_=null,n.xhrOptions_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.cacheEncryptionKeys_=e.cacheEncryptionKeys,n.keyCache_={},"main"===n.loaderType_?n.captionParser_=new j.a:n.captionParser_=null,n.decrypter_=e.decrypter,n.syncController_=e.syncController,n.syncPoint_={segmentIndex:0,time:0},n.syncController_.on("syncinfoupdate",function(){return n.trigger("syncinfoupdate")}),n.mediaSource_.addEventListener("sourceopen",function(){return n.ended_=!1}),n.fetchAtBuffer_=!1,n.logger_=Ua("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e)}}),n}return lo(t,e),so(t,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset()}},{key:"abort",value:function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(e){return void 0!==e&&(this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():to.createTimeRanges()}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=$o(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,timescales:e.timescales,videoTrackIds:e.videoTrackIds}),r||e}},{key:"segmentKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=Yo(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new za(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,this.hasPlayed_()||(e.syncInfo={mediaSequence:e.mediaSequence,time:0});var i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_("playlist update ["+i+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(n&&n.uri===e.uri){var o=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+o+"]"),null!==this.mediaIndex&&(this.mediaIndex-=o),r&&(r.mediaIndex-=o,r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}else null!==this.mediaIndex&&this.resyncLoader()}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(e,t){this.mimeType_||(this.mimeType_=e,this.sourceBufferEmitter_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(e){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),e),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(e,t,n){if(this.sourceUpdater_&&this.sourceUpdater_.remove(e,t,n),na(e,t,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var r in this.inbandTextTracks_)na(e,t,this.inbandTextTracks_[r])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);e&&(this.isEndOfStream_(e.mediaIndex)?this.endOfStream():(e.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&(e.timeline!==this.currentTimeline_&&(this.syncController_.reset(),e.timestampOffset=e.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(e)))}}},{key:"isEndOfStream_",value:function(e){return function(e,t,n){if(!e||!t)return!1;var r=n===e.segments.length;return e.endList&&"open"===t.readyState&&r}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_,this.mediaSource_,e)&&!this.sourceUpdater_.updating()}},{key:"checkBuffer_",value:function(e,t,n,r,i,o){var a=0,s=void 0;e.length&&(a=e.end(e.length-1));var l=Math.max(0,a-i);if(!t.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!r&&l>=1)return null;if(null===o)return n=this.getSyncSegmentCandidate_(t),this.generateSegmentInfo_(t,n,null,!0);if(null!==n){t.segments[n];return s=a,this.generateSegmentInfo_(t,n+1,s,!1)}if(this.fetchAtBuffer_){var c=Do.getMediaInfoForTime(t,a,o.segmentIndex,o.time);n=c.mediaIndex,s=c.startTime}else{var u=Do.getMediaInfoForTime(t,i,o.segmentIndex,o.time);n=u.mediaIndex,s=u.startTime}return this.generateSegmentInfo_(t,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(e){var t=this;if(-1===this.currentTimeline_)return 0;var n=e.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===t.currentTimeline_});return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(e,t,n,r){if(t<0||t>=e.segments.length)return null;var i=e.segments[t];return{requestId:"segment-loader-"+Math.random(),uri:i.resolvedUri,mediaIndex:t,isSyncRequest:r,startOfSegment:n,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:i.timeline,duration:i.duration,segment:i}}},{key:"abortRequestEarly_",value:function(e){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return!1;var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=Do.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),o=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.hls_.tech_.playbackRate())-1;if(i<=o)return!1;var a=function(e){var t=e.master,n=e.currentTime,r=e.bandwidth,i=e.duration,o=e.segmentDuration,a=e.timeUntilRebuffer,s=e.currentTimeline,l=e.syncController,c=t.playlists.filter(function(e){return!Do.isIncompatible(e)}),u=c.filter(Do.isEnabled);u.length||(u=c.filter(function(e){return!Do.isDisabled(e)}));var d=u.filter(Do.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=l.getSyncPoint(e,i,s,n)?1:2;return{playlist:e,rebufferingImpact:Do.estimateSegmentRequestTime(o,r,e)*t-a}}),f=d.filter(function(e){return e.rebufferingImpact<=0});return Ja(f,function(e,t){return es(t.playlist,e.playlist)}),f.length?f[0]:(Ja(d,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),d[0]||null)}({master:this.hls_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var s=i-o-a.rebufferingImpact,l=.5;return o<=1/30&&(l=1),!a.playlist||a.playlist.uri===this.playlist_.uri||s<l?!1:(this.bandwidth=a.playlist.attributes.BANDWIDTH*Ha.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(e,t){this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(t.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),e.abortRequests=Qa(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(e),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(e){var t=function(e,t,n){var r=void 0;return r=e.length&&e.start(0)>0&&e.start(0)<t?e.start(0):t-30,Math.min(r,t-n)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,n={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId};if(t.key){var r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=r}return t.map&&(n.map=this.initSegment(t.map)),n}},{key:"segmentRequestFinished_",value:function(e,t){if(this.mediaRequests+=1,t.stats&&(this.mediaBytesTransferred+=t.stats.bytesReceived,this.mediaTransferDuration+=t.stats.roundTripTime),this.pendingSegment_){if(t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===Ya?void(this.mediaRequestsAborted+=1):(this.pause(),e.code===$a?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));this.bandwidth=t.stats.bandwidth,this.roundTrip=t.stats.roundTripTime,t.map&&(t.map=this.initSegment(t.map,!0)),t.key&&this.segmentKey(t.key,!0),this.processSegmentResponse_(t)}}else this.mediaRequestsAborted+=1}},{key:"processSegmentResponse_",value:function(e){var t=this.pendingSegment_;t.bytes=e.bytes,e.map&&(t.segment.map.bytes=e.map.bytes),t.endOfAllRequests=e.endOfAllRequests,e.fmp4Captions&&(!function(e,t,n){for(var r in n)if(!e[r]){t.trigger({type:"usage",name:"hls-608"});var i=t.textTracks().getTrackById(r);e[r]=i||t.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}}(this.inbandTextTracks_,this.hls_.tech_,e.captionStreams),function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var i=window.WebKitDataCue||window.VTTCue;n.forEach(function(e){var n=e.stream,o=e.startTime,a=e.endTime;t[n]&&(o+=r,a+=r,t[n].addCue(new i(o,a,e.text)))})}}({inbandTextTracks:this.inbandTextTracks_,captionArray:e.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_){var t=this.pendingSegment_,n=t.segment,r=this.syncController_.probeSegmentInfo(t);void 0===this.startingMedia_&&r&&(r.containsAudio||r.containsVideo)&&(this.startingMedia_={containsAudio:r.containsAudio,containsVideo:r.containsVideo});var i,o,a,s=(i=this.loaderType_,o=this.startingMedia_,a=r,"main"===i&&o&&a?a.containsAudio||a.containsVideo?o.containsVideo&&!a.containsVideo?"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.":!o.containsVideo&&a.containsVideo?"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.":null:"Neither audio nor video found in segment.":null);if(s)return this.error({message:s,blacklistDuration:1/0}),void this.trigger("error");if(t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");if(null!==t.timestampOffset&&t.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(r&&r.segmentTimestampInfo){var l=r.segmentTimestampInfo[0].ptsTime,c=r.segmentTimestampInfo[0].dtsTime;t.timestampOffset-=l-c}this.sourceUpdater_.timestampOffset(t.timestampOffset),this.trigger("timestampoffset")}var u=this.syncController_.mappingForTimeline(t.timeline);if(null!==u&&this.trigger({type:"segmenttimemapping",mapping:u}),this.state="APPENDING",n.map){var d=$o(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==d){var f=this.initSegment(n.map);this.sourceUpdater_.appendBuffer({bytes:f.bytes},function(){e.activeInitSegmentId_=d})}}t.byteLength=t.bytes.byteLength,"number"==typeof n.start&&"number"==typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(function(e){var t=e.segment,n=t.start,r=t.end,i=e.playlist,o=i.mediaSequence,a=i.id,s=i.segments,l=void 0===s?[]:s,c=e.mediaIndex,u=e.timeline;return["appending ["+c+"] of ["+o+", "+(o+l.length)+"] from playlist ["+a+"]","["+n+" => "+r+"] in timeline ["+u+"]"].join(" ")}(t)),this.sourceUpdater_.appendBuffer({bytes:t.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,t.requestId)},this.handleUpdateEnd_.bind(this))}else this.state="READY"}},{key:"handleVideoSegmentTimingInfo_",value:function(e,t){if(this.pendingSegment_&&e===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment;n.videoTimingInfo||(n.videoTimingInfo={}),n.videoTimingInfo.transmuxerPrependedSeconds=t.videoSegmentTimingInfo.prependedContentDuration||0,n.videoTimingInfo.transmuxedPresentationStart=t.videoSegmentTimingInfo.start.presentation,n.videoTimingInfo.transmuxedPresentationEnd=t.videoSegmentTimingInfo.end.presentation,n.videoTimingInfo.baseMediaDecodeTime=t.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=e.segment,n=null!==this.mediaIndex;this.pendingSegment_=null,this.recordThroughput_(e),this.addSegmentMetadataCue_(e),this.state="READY",this.mediaIndex=e.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration?this.resetEverything():(n&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.isEndOfStream_(e.mediaIndex+1,e.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_())}},{key:"recordThroughput_",value:function(e){var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(ts(n)&&ts(r)){na(n,r,this.segmentMetadataTrack_);var o=i.a.WebKitDataCue||i.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.uri,start:n,end:r},s=new o(n,r,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),t}(to.EventTarget),rs=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},is=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),os=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ao(this,t);var r=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.mediaSource_=null,r.subtitlesTrack_=null,r}return lo(t,ns),so(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return to.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return to.createTimeRanges([[t,n]])}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=$o(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=is.byteLength+e.bytes.byteLength,o=new Uint8Array(i);o.set(e.bytes),o.set(is,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:o}}return r||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e?this.subtitlesTrack_:(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(e,t){na(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var t=this.pendingSegment_,n=t.segment;if("function"!=typeof i.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var r=void 0,o=function(){e.subtitlesTrack_.tech_.off("vttjsloaded",r),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")};return r=function(){e.subtitlesTrack_.tech_.off("vttjserror",o),e.handleSegment_()},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",r),void this.subtitlesTrack_.tech_.one("vttjserror",o)}n.requested=!0;try{this.parseVTTCues_(t)}catch(e){return this.error({message:e.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(t,this.syncController_.timelines[t.timeline],this.playlist_),t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");t.byteLength=t.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,t.cues.length&&this.remove(t.cues[0].endTime,t.cues[t.cues.length-1].endTime),t.cues.forEach(function(t){e.subtitlesTrack_.addCue(t)}),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(e){var t=void 0,n=!1;"function"==typeof i.a.TextDecoder?t=new i.a.TextDecoder("utf8"):(t=i.a.WebVTT.StringDecoder(),n=!0);var r=new i.a.WebVTT.Parser(i.a,i.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){return e.timestampmap=t},r.onparsingerror=function(e){to.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var o=e.segment.map.bytes;n&&(o=rs(o)),r.parse(o)}var a=e.bytes;n&&(a=rs(a)),r.parse(a),r.flush()}},{key:"updateTimeMapping_",value:function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var i=e.timestampmap,o=i.MPEGTS/9e4-i.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=o,e.endTime+=o}),!n.syncInfo){var a=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(a,s-r.duration)}}}else r.empty=!0}}]),t}(),as=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},ss=P.a.inspect,ls=[{name:"VOD",run:function(e,t,n,r,i){if(n!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!e.datetimeToDisplayTime)return null;var o=t.segments||[],a=null,s=null;i=i||0;for(var l=0;l<o.length;l++){var c=o[l];if(c.dateTimeObject){var u=c.dateTimeObject.getTime()/1e3+e.datetimeToDisplayTime,d=Math.abs(i-u);if(null!==s&&(0===d||s<d))break;s=d,a={time:u,segmentIndex:l}}}return a}},{name:"Segment",run:function(e,t,n,r,i){var o=t.segments||[],a=null,s=null;i=i||0;for(var l=0;l<o.length;l++){var c=o[l];if(c.timeline===r&&void 0!==c.start){var u=Math.abs(i-c.start);if(null!==s&&s<u)break;(!a||null===s||s>=u)&&(s=u,a={time:c.start,segmentIndex:l})}}return a}},{name:"Discontinuity",run:function(e,t,n,r,i){var o=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var a=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],c=t.discontinuitySequence+s+1,u=e.discontinuities[c];if(u){var d=Math.abs(i-u.time);if(null!==a&&a<d)break;(!o||null===a||a>=d)&&(a=d,o={time:u.time,segmentIndex:l})}}return o}},{name:"Playlist",run:function(e,t,n,r,i){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}],cs=function(e){function t(){ao(this,t);var e=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.inspectCache_=void 0,e.timelines=[],e.discontinuities=[],e.datetimeToDisplayTime=null,e.logger_=Ua("SyncController"),e}return lo(t,e),so(t,[{key:"getSyncPoint",value:function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+xo(e,r.segmentIndex,0))}},{key:"runStrategies_",value:function(e,t,n,r){for(var i=[],o=0;o<ls.length;o++){var a=ls[o],s=a.run(this,e,t,n,r);s&&(s.strategy=a.name,i.push({strategy:a.name,syncPoint:s}))}return i}},{key:"selectSyncPoint_",value:function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,o=1;o<e.length;o++){var a=Math.abs(e[o].syncPoint[t.key]-t.value);a<r&&(r=a,n=e[o].syncPoint,i=e[o].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+i+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n}},{key:"saveExpiredSegmentInfo",value:function(e,t){for(var n=t.mediaSequence-e.mediaSequence-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(e){if(!this.datetimeToDisplayTime&&e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(e){var t=e.segment,n=e.playlist,r=void 0;return(r=t.map?this.probeMp4Segment_(e):this.probeTsSegment_(e))&&this.calculateSegmentTimeMapping_(e,r)&&(this.saveDiscontinuitySyncInfo_(e),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:t.start})),r}},{key:"probeMp4Segment_",value:function(e){var t=e.segment,n=I.a.timescale(t.map.bytes),r=I.a.startTime(n,e.bytes);return null!==e.timestampOffset&&(e.timestampOffset-=r),{start:r,end:r+t.duration}}},{key:"probeTsSegment_",value:function(e){var t=ss(e.bytes,this.inspectCache_),n=void 0,r=void 0,i=void 0;return t?(t.video&&2===t.video.length?(this.inspectCache_=t.video[1].dts,n=t.video[0].dtsTime,r=t.video[1].dtsTime,i=t.video):t.audio&&2===t.audio.length&&(this.inspectCache_=t.audio[1].dts,n=t.audio[0].dtsTime,r=t.audio[1].dtsTime,i=t.audio),{segmentTimestampInfo:i,start:n,end:r,containsVideo:t.video&&2===t.video.length,containsAudio:t.audio&&2===t.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t){var n=e.segment,r=this.timelines[e.timeline];if(null!==e.timestampOffset)r={time:e.startOfSegment,mapping:e.startOfSegment-t.start},this.timelines[e.timeline]=r,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+r.time+"] [mapping: "+r.mapping+"]"),n.start=e.startOfSegment,n.end=t.end+r.mapping;else{if(!r)return!1;n.start=t.start+r.mapping,n.end=t.end+r.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i=t.discontinuityStarts[r],o=t.discontinuitySequence+r+1,a=i-e.mediaIndex,s=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>s){var l=void 0;l=a<0?n.start-xo(t,e.mediaIndex,i):n.end+xo(t,e.mediaIndex+1,i),this.discontinuities[o]={time:l,accuracy:s}}}}}]),t}(to.EventTarget),us=new da("./decrypter-worker.worker.js",function(e,t){var n=this;!function(){var e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},i=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],o=void 0,a=void 0,s=void 0,l=[],c=[],u=void 0,d=void 0,f=void 0,p=void 0,h=void 0;for(o=0;o<256;o++)c[(l[o]=o<<1^283*(o>>7))^o]=o;for(a=s=0;!r[a];a^=u||1,s=c[s]||1)for(f=(f=s^s<<1^s<<2^s<<3^s<<4)>>8^255&f^99,r[a]=f,i[f]=a,h=16843009*l[d=l[u=l[a]]]^65537*d^257*u^16843008*a,p=257*l[f]^16843008*f,o=0;o<4;o++)t[o][a]=p=p<<24^p>>>8,n[o][f]=h=h<<24^h>>>8;for(o=0;o<5;o++)t[o]=t[o].slice(0),n[o]=n[o].slice(0);return e},o=null,a=function(){function t(n){e(this,t),o||(o=i()),this._tables=[[o[0][0].slice(),o[0][1].slice(),o[0][2].slice(),o[0][3].slice(),o[0][4].slice()],[o[1][0].slice(),o[1][1].slice(),o[1][2].slice(),o[1][3].slice(),o[1][4].slice()]];var r=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=this._tables[0][4],d=this._tables[1],f=n.length,p=1;if(4!==f&&6!==f&&8!==f)throw new Error("Invalid aes key size");for(l=n.slice(0),c=[],this._key=[l,c],r=f;r<4*f+28;r++)s=l[r-1],(r%f==0||8===f&&r%f==4)&&(s=u[s>>>24]<<24^u[s>>16&255]<<16^u[s>>8&255]<<8^u[255&s],r%f==0&&(s=s<<8^s>>>24^p<<24,p=p<<1^283*(p>>7))),l[r]=l[r-f]^s;for(a=0;r;a++,r--)s=l[3&a?r:r-4],c[a]=r<=4||a<4?s:d[0][u[s>>>24]]^d[1][u[s>>16&255]]^d[2][u[s>>8&255]]^d[3][u[255&s]]}return t.prototype.decrypt=function(e,t,n,r,i,o){var a=this._key[1],s=e^a[0],l=r^a[1],c=n^a[2],u=t^a[3],d=void 0,f=void 0,p=void 0,h=a.length/4-2,m=void 0,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],w=v[3],E=v[4];for(m=0;m<h;m++)d=y[s>>>24]^b[l>>16&255]^_[c>>8&255]^w[255&u]^a[g],f=y[l>>>24]^b[c>>16&255]^_[u>>8&255]^w[255&s]^a[g+1],p=y[c>>>24]^b[u>>16&255]^_[s>>8&255]^w[255&l]^a[g+2],u=y[u>>>24]^b[s>>16&255]^_[l>>8&255]^w[255&c]^a[g+3],g+=4,s=d,l=f,c=p;for(m=0;m<4;m++)i[(3&-m)+o]=E[s>>>24]<<24^E[l>>16&255]<<16^E[c>>8&255]<<8^E[255&u]^a[g++],d=s,s=l,l=c,c=u,u=d},t}(),s=function(){function t(){e(this,t),this.listeners={}}return t.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},t.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),o=t.length,a=0;a<o;++a)t[a].apply(this,i)},t.prototype.dispose=function(){this.listeners={}},t.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},t}(),l=function(t){function n(){e(this,n);var i=r(this,t.call(this,s));return i.jobs=[],i.delay=1,i.timeout_=null,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},n}(s),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},u=function(){function n(t,r,i,o){e(this,n);var a=n.STEP,s=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),d=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(s.subarray(d,d+a),r,i,u)),d=a;d<s.length;d+=a)i=new Uint32Array([c(s[d-4]),c(s[d-3]),c(s[d-2]),c(s[d-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(d,d+a),r,i,u));this.asyncStream_.push(function(){var e;o(null,(e=u).subarray(0,e.byteLength-e[e.byteLength-1]))})}return n.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new a(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),s=new Int32Array(o.buffer),l=void 0,u=void 0,d=void 0,f=void 0,p=void 0,h=void 0,m=void 0,g=void 0,v=void 0;for(l=n[0],u=n[1],d=n[2],f=n[3],v=0;v<r.length;v+=4)p=c(r[v]),h=c(r[v+1]),m=c(r[v+2]),g=c(r[v+3]),i.decrypt(p,h,m,g,s,v),s[v]=c(s[v]^l),s[v+1]=c(s[v+1]^u),s[v+2]=c(s[v+2]^d),s[v+3]=c(s[v+3]^f),l=p,u=h,d=m,f=g;return o}(e,t,n);r.set(i,e.byteOffset)}},t(n,null,[{key:"STEP",get:function(){return 32e3}}]),n}();new function(e){e.onmessage=function(t){var n=t.data,r=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),i=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),o=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new u(r,i,o,function(t,r){var i,o;e.postMessage((i={source:n.source,decrypted:r},o={},Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?o[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:o[e]=t}),o),[r.buffer])})}}(n)}()}),ds=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},fs=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},ps=function(e,t){t.activePlaylistLoader=e,e.load()},hs={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e],i=t.blacklistCurrentPlaylist;fs(n,r);var o=r.activeTrack(),a=r.activeGroup(),s=(a.filter(function(e){return e.default})[0]||a[0]).id,l=r.tracks[s];if(o!==l){for(var c in to.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[c].enabled=r.tracks[c]===l;r.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];to.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),fs(n,r);var i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}}},ms={AUDIO:function(e,t,n){if(t){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",hs[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,i=n.requestOptions,o=n.segmentLoaders[e],a=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();o.playlist(e,i),o.track(a.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&o.load()}),t.on("loadedplaylist",function(){o.playlist(t.media(),i),r.paused()||o.load()}),t.on("error",hs[e](e,n))}},gs={AUDIO:function(e,t){var n=t.hls,r=t.sourceType,i=t.segmentLoaders[e],o=t.requestOptions,a=t.master.mediaGroups,s=t.mediaTypes[e],l=s.groups,c=s.tracks,u=t.masterPlaylistLoader;for(var d in a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}}),a[e])for(var f in l[d]||(l[d]=[]),a[e][d]){var p=a[e][d][f],h=void 0;if(h=p.resolvedUri?new _o(p.resolvedUri,n,o):p.playlists&&"dash"===r?new Ba(p.playlists[0],n,o,u):null,p=to.mergeOptions({id:f,playlistLoader:h},p),ms[e](e,p.playlistLoader,t),l[d].push(p),void 0===c[f]){var m=new to.AudioTrack({id:f,kind:ds(p),enabled:!1,language:p.language,default:p.default,label:f});c[f]=m}}i.on("error",hs[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.hls,i=t.sourceType,o=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,u=l.tracks,d=t.masterPlaylistLoader;for(var f in s[e])for(var p in c[f]||(c[f]=[]),s[e][f])if(!s[e][f][p].forced){var h=s[e][f][p],m=void 0;if("hls"===i?m=new _o(h.resolvedUri,r,a):"dash"===i&&(m=new Ba(h.playlists[0],r,a,d)),h=to.mergeOptions({id:p,playlistLoader:m},h),ms[e](e,h.playlistLoader,t),c[f].push(h),void 0===u[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:h.default&&h.autoselect,language:h.language,label:p},!1).track;u[p]=g}}o.on("error",hs[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,i=t.mediaTypes[e],o=i.groups,a=i.tracks;for(var s in r[e])for(var l in o[s]||(o[s]=[]),r[e][s]){var c=r[e][s][l];if(c.instreamId.match(/CC\d/)&&(o[s].push(to.mergeOptions({id:l},c)),void 0===a[l])){var u=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default&&c.autoselect,language:c.language,label:l},!1).track;a[l]=u}}}},vs={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if("showing"===n[r].mode)return n[r];return null}}},ys=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){gs[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,r=e.tech,i=e.hls;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=function(e,t){return function(n){var r=t.masterPlaylistLoader,i=t.mediaTypes[e].groups,o=r.media();if(!o)return null;var a=null;return o.attributes[e]&&(a=i[o.attributes[e]]),a=a||i.main,void 0===n?a:null===n?null:a.filter(function(e){return e.id===n.id})[0]||null}}(n,e),t[n].activeTrack=vs[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,o=t.mediaTypes[e],a=o.activeTrack(),s=o.activeGroup(a),l=o.activePlaylistLoader;fs(r,o),s&&(s.playlistLoader?(r.resyncLoader(),ps(s.playlistLoader,o)):l&&i.resetEverything())}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,o=t.mediaTypes[e],a=o.activeTrack(),s=o.activeGroup(a),l=o.activePlaylistLoader;fs(r,o),s&&(s.playlistLoader?l!==s.playlistLoader?(r.track&&r.track(a),r.resetEverything(),ps(s.playlistLoader,o)):ps(s.playlistLoader,o):i.resetEverything())}}(n,e)});var o=t.AUDIO.activeGroup(),a=(o.filter(function(e){return e.default})[0]||o[0]).id;t.AUDIO.tracks[a].enabled=!0,t.AUDIO.onTrackChanged(),n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})});var s=function(){t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"hls-audio-change"})};for(var l in r.audioTracks().addEventListener("change",s),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",function(){r.audioTracks().removeEventListener("change",s),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),r.clearTracks("audio"),t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[l])},bs=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:qa,activeTrack:qa,onGroupChanged:qa,onTrackChanged:qa}}),e},_s=void 0,ws=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],Es=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},ks=function(e){function t(e){ao(this,t);var n=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=e.url,i=e.handleManifestRedirects,o=e.withCredentials,a=e.tech,s=e.bandwidth,l=e.externHls,c=e.useCueTags,u=e.blacklistDuration,d=e.enableLowInitialPlaylist,f=e.sourceType,p=e.seekTo,h=e.cacheEncryptionKeys;if(!r)throw new Error("A non-empty playlist URL is required");_s=l,n.withCredentials=o,n.tech_=a,n.hls_=a.hls,n.seekTo_=p,n.sourceType_=f,n.useCueTags_=c,n.blacklistDuration=u,n.enableLowInitialPlaylist=d,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:i,timeout:null},n.mediaTypes_=bs(),n.mediaSource=new to.MediaSource,n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_.bind(n)),n.seekable_=to.createTimeRanges(),n.hasPlayed_=function(){return!1},n.syncController_=new cs(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new us,n.inbandTextTracks_={};var m={hls:n.hls_,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:s,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:h};return n.masterPlaylistLoader_="dash"===n.sourceType_?new Ba(r,n.hls_,n.requestOptions_):new _o(r,n.hls_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new ns(to.mergeOptions(m,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new ns(to.mergeOptions(m,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new os(to.mergeOptions(m,{loaderType:"vtt"}),e),n.setupSegmentLoaderListeners_(),ws.forEach(function(e){n[e+"_"]=Es.bind(n,e)}),n.logger_=Ua("MPC"),n.masterPlaylistLoader_.load(),n}return lo(t,e),so(t,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Po(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),ys({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,hls:e.hls_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t);try{e.setupSourceBuffers_()}catch(t){return to.log.warn("Failed to create SourceBuffers",t),e.mediaSource.endOfStream("decode")}e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var t=e.masterPlaylistLoader_.media();if(!t){e.excludeUnsupportedVariants_();var n=void 0;return e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),e.initialMedia_=n,void e.masterPlaylistLoader_.media(e.initialMedia_)}if(e.useCueTags_&&e.updateAdCues_(t),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.updateDuration(),e.tech_.paused()||(e.mainSegmentLoader_.load(),e.audioSegmentLoader_&&e.audioSegmentLoader_.load()),!t.endList){var r=function(){var t=e.seekable();0!==t.length&&e.mediaSource.addSeekableRange_(t.start(0),t.end(0))};if(e.duration()!==1/0){e.tech_.one("durationchange",function t(){e.duration()===1/0?r():e.tech_.one("durationchange",t)})}else r()}}),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Po(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media();e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(e,t){var n=e.mediaGroups||{},r=!0,i=Object.keys(n.AUDIO);for(var o in n.AUDIO)for(var a in n.AUDIO[o]){n.AUDIO[o][a].uri||(r=!1)}r&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),_s.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),_s.Playlist.isFmp4(t)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist(),n=e.masterPlaylistLoader_.media(),r=e.tech_.buffered(),i=r.length?r.end(r.length-1)-e.tech_.currentTime():0,o=e.bufferLowWaterLine();(!n.endList||e.duration()<Ha.MAX_BUFFER_LOW_WATER_LINE||t.attributes.BANDWIDTH<n.attributes.BANDWIDTH||i>=o)&&e.masterPlaylistLoader_.media(t),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120)}),this.mainSegmentLoader_.on("reseteverything",function(){e.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(t){e.tech_.trigger({type:"hls-segment-time-mapping",mapping:t.mapping})}),this.audioSegmentLoader_.on("ended",function(){e.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var e=this,t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetEverything(function(){to.browser.IE_VERSION||to.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())}))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.seekTo_(e.end(e.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_())return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(to.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.seekTo_(n.end(0)),e.hasPlayed_=function(){return!0}}),!1;this.trigger("firstplay"),this.seekTo_(n.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(e){return to.log.warn("Failed to create Source Buffers",e),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(e=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),e){this.logger_("calling mediaSource.endOfStream()");try{this.mediaSource.endOfStream()}catch(e){to.log.warn("Failed to call media source endOfStream",e)}}}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null===t)return!1;var n=_s.Playlist.playlistEnd(e,t),r=this.tech_.currentTime(),i=this.tech_.buffered();if(!i.length)return n-r<=.1;var o=i.end(i.length-1);return o-r<=.1&&n-o<=.1}},{key:"blacklistCurrentPlaylist",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=void 0;if(r=t.playlist||this.masterPlaylistLoader_.media(),n=n||t.blacklistDuration||this.blacklistDuration,!r){this.error=t;try{return this.mediaSource.endOfStream("network")}catch(e){return this.trigger("error")}}var i=1===this.masterPlaylistLoader_.master.playlists.filter(jo).length,o=this.masterPlaylistLoader_.master.playlists;return 1===o.length?(to.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(i)):(i&&(to.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),o.forEach(function(e){e.excludeUntil!==1/0&&delete e.excludeUntil}),this.tech_.trigger("retryplaylist")),r.excludeUntil=Date.now()+1e3*n,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),e=this.selectPlaylist(),to.log.warn("Problem encountered with the current HLS playlist."+(t.message?" "+t.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(e,i))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(e){var t=Zo(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:_s.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0,t=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var r=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==r&&0!==(e=_s.Playlist.seekable(n,r)).length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(r=this.syncController_.getExpiredTime(n,this.mediaSource.duration)))return;if(0===(t=_s.Playlist.seekable(n,r)).length)return}var i=void 0,o=void 0;this.seekable_&&this.seekable_.length&&(i=this.seekable_.end(0),o=this.seekable_.start(0)),t?t.start(0)>e.end(0)||e.start(0)>t.end(0)?this.seekable_=e:this.seekable_=to.createTimeRanges([[t.start(0)>e.start(0)?t.start(0):e.start(0),t.end(0)<e.end(0)?t.end(0):e.end(0)]]):this.seekable_=e,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===i&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+ea(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},{key:"updateDuration",value:function(){var e=this,t=this.mediaSource.duration,n=_s.Playlist.duration(this.masterPlaylistLoader_.media()),r=this.tech_.buffered(),i=function t(){e.logger_("Setting duration from "+e.mediaSource.duration+" => "+n);try{e.mediaSource.duration=n}catch(e){to.log.warn("Failed to set media source duration",e)}e.tech_.trigger("durationchange"),e.mediaSource.removeEventListener("sourceopen",t)};r.length>0&&(n=Math.max(n,r.end(r.length-1))),t!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",i):i())}},{key:"dispose",value:function(){var e=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var e,t=this.masterPlaylistLoader_.media();if(t&&"open"===this.mediaSource.readyState){if((e=wa(this.masterPlaylistLoader_.master,t)).length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+t.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(e),this.excludeIncompatibleVariants_(t)}}},{key:"configureLoaderMimeTypes_",value:function(e){var t=e.length>1&&-1===e[0].indexOf(",")&&e[0]!==e[1]?new to.EventTarget:null;this.mainSegmentLoader_.mimeType(e[0],t),e[1]&&this.audioSegmentLoader_.mimeType(e[1],t)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEach(function(e){var t;e.attributes.CODECS&&i.a.MediaSource&&i.a.MediaSource.isTypeSupported&&!i.a.MediaSource.isTypeSupported('video/mp4; codecs="'+(t=e.attributes.CODECS,t.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return ya([e])[0]}))+'"')&&(e.excludeUntil=1/0)})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=2,n=null,r=void 0;e.attributes.CODECS&&(r=ba(e.attributes.CODECS),n=r.videoCodec,t=r.codecCount),this.master().playlists.forEach(function(e){var r={codecCount:2,videoCodec:null};e.attributes.CODECS&&(r=ba(e.attributes.CODECS)),r.codecCount!==t&&(e.excludeUntil=1/0),r.videoCodec!==n&&(e.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var r=n,o=void 0,a=0;a<e.segments.length;a++){var s=e.segments[a];if(o||(o=as(t,r+s.duration/2)),o){if("cueIn"in s){o.endTime=r,o.adEndTime=r,r+=s.duration,o=null;continue}if(r<o.endTime){r+=s.duration;continue}o.endTime+=s.duration}else if("cueOut"in s&&((o=new i.a.VTTCue(r,r+s.duration,s.cueOut)).adStartTime=r,o.adEndTime=r+parseFloat(s.cueOut),t.addCue(o)),"cueOutCont"in s){var l,c,u=s.cueOutCont.split("/").map(parseFloat),d=uo(u,2);l=d[0],c=d[1],(o=new i.a.VTTCue(r,r+s.duration,"")).adStartTime=r-l,o.adEndTime=o.adStartTime+c,t.addCue(o)}r+=s.duration}}(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=Ha.GOAL_BUFFER_LENGTH,n=Ha.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,Ha.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=Ha.BUFFER_LOW_WATER_LINE,n=Ha.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,Ha.MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,r)}}]),t}(to.EventTarget),xs=function e(t,n,r){ao(this,e);var i,o,a,s=t.masterPlaylistController_,l=s[(t.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(s);if(n.attributes.RESOLUTION){var c=n.attributes.RESOLUTION;this.width=c.width,this.height=c.height}this.bandwidth=n.attributes.BANDWIDTH,this.id=r,this.enabled=(i=t.playlists,o=n.uri,a=l,function(e){var t=i.master.playlists[o],n=Mo(t),r=jo(t);return void 0===e?r:(e?delete t.disabled:t.disabled=!0,e===r||n||(a(),e?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),e)})},Ss=["seeking","seeked","pause","playing","error"],Ts=function(){function e(t){var n=this;ao(this,e),this.tech_=t.tech,this.seekable=t.seekable,this.seekTo=t.seekTo,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ua("PlaybackWatcher"),this.logger_("initialize");var r=function(){return n.monitorCurrentTime_()},o=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},s=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",s),this.tech_.on("waiting",o),this.tech_.on(Ss,a),this.tech_.on("canplay",r),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",s),n.tech_.off("waiting",o),n.tech_.off(Ss,a),n.tech_.off("canplay",r),n.checkCurrentTimeTimeout_&&i.a.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return so(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&i.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=i.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e=this.seekable(),t=this.tech_.currentTime(),n=void 0;this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=e.end(e.length-1));this.beforeSeekableWindow_(e,t)&&(n=e.start(0)+.1);return void 0!==n&&(this.logger_("Trying to seek outside of seekable at time "+t+" with seekable range "+ea(e)+". Seeking to "+n+"."),this.seekTo(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Zo(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.seekTo(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.seekTo(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.buffered(),i=Jo(r,t);if(this.videoUnderflow_(i,r,t))return this.cancelTimer_(),this.seekTo(t),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(i.length>0){var o=i.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+i.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1}},{key:"afterSeekableWindow_",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.length)return!1;var i=e.end(e.length-1)+.1;return!n.endList&&r&&(i=e.end(e.length-1)+3*n.targetDuration),t>i}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-.1)}},{key:"videoUnderflow_",value:function(e,t,n){if(0===e.length){var r=this.gapFromVideoUnderflow_(t,n);if(r)return this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),r=Jo(t,n);this.cancelTimer_(),0!==r.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.seekTo(r.start(0)+1/30),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var n=function(e){if(e.length<2)return to.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var r=e.end(n-1),i=e.start(n);t.push([r,i])}return to.createTimeRanges(t)}(e),r=0;r<n.length;r++){var i=n.start(r),o=n.end(r);if(t-i<4&&t-i>2)return{start:i,end:o}}return null}}]),e}(),Cs={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_)}},Os=function(e){!function e(t,n){var r=0,i=0,o=to.mergeOptions(Cs,n);t.ready(function(){t.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){i&&t.currentTime(i)},s=function(e){null!=e&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",a),t.src(e),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){if(Date.now()-r<1e3*o.errorInterval)t.trigger({type:"usage",name:"hls-error-reload-canceled"});else{if(o.getSource&&"function"==typeof o.getSource)return r=Date.now(),o.getSource.call(t,s);to.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},c=function e(){t.off("loadedmetadata",a),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",c),t.reloadSourceOnError=function(n){c(),e(t,n)}}(this,e)};to.use("*",function(e){return{setSource:function(e,t){t(null,e)},setCurrentTime:function(t){return e.vhs&&e.currentSource().src===e.vhs.source_.src&&e.vhs.setCurrentTime(t),t},play:function(){e.vhs&&e.currentSource().src===e.vhs.source_.src&&e.vhs.setCurrentTime(e.tech_.currentTime())}}});var As={PlaylistLoader:_o,Playlist:Do,Decrypter:Y,AsyncStream:H,decrypt:$,utils:Ko,STANDARD_PLAYLIST_SELECTOR:function(){return function(e,t,n,r,o){var a=e.playlists.map(function(e){var t,n;return t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,{bandwidth:e.attributes.BANDWIDTH||i.a.Number.MAX_VALUE,width:t,height:n,playlist:e}});Ja(a,function(e,t){return e.bandwidth-t.bandwidth});var s=(a=a.filter(function(e){return!Do.isIncompatible(e.playlist)})).filter(function(e){return Do.isEnabled(e.playlist)});s.length||(s=a.filter(function(e){return!Do.isDisabled(e.playlist)}));var l=s.filter(function(e){return e.bandwidth*Ha.BANDWIDTH_VARIANCE<t}),c=l[l.length-1],u=l.filter(function(e){return e.bandwidth===c.bandwidth})[0];if(!1===o){var d=u||s[0]||a[0];return d?d.playlist:null}var f=l.filter(function(e){return e.width&&e.height});Ja(f,function(e,t){return e.width-t.width});var p=f.filter(function(e){return e.width===n&&e.height===r});c=p[p.length-1];var h=p.filter(function(e){return e.bandwidth===c.bandwidth})[0],m=void 0,g=void 0,v=void 0;h||(g=(m=f.filter(function(e){return e.width>n||e.height>r})).filter(function(e){return e.width===m[0].width&&e.height===m[0].height}),c=g[g.length-1],v=g.filter(function(e){return e.bandwidth===c.bandwidth})[0]);var y=v||h||u||s[0]||a[0];return y?y.playlist:null}(this.playlists.master,this.systemBandwidth,parseInt(Za(this.tech_.el(),"width"),10),parseInt(Za(this.tech_.el(),"height"),10),this.limitRenditionByPlayerDimensions)},INITIAL_PLAYLIST_SELECTOR:function(){var e=this.playlists.master.playlists.filter(Do.isEnabled);return Ja(e,function(e,t){return es(e,t)}),e.filter(function(e){return ba(e.attributes.CODECS).videoCodec})[0]||null},comparePlaylistBandwidth:es,comparePlaylistResolution:function(e,t){var n=void 0,r=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||i.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),n===(r=r||i.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},xhr:Bo()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(e){Object.defineProperty(As,e,{get:function(){return to.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),Ha[e]},set:function(t){to.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?to.log.warn("value of Hls."+e+" must be greater than or equal to 0"):Ha[e]=t}})});var Ns=function(e){if(/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i.test(e))return"hls";return/^application\/dash\+xml/i.test(e)?"dash":null},Is=function(e,t){for(var n=t.media(),r=-1,i=0;i<e.length;i++)if(e[i].id===n.uri){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})};As.canPlaySource=function(){return to.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Ms=function(e){if("dash"===e.options_.sourceType){var t=to.players[e.tech_.options_.playerId];if(t.eme){var n=function(e,t,n){if(!e)return e;var r={};for(var i in e)r[i]={audioContentType:'audio/mp4; codecs="'+n.attributes.CODECS+'"',videoContentType:'video/mp4; codecs="'+t.attributes.CODECS+'"'},t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(r[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(r[i].url=e[i]);return to.mergeOptions(e,r)}(e.source_.keySystems,e.playlists.media(),e.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader.media());n&&(t.currentSource().keySystems=n,t.eme.initializeMediaKeys&&t.eme.initializeMediaKeys())}}},js=function(){if(!window.localStorage)return null;var e=window.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};As.supportsNativeHls=function(){var e=a.a.createElement("video");if(!to.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),As.supportsNativeDash=!!to.getTech("Html5").isSupported()&&/maybe|probably/i.test(a.a.createElement("video").canPlayType("application/dash+xml")),As.supportsTypeNatively=function(e){return"hls"===e?As.supportsNativeHls:"dash"===e&&As.supportsNativeDash},As.isSupported=function(){return to.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Ls=to.getComponent("Component"),Ps=function(e){function t(e,n,r){ao(this,t);var i=co(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r.hls));if(n.options_&&n.options_.playerId){var o=to(n.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return to.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),i},configurable:!0}),o.vhs=i,o.dash=i,i.player_=o}if(i.tech_=n,i.source_=e,i.stats={},i.setOptions_(),i.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(i.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return i.on(a.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=a.a.fullscreenElement||a.a.webkitFullscreenElement||a.a.mozFullScreenElement||a.a.msFullscreenElement;t&&t.contains(i.tech_.el())&&i.masterPlaylistController_.smoothQualityChange_()}),i.on(i.tech_,"seeking",function(){0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)}),i.on(i.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),i.on(i.tech_,"play",i.play),i}return lo(t,Ls),so(t,[{key:"setOptions_",value:function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=js();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Ha.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Ha.INITIAL_BANDWIDTH,["withCredentials","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:"src",value:function(e,t){var n=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=As,this.options_.sourceType=Ns(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e),n.setCurrentTime(e)},this.masterPlaylistController_=new ks(this.options_),this.playbackWatcher_=new Ts(to.mergeOptions(this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()}})),this.masterPlaylistController_.on("error",function(){to.players[n.tech_.options_.playerId].error(n.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):As.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=As.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){to.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return ta(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ta(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!window.localStorage)return!1;var t=js();t=t?to.mergeOptions(t,e):e;try{window.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var e,t;t=(e=n).playlists,e.representations=function(){return t.master.playlists.filter(function(e){return!Mo(e)}).map(function(t,n){return new xs(e,t,t.uri)})},Ms(n)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.tech_.ready(function(){return n.setupQualityLevels_()}),this.tech_.el()&&this.tech_.src(to.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=to.players[this.tech_.options_.playerId];t&&t.qualityLevels&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach(function(e){t.addQualityLevel(e)}),Is(t,n.playlists)}),this.playlists.on("mediachange",function(){Is(e.qualityLevels_,e.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return Go({playlist:this.masterPlaylistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return Xo({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}}]),t}(),Ds={name:"videojs-http-streaming",VERSION:"1.10.6",canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=to.mergeOptions(to.options,t);return Ds.canPlayType(e.type,n)},handleSource:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=to.mergeOptions(to.options,n);return t.hls=new Ps(e,t,r),t.hls.xhr=Bo(),t.hls.src(e.src,e.type),t.hls},canPlayType:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=to.mergeOptions(to.options,t).hls.overrideNative,r=Ns(e);return r&&(!As.supportsTypeNatively(r)||n)?"maybe":""}};void 0!==to.MediaSource&&void 0!==to.URL||(to.MediaSource=Ia,to.URL=Ma),Ia.supportsNativeMediaSources()&&to.getTech("Html5").registerSourceHandler(Ds,0),to.HlsHandler=Ps,to.HlsSourceHandler=Ds,to.Hls=As,to.use||to.registerComponent("Hls",As),to.options.hls=to.options.hls||{},to.registerPlugin?to.registerPlugin("reloadSourceOnError",Os):to.plugin("reloadSourceOnError",Os);t.default=to},function(e,t,n){"use strict";(function(e,r){var i,o=n(1136);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(o.a)(i);t.a=a}).call(this,n(69),n(1505)(e))},function(e,t,n){var r=n(87),i=n(1705);e.exports=r(function(e){return i(1,e)})},function(e,t,n){var r=n(1789);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(a,p),a=p+d.length,f)s+=f[1];else{var h=e[a],m=n[2],g=n[3],v=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=m&&null!=h&&h!==m,E="+"===b||"*"===b,k="?"===b||"*"===b,x=n[2]||u,S=v||y;r.push({name:g||o++,prefix:m||"",delimiter:x,optional:k,repeat:E,partial:w,asterisk:!!_,pattern:S?c(S):_?".*":"[^"+l(x)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var o="",s=n||{},l=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,f=s[u.name];if(null==f){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(d=l(f[p]),!t[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");o+=(0===p?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(f).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):l(f),!t[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');o+=u.prefix+d}}else o+=u}return o}}function l(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function d(e){return e.sensitive?"":"i"}function f(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=l(c);else{var f=l(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+f+p+")*"),a+=p=c.optional?c.partial?f+"("+p+")?":"(?:"+f+"("+p+"))?":f+"("+p+")"}}var h=l(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,d(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",d(n)),t)}(e,t,n):function(e,t,n){return f(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(37),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=n(54),d=n.n(u),f=n(1155),p=n(326),h=n(601),m=n(84),g=Object(h.a)(f.a),v=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentDidMount",value:function(){var e=this;d()(".page__content").addClass("page__content--appear");var t=d()("[data-page]:first-child [data-previous-lesson]"),n=document.getElementsByClassName("page-wrap");t.length>0?i()(function(){var r=t.height();e.displayFlex(t),d()(n).scrollTop(r),d()("[data-lesson-header]").css({top:r})},50):d()(n).scrollTop(0)}},{key:"componentWillEnter",value:function(e){var t=document.querySelector("[data-overview-sidebar-content]"),n="overview-sidebar__content--will-enter",r="overview-sidebar__content--will-enter-active";t.classList.add(n),i()(function(){t.classList.add(r)},10),i()(function(){t.classList.remove(n,r),e()},2e3)}},{key:"render",value:function(){return e.createElement(m.TransitionGroup,{className:"transition-group"},e.createElement(p.a,null,e.createElement(g,this.props)))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(93)},function(e,t,n){"use strict";var r=n(1179),i=n.n(r),o=n(107),a="".concat(Object(o.d)("RISE_RUNTIME_URI"),"/socket.io"),s=i()({uri:a});s.on("hard-reload",function(){return window.location.reload(!0)}),t.a=s},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return ye}),n.d(t,"a",function(){return xe});var r=n(31),i=n(30),o=n.n(i),a=n(1186),s=n.n(a),l=n(127),c=n.n(l),u=n(13),d=n(3),f=n.n(d),p=n(71),h=n(15),m=n.n(h),g=n(4),v=n.n(g),y=n(159),b=n.n(y),_=n(5),w=n(146),E=n.n(w),k=n(10),x=n(7),S=n(11),T=n(9),C=n(12),O=(n(2088),n(1)),A=n.n(O),N=n(227),I=n.n(N),M=n(51),j=n.n(M),L=n(325),P=n.n(L),D=n(121),R=n.n(D),F=n(321),B=n.n(F),U=n(1187),q=n.n(U),z=n(44),H=n.n(z),W=n(120),$=n.n(W),Y=n(48),V=n.n(Y),K=n(23),G=n.n(K),X=n(183),Q=n(49),Z=n(2),J=n.n(Z),ee=n(95),te=n(588),ne=n(68),re=n(299),ie=n.n(re),oe=n(1200),ae=n.n(oe),se=n(135),le=n.n(se),ce=n(58),ue=n(57),de=n(100),fe=n(56),pe=n(52),he=n(27),me=n(22),ge=n(85),ve=n(90),ye=function(t){function n(){return Object(k.a)(this,n),Object(S.a)(this,Object(T.a)(n).apply(this,arguments))}return Object(C.a)(n,t),Object(x.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.blockId,i=t.editable,o=t.isLearner,a=t.items,s=t.labels.accordionGroup,l=t.lessonId,c=t.onStep,u=t.settings,d=t.enableVideoPlaybackSpeed,f=u.paddingTop,p=u.paddingBottom,h=u.backgroundColor,m=u.entranceAnimation,g=u.accordionBehavior,v=void 0===g?"keepOpen":g,y=J()("blocks-accordion",{"blocks-accordion--no-animation":!m}),b={backgroundColor:Object(ne.a)("",h),paddingTop:"".concat(10*f,"px"),paddingBottom:"".concat(10*p,"px")};return e.createElement("div",{className:y,style:b},e.createElement(fe.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:o,duration:.75},e.createElement("div",{className:"blocks-accordion__container"},e.createElement("div",{className:"blocks-accordion__row"},e.createElement("div",{"aria-label":s,className:"blocks-accordion__col"},e.createElement(we,{keepOpen:"keepOpen"===v,lessonId:l,blockId:r,items:a,editable:i,settings:u,onStep:c,enableVideoPlaybackSpeed:d}))))))}}],[{key:"propTypes",get:function(){return{lessonId:A.a.any,blockId:A.a.any,items:A.a.array,settings:A.a.object.isRequired,editable:A.a.bool,onStep:A.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",onStep:Function.prototype}}}]),n}(e.Component),be={isOpen:!1,isActive:!1},_e=function(e,t){return b()(t).call(t,function(e){return function(t,n){var r=n.id;return E()({},t,Object(_.a)({},r,e[r]||be))}}(e),{})},we=function(t){function n(){var e,t,r;Object(k.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(r=Object(S.a)(this,(e=Object(T.a)(n)).call.apply(e,v()(t=[this]).call(t,o)))).props.items;return r.state={itemStatusMap:_e({},s)},r}return Object(C.a)(n,t),Object(x.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:A.a.any,blockId:A.a.any,items:A.a.array,settings:A.a.object.isRequired,editable:A.a.bool,keepOpen:A.a.bool,onStep:A.a.func}}},{key:"defaultProps",get:function(){return{items:[],editable:!1,lessonId:"",blockId:"",keepOpen:!1,onStep:Function.prototype}}}]),Object(x.a)(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.items,n=j()(t)!==j()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference(t):n&&this.rebuildItemStatusMap(t)}},{key:"updateMapForOneAtATimePreference",value:function(){var e=this.state.itemStatusMap,t=this.props.items,n=q()(function(t){return e[t.id].isOpen},t);if(n){var r,i=(r=n.id,function(e,t){return{isOpen:t==r,isActive:e.isActive}});this.setState({itemStatusMap:R()(i,e)})}}},{key:"rebuildItemStatusMap",value:function(e){var t=this.state.itemStatusMap;this.setState({itemStatusMap:_e(t,e)})}},{key:"handleItemClick",value:function(e){var t=this.props,n=t.items,r=t.keepOpen,i=t.onStep,o=this.state.itemStatusMap,a=function(e,t){return function(n,r){var i=e==r,o=i?!n.isOpen:n.isOpen,a=i&&!n.isOpen;return{isOpen:t?o:a,isActive:i}}}(n[e].id,r);this.setState({itemStatusMap:R()(a,o)}),open&&i(n[e])}},{key:"render",value:function(){var t=this,n=this.props,r=n.items,i=n.settings,o=n.editable,a=n.labels,s=n.lessonId,l=n.blockId,c=n.enableVideoPlaybackSpeed,u=this.state.itemStatusMap,d=i.zoomOnClick;return e.createElement("div",{className:"blocks-accordion__wrapper"},m()(r).call(r,function(n,r){var i;return e.createElement(Ee,{blockId:l,disableZoom:!d,editable:o,focused:u[n.id].isActive,index:r,item:Object(p.a)({},n,{enableVideoPlaybackSpeed:c}),key:n.id,labels:a,lessonId:s,onClick:f()(i=t.handleItemClick).call(i,t,r),open:u[n.id].isOpen})}))}}]),n}(e.Component),Ee=function(t){function n(){var e,t,r,i;Object(k.a)(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=Object(S.a)(this,(e=Object(T.a)(n)).call.apply(e,v()(t=[this]).call(t,a)))).toggle=f()(r=i.toggle).call(r,Object(u.a)(i)),i}return Object(C.a)(n,t),Object(x.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:A.a.any,blockId:A.a.any,index:A.a.number.isRequired,item:A.a.object.isRequired,editable:A.a.bool,open:A.a.bool,focused:A.a.bool,disableZoom:A.a.bool,onClick:A.a.func,labels:A.a.object}}},{key:"defaultProps",get:function(){return{editable:!1,onClick:function(){},lessonId:"",blockId:"",open:null}}}]),Object(x.a)(n,[{key:"componentDidUpdate",value:function(){if(this.props.open){var e=this.content;e&&(e.offsetHeight,e.classList.add("blocks-accordion__content--visible"))}}},{key:"handleTitleChange",value:function(e,t){var n=t.target.value,r=this.props,i=r.lessonId,o=r.blockId;Object(ce.a)(Object(ue.g)({lessonId:i,blockId:o,itemId:e,payload:{title:n}}))}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(ce.a)(Object(ue.g)({lessonId:r,blockId:i,itemId:e,payload:{description:t}}))}},{key:"handleTitleClick",value:function(e){e.stopPropagation()}},{key:"toggle",value:function(e){var t=this.props,n=t.blockId,r=t.index,i=Q.a.playerId;open&&i&&c()(i).call(i,n)&&s()(i).call(i,r)&&Q.a.pause(),this.props.onClick(),e.preventDefault()}},{key:"render",value:function(){var t,n,r,i,o=this,a=this.props,s=a.blockId,l=a.editable,c=a.disableZoom,u=a.index,d=a.item,p=a.focused,h=a.labels,m=a.open,g=d.title,y=d.settings,b=void 0===y?{}:y,_=d.media,w=void 0===_?{}:_,k=d.description,x=void 0===k?"":k,S=d.id,T=d.enableVideoPlaybackSpeed,C=E()({},b,{disableZoom:c,fullEmbed:!0}),O=J()("blocks-accordion__item",{"blocks-accordion__item--closed":!m}),A=J()("blocks-accordion__header",{"brand--border":m&&p}),N=J()("blocks-accordion__content",{"blocks-accordion__content--will-enter":m,"brand--border":m&&p}),I=J()("blocks-accordion__media","blocks-accordion__".concat(ke(w))),M="title-".concat(S),j="panel-".concat(S);return e.createElement("section",{className:O},e.createElement("div",{role:ge.b},e.createElement("div",{"aria-controls":j,"aria-expanded":m,"aria-labelledby":M,className:A,onClick:this.toggle,onKeyDown:!l&&Object(he.a)(this.toggle)||null,role:"button",tabIndex:me.a},l?e.createElement("input",{id:S,className:"blocks-accordion__title brand--head brand--linkColor",type:"text",value:g,placeholder:"Add a title",ref:function(e){o.editor=e},onClick:f()(t=this.handleTitleClick).call(t,this),onChange:f()(n=this.handleTitleChange).call(n,this,S)}):e.createElement(pe.a,{className:"blocks-accordion__title brand--head brand--linkColor",value:g}),e.createElement("span",{className:"blocks-accordion__toggler"},m?"–":"+"))),e.createElement("section",{"aria-labelledby":M,className:N,id:j,ref:function(e){o.content=e}},e.createElement(de.a,{className:"blocks-accordion__description brand--body brand--linkColor",value:x||"",placeholder:"Add a description",onChange:f()(r=this.handleDescriptionChange).call(r,this,S),component:"div",editable:l}),e.createElement("div",{className:I},e.createElement(X.a,{className:"blocks-accordion__img",index:v()(i="".concat(s,"-")).call(i,u),labels:h,media:w,opts:C,enableVideoPlaybackSpeed:T}))))}}]),n}(e.Component),ke=function(e){var t=e.image,n=e.embed,r=e.video,i=e.audio;return t?"image":n?"embed":r?"video":i?"audio":"image"},xe=function(t){function n(){var e,t,r;Object(k.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=(r=Object(S.a)(this,(e=Object(T.a)(n)).call.apply(e,v()(t=[this]).call(t,o)))).props.activeIndex;return r.state={activeIndex:s,activeTouch:!1,activeMouse:!1},r.tabs=[],r.tabPanels=[],r}return Object(C.a)(n,t),Object(x.a)(n,null,[{key:"propTypes",get:function(){return{lessonId:A.a.any,blockId:A.a.any,items:A.a.array,settings:A.a.object.isRequired,activeIndex:A.a.number,editable:A.a.bool,onStep:A.a.func}}},{key:"defaultProps",get:function(){return{items:[],activeIndex:0,lessonId:"",blockId:"",onStep:Function.prototype}}}]),Object(x.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.setContentActive(),this.handleControls(),this.tabsHeaderEl.addEventListener("scroll",this.tabScroll=le()(f()(e=this.handleControls).call(e,this),50)),window.addEventListener("resize",this.tabResize=le()(f()(t=this.handleControls).call(t,this),100))}},{key:"componentDidUpdate",value:function(){this.setContentActive(),this.handleControls()}},{key:"componentWillUnmount",value:function(){this.sweetScroll&&this.sweetScroll.destroy(),this.tabsHeaderEl.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize)}},{key:"setContentActive",value:function(){var e=this.container.querySelector(".blocks-tabs__content-item--will-enter");e&&(e.offsetHeight,e.classList.add("blocks-tabs__content-item--active"))}},{key:"setActive",value:function(e,t){t.preventDefault(),this.setState({activeIndex:e});var n=this.props.blockId,r=Q.a.playerId;this.state.activeIndex!=e&&r&&c()(r).call(r,n)&&Q.a.pause(),this.props.onStep(this.props.items[e])}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(ce.a)(Object(ue.g)({lessonId:r,blockId:i,itemId:e,payload:{description:t}}))}},{key:"handleControls",value:function(){this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(0===this.tabsHeaderEl.scrollLeft?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}},{key:"handleMouseEnter",value:function(){this.state.activeTouch||this.setState({activeMouse:!0})}},{key:"handleMouseLeave",value:function(){this.setState({activeMouse:!1})}},{key:"handleTouchStart",value:function(){this.setState({activeTouch:!0})}},{key:"scrollTabs",value:function(e){var t=this.tabsHeaderEl.offsetWidth,n=this.tabsHeaderEl.scrollLeft,r={};this.sweetScroll||(this.sweetScroll=new ae.a({duration:600,verticalScroll:!1,horizontalScroll:!0},this.tabsHeaderEl)),r="next"===e?{left:n+.8*t}:{left:n-.8*t},this.sweetScroll.to(r)}},{key:"arrowPrevInset",value:function(e){var t=this.arrowPrevEl.getBoundingClientRect();return t.right-e+(t.left-e)}},{key:"focusTab",value:function(e){var t=e.target,n=document.querySelector(".blocks-tabs__header"),r=n.getBoundingClientRect(),i=r.left,o=r.right,a=t.getBoundingClientRect(),s=a.left;if(a.right>o||s<i){var l=this.arrowPrevInset(i);n.scrollLeft=s+n.scrollLeft-i-l}}},{key:"handleTabKeyDown",value:function(e,t){var n=this,r=Object(ve.a)(function(){var r=Object(me.g)({list:n.tabs,currentIndex:e});n.setActive(r,t)}),i=Object(ve.a)(function(){var r=Object(me.f)({list:n.tabs,currentIndex:e});n.setActive(r,t)});H()([[he.f,r],[he.h,i]])(t)}},{key:"renderHeader",value:function(t){var n,r,i,o,a,s=this,l=this.state,c=l.activeIndex,u=l.activeTouch,d=l.activeMouse,p=J()("blocks-tabs__header-wrap",{touch:u,mouse:d});return e.createElement("div",{className:p,onMouseEnter:f()(n=this.handleMouseEnter).call(n,this),onMouseLeave:f()(r=this.handleMouseLeave).call(r,this),onTouchStart:f()(i=this.handleTouchStart).call(i,this)},e.createElement("div",{className:"blocks-tabs__header",id:"tabsheader",ref:function(e){s.tabsHeaderEl=e},role:ge.f},m()(t).call(t,function(n,r){var i,o,a,l=n.title,u=1===t.length||r===c,d=J()("blocks-tabs__header-item brand--head",{"brand--color":u,"blocks-tabs__header-item--active":u}),p=G()(P()(/<mark>/),j.a,B()(13),I()(30))(l),h=G()(ee.d,V()($()(te.a))(p),function(e){return"<span>".concat(e,"</span>")})(l),m="item-header-".concat(r),g=s.tabPanels[r];return e.createElement("a",{"aria-controls":g?g.id:null,"aria-selected":u,className:d,dangerouslySetInnerHTML:{__html:h},href:"#",id:m,key:m,onClick:f()(i=s.setActive).call(i,s,r),onKeyDown:f()(o=s.handleTabKeyDown).call(o,s,r),onFocus:f()(a=s.focusTab).call(a,s),ref:function(e){s.tabs[r]=e},role:ge.h,tabIndex:Object(me.l)(u)})})),e.createElement("div",{className:"blocks-tabs__controls",ref:function(e){s.tabControls=e}},e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",ref:function(e){s.arrowPrevEl=e},onClick:f()(o=this.scrollTabs).call(o,this,"previous")},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",ref:function(e){s.arrowNextEl=e},onClick:f()(a=this.scrollTabs).call(a,this,"next")},e.createElement("i",{className:"icon icon-chevron-right"}))))}},{key:"renderItem",value:function(t,n,r){var i,o,a=this,s=this.props,l=s.editable,c=s.blockId,u=this.state.activeIndex===n,d=t.id,p=t.description,h=t.media,m=void 0===h?{}:h,g=t.settings,y=void 0===g?{}:g,b=t.enableVideoPlaybackSpeed,_=J()("blocks-tabs__content-item",{"blocks-tabs__content-item--will-enter":u}),w=E()({},y,{disableZoom:r,fullEmbed:!0}),k=this.tabs[n],x="item-".concat(d);return e.createElement("div",{"aria-labelledby":k?k.id:null,className:_,id:x,key:x,ref:function(e){a.tabPanels[n]=e},role:ge.g},e.createElement(de.a,{className:"blocks-tabs__description brand--body brand--linkColor",value:p,placeholder:"Add a description",onChange:f()(i=this.handleDescriptionChange).call(i,this,d),component:"div",editable:l}),e.createElement("div",{className:"blocks-tabs__".concat(ke(m))},e.createElement(X.a,{className:"blocks-tabs__img",index:v()(o="".concat(c,"-")).call(o,n),media:m,opts:w,enableVideoPlaybackSpeed:b})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.isLearner,a=n.items,s=n.labels.tabGroup,l=n.settings,c=n.enableVideoPlaybackSpeed,u=l.paddingTop,d=l.paddingBottom,f=l.backgroundColor,h=l.entranceAnimation,g=l.zoomOnClick,v=J()("blocks-tabs",{"blocks-tabs--no-animation":!h}),y={backgroundColor:Object(ne.a)("",f),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*d,"px")},b=a.length>0?o()(a).call(a,0,30):[],_=J()("blocks-tabs__container",{"blocks-tabs--single":1===b.length});return e.createElement("div",{className:v,style:y},e.createElement(fe.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:i,offset:350},e.createElement("div",{className:_},e.createElement("div",{className:"blocks-tabs__row"},e.createElement("div",{className:"blocks-tabs__col"},e.createElement("div",{"aria-label":s,className:"blocks-tabs__wrapper",ref:function(e){t.container=e}},this.renderHeader(b),e.createElement("div",{className:"blocks-tabs__content"},m()(b).call(b,function(e,n){return t.renderItem(Object(p.a)({},e,{enableVideoPlaybackSpeed:c}),n,!g)}))))))))}}]),n}(e.Component);e.Component}).call(this,n(0))},function(e,t,n){"use strict";var r=n(2097),i=n(959),o=n(2098),a=n(837);function s(e,t,n){var r=e;return i(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=a(t,{uri:e}),r.callback=n,r}function l(e,t,n){return c(t=s(e,t,n))}function c(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML;return null}(u),v)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function a(){if(!c){var t;clearTimeout(d),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=y,a=null;return 0!==t?(i={body:r(),statusCode:t,method:p,headers:{},url:f,rawRequest:u},u.getAllResponseHeaders&&(i.headers=o(u.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var s,c,u=e.xhr||null;u||(u=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var d,f=u.url=e.uri||e.url,p=u.method=e.method||"GET",h=e.body||e.data,m=u.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:u};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=i,u.onprogress=function(){},u.onabort=function(){c=!0},u.ontimeout=i,u.open(p,f,!g,e.username,e.password),g||(u.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout(function(){if(!c){c=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}},e.timeout)),u.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&u.setRequestHeader(s,m[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(h||null),u}e.exports=l,l.XMLHttpRequest=r.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],function(e){l["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),c(n)}})},function(e,t,n){var r=n(333),i=e.exports={WebVTT:n(2101),VTTCue:n(2102),VTTRegion:n(2103)};r.vttjs=i,r.WebVTT=i.WebVTT;var o=i.VTTCue,a=i.VTTRegion,s=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=o,r.VTTRegion=a},i.restore=function(){r.VTTCue=s,r.VTTRegion=l},r.VTTCue||i.shim()},function(e,t,n){var r,i,o,a,s;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,i=/^([^\/?#]*)(.*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var l=i.exec(a.path);a.netLoc=l[1],a.path=l[2]}a.netLoc&&!a.path&&(a.path="/");var c={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(c.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var u=a.path,d=u.substring(0,u.lastIndexOf("/")+1)+o.path;c.path=s.normalizePath(d)}else c.path=a.path,o.params||(c.params=a.params,o.query||(c.query=a.query));return null===c.path&&(c.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(c)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){e.exports=n(2110)},function(e,t,n){"use strict";n.d(t,"b",function(){return E}),n.d(t,"a",function(){return S});n(96),n(71);var r=n(20),i=n(19),o=n.n(i),a=n(177),s=n.n(a),l=n(6),c=n.n(l),u=(n(136),n(140)),d=n.n(u),f=n(42),p=n.n(f),h=(n(210),n(109)),m=n.n(h),g=n(107),v=n(21),y=n(417),b=n(57),_=p()(["blockId","itemId","lessonId"]),w=o()("isVisible",!0),E=(d()(r.action,[y.a,null]),c()(Object(r.action)(y.b),w)),k=function(e){return s()(["media","storyline","processing"],e,{})},x=function(e){var t=e.blockId;return function(){return Object(g.a)({jobId:t})}},S=function(e){return function(t){return Object(v.c)(e,_,o()("payload",k(!1)),m()(x),b.g,t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return H}),n.d(t,"a",function(){return W});var r=n(15),i=n.n(r),o=n(30),a=n.n(o),s=n(4),l=n.n(s),c=n(3),u=n.n(c),d=n(10),f=n(7),p=n(11),h=n(9),m=n(12),g=(n(2114),n(2)),v=n.n(g),y=n(58),b=n(29),_=n(119),w=n(95),E=n(588),k=n(57),x=n(68),S=n(27),T=n(324),C=n(52),O=n(22),A=n(1),N=n.n(A),I=n(56),M=n(80),j=n(305),L=n(18),P=n.n(L),D=n(40),R=n.n(D),F=n(55),B=n.n(F),U=P()(M.a.isIphoneSafari?"_top":"_self"),q=P()("_blank"),z=B()(R()("email"),U,q),H=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"getButtonStyles",value:function(e,t){return{backgroundColor:"inverted"!==e?t:null,color:"inverted"===e?t:null,borderColor:"inverted"===e?t:null}}},{key:"handleDescriptionChange",value:function(e,t){var n=this.props,r=n.lessonId,i=n.blockId;Object(y.a)(Object(k.g)({lessonId:r,blockId:i,itemId:e,payload:{description:t}}))}},{key:"renderDescription",value:function(t,n){var r,i=n||"";return this.props.editable?e.createElement(T.a,{className:"blocks-button__description brand--head  brand--linkColor",value:i,placeholder:"Add a caption",onChange:u()(r=this.handleDescriptionChange).call(r,this,t)}):e.createElement(C.a,{className:"blocks-button__description brand--head  brand--linkColor",value:i})}},{key:"getButton",value:function(t,n,r,i){return e.createElement("span",{className:n,dangerouslySetInnerHTML:{__html:i},onClick:t,onKeyDown:Object(S.a)(t),role:"button",style:r,tabIndex:O.a})}},{key:"renderButton",value:function(t){var n=t.editable,r=t.buttonStyle,i=t.color,o=t.courseTitle,a=t.text,s=t.type,c=t.destination,u=t.editBlock,d=this.getButtonStyles(r,i),f=v()("blocks-button__button brand--ui",{"brand--background":void 0===i});if(n)return this.getButton(u,f,d,a);if("lesson"===s){var p=this.props,h=p.handleNavigate,m=p.match,g="/lessons/".concat(c);m&&m.params.mode&&(g+="/".concat(m.params.mode));var y=""===c?"#":g;return e.createElement(_.a,{className:f,dangerouslySetInnerHTML:{__html:a},onClick:function(){return h(c)},role:"button",style:d,to:y})}if("exit-course"===s)return this.getButton(b.b,f,d,a);var w,E=Object(j.b)(P()("email"!==s),c),k=l()(w="mailto:".concat(E,"?subject=")).call(w,o),x="email"===s?k:E,S=""===x?"#":x,T=""===c?null:z(s);return e.createElement("a",{className:f,dangerouslySetInnerHTML:{__html:a},href:S,role:"button",style:d,tabIndex:O.a,target:T})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.courseTitle,s=n.editable,l=n.editBlock,c=n.isLearner,u=n.items,d=n.labels.buttonGroup,f=n.settings,p=u.length>0?a()(u).call(u,0,1):[],h=f.paddingTop,m=f.paddingBottom,g=f.backgroundColor,y=f.entranceAnimation,b=f.buttonColor||this.props.color,_=v()("blocks-button",{"blocks-button--no-animation":!y,"blocks-button--left":!1,"blocks-button--center":!1,"blocks-button--right":!0,"blocks-button--rounded":!0}),k={backgroundColor:Object(x.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")};return e.createElement("div",{"aria-label":d,className:_,style:k},e.createElement(I.a,{animateBlockEntrance:r,animateIn:"fadeIn",isLearner:c,offset:100},i()(p).call(p,function(n){var r=n.id,i=n.label,a=n.type,c=n.destination,u=n.description,d=Object(E.a)(Object(w.e)(i),18);return e.createElement("section",{key:r,className:"blocks-button__container"},t.renderDescription(r,u),t.renderButton({editable:s,buttonStyle:"rounded",color:b,courseTitle:o,text:d,type:a,destination:c,editBlock:l}))})))}}],[{key:"propTypes",get:function(){return{lessonId:N.a.any,blockId:N.a.any,items:N.a.array,settings:N.a.object.isRequired,editable:N.a.bool,editBlock:N.a.func,courseTitle:N.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),n}(e.Component),W=function(t){function n(){return Object(d.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(f.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.blockId,o=t.courseTitle,a=t.editable,s=t.editBlock,l=t.handleNavigate,c=t.isLearner,u=t.items,d=t.labels,f=t.lessonId,p=t.settings,h=p.paddingTop,m=p.paddingBottom,g=p.backgroundColor,y=p.entranceAnimation,b=v()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!y}),_={backgroundColor:Object(x.a)("",g),paddingTop:"".concat(10*h,"px"),paddingBottom:"".concat(10*m,"px")},w={buttonColor:p.buttonColor||this.props.color,buttonStyle:p.buttonStyle},E=d.buttonStackGroup;return e.createElement("div",{"aria-label":E,className:b,style:_},e.createElement(I.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:c},i()(u).call(u,function(t){return e.createElement(H,{animateBlockEntrance:!1,blockId:r,courseTitle:o,editable:a,editBlock:s,isLearner:c,items:[t],key:t.id,labels:d,lessonId:f,settings:w,type:"right",handleNavigate:l})})))}}],[{key:"propTypes",get:function(){return{lessonId:N.a.any,blockId:N.a.any,items:N.a.array,settings:N.a.object.isRequired,editable:N.a.bool,editBlock:N.a.func,courseTitle:N.a.string}}},{key:"defaultProps",get:function(){return{items:[],lessonId:"",blockId:"",editBlock:function(){}}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Z});var r=n(31),i=n(37),o=n.n(i),a=n(15),s=n.n(a),l=n(4),c=n.n(l),u=n(3),d=n.n(u),f=n(10),p=n(11),h=n(9),m=n(13),g=n(7),v=n(12),y=(n(2117),n(1)),b=n.n(y),_=n(2),w=n.n(_),E=n(80),k=n(6),x=n.n(k),S=n(44),T=n.n(S),C=n(94),O=n.n(C),A=n(51),N=n.n(A),I=n(401),M=n.n(I),j=n(210),L=n.n(j),P=n(116),D=n.n(P),R=n(135),F=n.n(R),B=n(68),U=n(299),q=n.n(U),z=n(52),H=n(95),W=n(22),$=n(27),Y=n(56),V=n(1204),K=n(88),G={small:{longMin:51,totalMax:150},medium:{longMin:208,totalMax:390},large:{longMin:258,totalMax:707}},X=function(t){function n(e){var t,r,i,o,a;return Object(f.a)(this,n),(a=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={flipped:e.flipped,hasFlippedOnce:e.hasFlippedOnce},a.flip=d()(t=a.flip).call(t,Object(m.a)(a)),a.scrollDownIfNecessary=d()(r=a.scrollDownIfNecessary).call(r,Object(m.a)(a)),a.scrollUpIfNecessary=d()(i=a.scrollUpIfNecessary).call(i,Object(m.a)(a)),a.onKeyDown=d()(o=a.onKeyDown).call(o,Object(m.a)(a)),a}return Object(v.a)(n,t),Object(g.a)(n,null,[{key:"propTypes",get:function(){return{allowTabNavigation:b.a.bool,card:b.a.object.isRequired,index:b.a.number,onStep:b.a.func,showHint:b.a.bool,size:b.a.oneOf(["large","medium","small"])}}},{key:"defaultProps",get:function(){return{allowTabNavigation:!0,flipped:!1,hasFlippedOnce:!1,index:0,onStep:Function.prototype,showHint:!0,size:"large"}}}]),Object(g.a)(n,[{key:"anchorClicked",value:function(e){return"a"===e.tagName.toLowerCase()||e!==this.container&&this.anchorClicked(e.parentElement)}},{key:"flip",value:function(e){var t=e.target;if(!this.anchorClicked(t)){var n=this.state.flipped;this.setState({flipped:!n,hasFlippedOnce:!0}),n?(this.frontSide.scrollToTop(),this.cardFront.focus()):(this.props.onStep(this.props.card),this.backSide.scrollToTop(),this.cardBack.focus()),e&&e.preventDefault()}}},{key:"showFront",value:function(){this.setState({flipped:!1}),this.frontSide.scrollToTop()}},{key:"focus",value:function(){this.cardFront.focus()}},{key:"scrollUpIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollUp(e):this.backSide.scrollUp(e)}},{key:"scrollDownIfNecessary",value:function(e){e.target===this.cardFront?this.frontSide.scrollDown(e):this.backSide.scrollDown(e)}},{key:"onKeyDown",value:function(e){T()([[$.d,this.flip],[$.l,this.scrollUpIfNecessary],[$.b,this.scrollDownIfNecessary]])(e)}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.card,o=n.index,a=n.labels,s=void 0===a?{}:a,l=n.showHint,c=n.size,u=s.blocksClickToFlip,d=this.state,f=d.flipped,p=d.hasFlippedOnce,h=i.front,m=void 0===h?{}:h,g=i.back,v=void 0===g?{}:g,y=D()(m,"type")||"description",b=D()(v,"type")||"description",_=Object(K.a)(D()(m,"media.image")),k=Object(K.a)(D()(v,"media.image")),x=D()(m,"media.image.alt"),S=D()(v,"media.image.alt"),T=m.description||"",C=v.description||"",O=w()("block-flashcard",{"block-flashcard--large":"large"===c,"block-flashcard--medium":"medium"===c,"block-flashcard--small":"small"===c,"block-flashcard--first":0===o,"block-flashcard--flipped":f,"block-flashcard--in-edge":E.a.isEdge,"block-flashcard--in-ie":E.a.isIe11}),A=w()("block-flashcard__front",{"block-flashcard__front--description":"description"===y,"block-flashcard__front--image":"image"===y,"block-flashcard__front--fullimage":"fullimage"===y}),N=w()("block-flashcard__back",{"block-flashcard__back--description":"description"===b,"block-flashcard__back--image":"image"===b,"block-flashcard__back--fullimage":"fullimage"===b}),I=w()("block-flashcard__content",{"brand--border":"fullimage"!==y}),M=w()("block-flashcard__flip brand--ui",{"block-flashcard__flip--detailed":!p}),j="fullimage"===y?{backgroundImage:"url('".concat(_,"')")}:{},L="fullimage"===b?{backgroundImage:"url('".concat(k,"')")}:{},P=r&&!f,R=r&&f,F=0===o&&!p&&u,B=e.createElement("button",{className:M,onClick:this.flip,ref:function(e){t.flipLink=e},tabIndex:W.h},e.createElement("span",{className:"flip-text"},F),e.createElement("span",{className:"flip-icon"},e.createElement(V.a,null)));return e.createElement("section",{className:O,onTouchEnd:function(e){e.stopPropagation()},ref:function(e){t.container=e}},e.createElement("div",{className:"block-flashcard__wrapper"},e.createElement("div",{"aria-hidden":!P,className:A,onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardFront=e},role:"button",tabIndex:Object(W.l)(P)},e.createElement("div",{className:I,style:j},e.createElement(Q,{allowTabNavigation:P,alt:x,description:T,image:_,labels:s,ref:function(e){t.frontSide=e},side:"front",size:c,type:y})),l&&B),e.createElement("div",{"aria-hidden":!R,className:N,onBlur:function(){t.container.style.zIndex--},onFocus:function(){t.container.style.zIndex++},onClick:this.flip,onKeyDown:this.onKeyDown,ref:function(e){t.cardBack=e},role:"button",tabIndex:Object(W.l)(R)},e.createElement("div",{className:"block-flashcard__content",style:L},e.createElement(Q,{allowTabNavigation:R,alt:S,description:C,image:k,labels:s,ref:function(e){t.backSide=e},side:"back",size:c,type:b})),l&&B)))}}]),n}(e.Component),Q=function(t){function n(e){var t,r,i;return Object(f.a)(this,n),(i=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={hasOverflow:!1,isLong:!1},i.handleScroll=d()(t=i.handleScroll).call(t,Object(m.a)(i)),i.overflowMask=d()(r=i.overflowMask).call(r,Object(m.a)(i)),i}return Object(v.a)(n,t),Object(g.a)(n,null,[{key:"propTypes",get:function(){return{size:b.a.string,type:b.a.string,description:b.a.string,image:b.a.string}}}]),Object(g.a)(n,[{key:"componentDidMount",value:function(){this.scrollContent.addEventListener("scroll",this.scrollRef=F()(this.handleScroll,50)),window.addEventListener("resize",this.maskRef=F()(this.overflowMask,50)),this.overflowMask()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.maskRef),this.scrollContent.removeEventListener("scroll",this.scrollRef)}},{key:"scrollToTop",value:function(){this.scrollContent.scrollTop=0}},{key:"scrollUp",value:function(e){Object($.o)(this.scrollContent,e)}},{key:"scrollDown",value:function(e){Object($.n)(this.scrollContent,this.state.hasOverflow,e)}},{key:"handleScroll",value:function(){var e=this.state.hasOverflow,t=this.scrollContent,n=t.scrollTop,r=t.scrollHeight;n+t.offsetHeight+10>=r?this.setState({hasOverflow:!1}):e||this.setState({hasOverflow:!0})}},{key:"overflowMask",value:function(){var e=this.scrollContent,t=e.offsetHeight<e.scrollHeight-10;this.setState({hasOverflow:t,isLong:t})}},{key:"ariaLabel",value:function(){var e,t,n=this.props,r=n.alt,i=n.description,o=n.labels,a=n.side,s=n.type,l=o.flashcardBackLabel,u=o.flashcardFrontLabel,d="front"===a?u:l;return"image"===s||"fullimage"===s?r?c()(t="".concat(d," - ")).call(t,r):d:i?c()(e="".concat(d," - ")).call(e,Object(H.e)(i)):d}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.alt,o=n.size,a=n.type,s=n.description,l=n.image,c=n.side,u=this.state,d=u.hasOverflow,f=u.isLong,p=G[o],h=s,m=!!x()(M()(p.longMin),N.a,H.e,L()("&nbsp;"," "))(s)||f,g=w()("block-flashcard__center brand--linkColor",{"block-flashcard__center--long":m,"block-flashcard__center--long--front":m&&"front"===c,"block-flashcard__center--long--back":m&&"back"===c,"block-flashcard__center--overflow":d,"block-flashcard__center--column":"image"===a}),v='""'===i?"":i,y="fullimage"===a?v:null;return e.createElement("div",{ref:function(e){t.scrollContent=e},className:g,alt:y,title:y,"aria-label":this.ariaLabel()},"image"===a&&l&&e.createElement("figure",{className:"block-flashcard__image",style:{backgroundImage:"url(".concat(l,")")},title:v},e.createElement("img",{alt:v,src:l})),"description"===a&&e.createElement(z.a,{allowTabNavigation:r,className:"block-flashcard__description brand--head",value:h}))}}]),n}(e.Component),Z=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(g.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLearner,i=t.items,o=t.settings,a=t.stack,l=t.labels,c=t.onStep,u=o.backgroundColor,d=o.entranceAnimation,f=o.paddingBottom,p=o.paddingTop,h=o.showHint,m=w()("block-flashcards",{"blocks-flashcard--column":!a,"blocks-flashcard--stack":a,"block-flashcards--no-animation":!d}),g={backgroundColor:Object(B.a)("",u),paddingTop:"".concat(10*p,"px"),paddingBottom:"".concat(10*f,"px")},v=i.length,y=1===v?"large":2===v?"medium":"small",b=l.flashcardGridGroup,_=l.flashcardStackGroup,E=a?_:b;return e.createElement("div",{"aria-label":E,className:m,style:g},a?e.createElement(Y.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:r,offset:400},e.createElement(J,{items:i,labels:l,onStep:c,showHint:h})):e.createElement(Y.a,{animateBlockEntrance:n,animateIn:"fadeIn",className:"block-flashcards__animation",isLearner:r,siblingDelay:.25},e.createElement("div",{className:"block-flashcards__wrapper"},s()(i).call(i,function(t,n){return e.createElement(X,{card:t,index:n,key:t.id,labels:l,onStep:c,showHint:h,size:y})}))))}}],[{key:"propTypes",get:function(){return{items:b.a.array,settings:b.a.object.isRequired,stack:b.a.bool,onStep:b.a.func}}},{key:"defaultProps",get:function(){return{items:[],stack:!1,editable:!1,onStep:Function.prototype}}}]),n}(e.Component),J=function(t){function n(){var e,t,r;Object(f.a)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(r=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,c()(t=[this]).call(t,o)))).state={current:1},r}return Object(v.a)(n,t),Object(g.a)(n,null,[{key:"propTypes",get:function(){return{items:b.a.array,onStep:b.a.func,showHint:b.a.bool}}},{key:"defaultProps",get:function(){return{items:[],onStep:Function.prototype}}}]),Object(g.a)(n,[{key:"handleBeforeChange",value:function(e,t){for(var n=this,r=this.props.items.length,i=0;i<r;i++){var a=this["flashcard-".concat(i)];a&&a.showFront()}this.sliderInfo.setCurrent(t+1),this["flashcard-".concat(t)].focus(),o()(function(){n.setState({current:t+1})},500)}},{key:"render",value:function(){var t,n=this,i=this.props,o=i.items,a=i.labels,l=i.onStep,c=i.showHint,u=this.state.current,f=o.length,p={dots:!1,draggable:!1,swipe:!1,speed:500,slidesToShow:1,slidesToScroll:1,fade:!0,infinite:!1,arrows:!0,beforeChange:d()(t=this.handleBeforeChange).call(t,this),nextArrow:e.createElement(te,{current:u,labels:a,length:f}),prevArrow:e.createElement(te,{previous:!0,current:u,labels:a,length:f})};return e.createElement("section",{className:"block-flashcards-slider block-flashcards-slider--full-carousel"},e.createElement("div",{className:"block-flashcards-slider__wrap"},e.createElement(q.a,Object(r.a)({className:"block-flashcards-slider__slides"},p),s()(o).call(o,function(t,r){return e.createElement("div",{className:"block-flashcards-slider__slide",key:"flashcard-".concat(r)},e.createElement(X,{allowTabNavigation:u===O()(r),card:t,index:r,labels:a,onStep:l,ref:function(e){n["flashcard-".concat(r)]=e},showHint:c}))})),e.createElement(ee,{ref:function(e){n.sliderInfo=e},labels:a,current:u,itemCount:o.length})))}}]),n}(e.Component),ee=function(t){function n(e){var t;return Object(f.a)(this,n),(t=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={current:e.current},t}return Object(v.a)(n,t),Object(g.a)(n,null,[{key:"propTypes",get:function(){return{current:b.a.number.isRequired,itemCount:b.a.number.isRequired}}}]),Object(g.a)(n,[{key:"setCurrent",value:function(e){this.setState({current:e})}},{key:"render",value:function(){var t,n,r=this.props,i=r.itemCount,o=r.labels,a=void 0===o?{}:o,s=this.state.current,l=100*(s/i).toFixed(2),u={width:"".concat(l,"%")},d=a.blocksPreposition,f=void 0===d?"of":d;return e.createElement("div",{className:"block-flashcards-slider__info"},e.createElement("div",{className:"block-flashcards-slider__progress"},e.createElement("p",{className:"block-flashcards-slider__progress-text brand--body brand--linkColor"},c()(t=c()(n="".concat(s," ")).call(n,f," ")).call(t,i)),e.createElement("div",{className:"block-flashcards-slider__progress-line brand--background",style:u})))}}]),n}(e.Component),te=function(t){function n(){return Object(f.a)(this,n),Object(p.a)(this,Object(h.a)(n).apply(this,arguments))}return Object(v.a)(n,t),Object(g.a)(n,[{key:"render",value:function(){var t=this.props,n=t.current,r=t.labels,i=t.length,o=t.onClick,a=t.previous,s=r.nextFlashCardLabel,l=r.previousFlashCardLabel,c=1===n,u=n===i,d=w()("block-flashcards-slider__controls",{"block-flashcards-slider__controls--beginning":c,"block-flashcards-slider__controls--end":u}),f=w()("brand--background block-flashcards-slider__arrow",{"block-flashcards-slider__arrow--next":!a,"block-flashcards-slider__arrow--prev":a}),p=w()("icon",{"icon-chevron-right":!a,"icon-chevron-left":a}),h=a&&c||!a&&u;return e.createElement("div",{className:d},e.createElement("div",{"aria-disabled":h,"aria-label":a?l:s,className:f,onClick:o,onKeyDown:Object($.a)(o),role:"button",tabIndex:Object(W.l)(!h)},e.createElement("i",{className:p})))}}],[{key:"propTypes",get:function(){return{onClick:b.a.func,previous:b.a.bool,current:b.a.number,length:b.a.number}}},{key:"defaultProps",get:function(){return{previous:!1,onClick:function(){},current:0,length:-1}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(380),i=n(381),o=n(251).type("Pred"),a=n(315),s=n(93),l=n(194),c=function(){return u(function(){return!0})};function u(e){if(!s(e))throw new TypeError("Pred: Predicate function required");var t=function(t){return!!e(t)};return{runWith:t,inspect:function(){return"Pred"+i(t)},type:o,value:function(){return t},empty:c,concat:function(e){if(!l(u,e))throw new TypeError("Pred.concat: Pred required");return u(function(n){return!!t(n)&&!!e.runWith(n)})},contramap:function(e){if(!s(e))throw new TypeError("Pred.contramap: Function required");return u(a(t,e))}}}u.empty=c,u.type=o,u["@@implements"]=r(["concat","contramap","empty"]),e.exports=u},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(676)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(251).proxy("Pred"),i=n(130),o=n(93),a=n(194),s=n(706);e.exports=i(function(e,t){if(!o(e)&&!a(r,e))throw new TypeError("not: Pred or predicate function required for first argument");return!s(e,t)})},function(e,t,n){"use strict";var r=n(1082);n.d(t,"a",function(){return r.a});var i=n(1083);n.d(t,"b",function(){return i.a})},function(e,t,n){var r;e.exports=function e(t,n,i){function o(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof r&&r;if(!l&&c)return r(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return o(n||e)},d,d.exports,e,t,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";"undefined"==typeof window?t.exports=function(t){return e("./src/utils/window").init(t),e("./src/index")}:t.exports=e("./src/index")},{"./src/index":19,"./src/utils/window":52}],2:[function(e,t,n){"use strict";var r=e("./utils/extend.js");function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e.immediatePropagationStopped)break;r(e)}}var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=r({},t||{})}return e.prototype.fire=function(e){var t=void 0,n="on"+e.type,r=this.global;(t=this[e.type])&&i(e,t),this[n]&&this[n](e),!e.propagationStopped&&r&&(t=r[e.type])&&i(e,t)},e.prototype.on=function(e,t){this[e]?this[e].push(t):this[e]=[t]},e.prototype.off=function(e,t){var n=this[e],r=n?n.indexOf(t):-1;-1!==r&&n.splice(r,1),(n&&0===n.length||!t)&&(this[e]=void 0)},e}();t.exports=o},{"./utils/extend.js":41}],3:[function(e,t,n){"use strict";var r=e("./utils/extend"),i=e("./utils/getOriginXY"),o=e("./defaultOptions"),a=e("./utils/Signals").new(),s=function(){function e(t,n,s,l,c,u){var d=arguments.length>6&&void 0!==arguments[6]&&arguments[6];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var f=t.target,p=(f&&f.options||o).deltaSource,h=i(f,c,s),m="start"===l,g="end"===l,v=m?t.startCoords:t.curCoords,y=t.prevEvent;c=c||t.element;var b=r({},v.page),_=r({},v.client);b.x-=h.x,b.y-=h.y,_.x-=h.x,_.y-=h.y,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.button=n.button,this.buttons=n.buttons,this.target=c,this.currentTarget=c,this.relatedTarget=u||null,this.preEnd=d,this.type=s+(l||""),this.interaction=t,this.interactable=f,this.t0=m?t.downTimes[t.downTimes.length-1]:y.t0;var w={interaction:t,event:n,action:s,phase:l,element:c,related:u,page:b,client:_,coords:v,starting:m,ending:g,deltaSource:p,iEvent:this};a.fire("set-xy",w),g?(this.pageX=y.pageX,this.pageY=y.pageY,this.clientX=y.clientX,this.clientY=y.clientY):(this.pageX=b.x,this.pageY=b.y,this.clientX=_.x,this.clientY=_.y),this.x0=t.startCoords.page.x-h.x,this.y0=t.startCoords.page.y-h.y,this.clientX0=t.startCoords.client.x-h.x,this.clientY0=t.startCoords.client.y-h.y,a.fire("set-delta",w),this.timeStamp=v.timeStamp,this.dt=t.pointerDelta.timeStamp,this.duration=this.timeStamp-this.t0,this.speed=t.pointerDelta[p].speed,this.velocityX=t.pointerDelta[p].vx,this.velocityY=t.pointerDelta[p].vy,this.swipe=g||"inertiastart"===l?this.getSwipe():null,a.fire("new",w)}return e.prototype.getSwipe=function(){var e=this.interaction;if(e.prevEvent.speed<600||this.timeStamp-e.prevEvent.timeStamp>150)return null;var t=180*Math.atan2(e.prevEvent.velocityY,e.prevEvent.velocityX)/Math.PI;t<0&&(t+=360);var n=112.5<=t&&t<247.5,r=202.5<=t&&t<337.5,i=!n&&(292.5<=t||t<67.5),o=!r&&22.5<=t&&t<157.5;return{up:r,down:o,left:n,right:i,angle:t,speed:e.prevEvent.speed,velocity:{x:e.prevEvent.velocityX,y:e.prevEvent.velocityY}}},e.prototype.preventDefault=function(){},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();a.on("set-delta",function(e){var t=e.iEvent,n=e.interaction,r=e.starting,i=e.deltaSource,o=r?t:n.prevEvent;"client"===i?(t.dx=t.clientX-o.clientX,t.dy=t.clientY-o.clientY):(t.dx=t.pageX-o.pageX,t.dy=t.pageY-o.pageY)}),s.signals=a,t.exports=s},{"./defaultOptions":18,"./utils/Signals":34,"./utils/extend":41,"./utils/getOriginXY":42}],4:[function(e,t,n){"use strict";var r=e("./utils/clone"),i=e("./utils/is"),o=e("./utils/events"),a=e("./utils/extend"),s=e("./actions/base"),l=e("./scope"),c=e("./Eventable"),u=e("./defaultOptions"),d=e("./utils/Signals").new(),f=e("./utils/domUtils"),p=f.getElementRect,h=f.nodeContains,m=f.trySelector,g=f.matchesSelector,v=e("./utils/window"),y=v.getWindow,b=e("./utils/arr"),_=b.contains,w=e("./utils/browser"),E=w.wheelEvent;l.interactables=[];var k=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=n||{},this.target=t,this.events=new c,this._context=n.context||l.document,this._win=y(m(t)?this._context:t),this._doc=this._win.document,d.fire("new",{target:t,options:n,interactable:this,win:this._win}),l.addDocument(this._doc,this._win),l.interactables.push(this),this.set(n)}return e.prototype.setOnEvents=function(e,t){var n="on"+e;return i.function(t.onstart)&&(this.events[n+"start"]=t.onstart),i.function(t.onmove)&&(this.events[n+"move"]=t.onmove),i.function(t.onend)&&(this.events[n+"end"]=t.onend),i.function(t.oninertiastart)&&(this.events[n+"inertiastart"]=t.oninertiastart),this},e.prototype.setPerAction=function(e,t){for(var n in t)n in u[e]&&(i.object(t[n])?(this.options[e][n]=r(this.options[e][n]||{}),a(this.options[e][n],t[n]),i.object(u.perAction[n])&&"enabled"in u.perAction[n]&&(this.options[e][n].enabled=!1!==t[n].enabled)):i.bool(t[n])&&i.object(u.perAction[n])?this.options[e][n].enabled=t[n]:void 0!==t[n]&&(this.options[e][n]=t[n]))},e.prototype.getRect=function(e){return e=e||this.target,i.string(this.target)&&!i.element(e)&&(e=this._context.querySelector(this.target)),p(e)},e.prototype.rectChecker=function(e){return i.function(e)?(this.getRect=e,this):null===e?(delete this.options.getRect,this):this.getRect},e.prototype._backCompatOption=function(e,t){if(m(t)||i.object(t)){this.options[e]=t;for(var n=0;n<s.names.length;n++){var r=s.names[n];this.options[r][e]=t}return this}return this.options[e]},e.prototype.origin=function(e){return this._backCompatOption("origin",e)},e.prototype.deltaSource=function(e){return"page"===e||"client"===e?(this.options.deltaSource=e,this):this.options.deltaSource},e.prototype.context=function(){return this._context},e.prototype.inContext=function(e){return this._context===e.ownerDocument||h(this._context,e)},e.prototype.fire=function(e){return this.events.fire(e),this},e.prototype._onOffMultiple=function(e,t,n,r){if(i.string(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),i.array(t)){for(var o=0;o<t.length;o++){var a=t[o];this[e](a,n,r)}return!0}if(i.object(t)){for(var s in t)this[e](s,t[s],n);return!0}},e.prototype.on=function(t,n,r){return this._onOffMultiple("on",t,n,r)?this:("wheel"===t&&(t=E),_(e.eventTypes,t)?this.events.on(t,n):i.string(this.target)?o.addDelegate(this.target,this._context,t,n,r):o.add(this.target,t,n,r),this)},e.prototype.off=function(t,n,r){return this._onOffMultiple("off",t,n,r)?this:("wheel"===t&&(t=E),_(e.eventTypes,t)?this.events.off(t,n):i.string(this.target)?o.removeDelegate(this.target,this._context,t,n,r):o.remove(this.target,t,n,r),this)},e.prototype.set=function(t){i.object(t)||(t={}),this.options=r(u.base);var n=r(u.perAction);for(var o in s.methodDict){var a=s.methodDict[o];this.options[o]=r(u[o]),this.setPerAction(o,n),this[a](t[o])}for(var l=0;l<e.settingsMethods.length;l++){var c=e.settingsMethods[l];this.options[c]=u.base[c],c in t&&this[c](t[c])}return d.fire("set",{options:t,interactable:this}),this},e.prototype.unset=function(){if(o.remove(this.target,"all"),i.string(this.target))for(var e in o.delegatedEvents){var t=o.delegatedEvents[e];t.selectors[0]===this.target&&t.contexts[0]===this._context&&(t.selectors.splice(0,1),t.contexts.splice(0,1),t.listeners.splice(0,1),t.selectors.length||(t[e]=null)),o.remove(this._context,e,o.delegateListener),o.remove(this._context,e,o.delegateUseCapture,!0)}else o.remove(this,"all");d.fire("unset",{interactable:this}),l.interactables.splice(l.interactables.indexOf(this),1);for(var n=0;n<(l.interactions||[]).length;n++){var r=(l.interactions||[])[n];r.target===this&&r.interacting()&&!r._ending&&r.stop()}return l.interact},e}();l.interactables.indexOfElement=function(e,t){t=t||l.document;for(var n=0;n<this.length;n++){var r=this[n];if(r.target===e&&r._context===t)return n}return-1},l.interactables.get=function(e,t,n){var r=this[this.indexOfElement(e,t&&t.context)];return r&&(i.string(e)||n||r.inContext(e))?r:null},l.interactables.forEachMatch=function(e,t){for(var n=0;n<this.length;n++){var r=this[n],o=void 0;if((i.string(r.target)?i.element(e)&&g(e,r.target):e===r.target)&&r.inContext(e)&&(o=t(r)),void 0!==o)return o}},k.eventTypes=l.eventTypes=[],k.signals=d,k.settingsMethods=["deltaSource","origin","preventDefault","rectChecker"],t.exports=k},{"./Eventable":2,"./actions/base":6,"./defaultOptions":18,"./scope":33,"./utils/Signals":34,"./utils/arr":35,"./utils/browser":36,"./utils/clone":37,"./utils/domUtils":39,"./utils/events":40,"./utils/extend":41,"./utils/is":46,"./utils/window":52}],5:[function(e,t,n){"use strict";var r=e("./scope"),i=e("./utils"),o=e("./utils/events"),a=e("./utils/browser"),s=e("./utils/domObjects"),l=e("./utils/interactionFinder"),c=e("./utils/Signals").new(),u={},d=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer"],f=0;r.interactions=[];for(var p=function(){function e(t){var n=t.pointerType;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.target=null,this.element=null,this.prepared={name:null,axis:null,edges:null},this.pointers=[],this.pointerIds=[],this.downTargets=[],this.downTimes=[],this.prevCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.curCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.startCoords={page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},this.pointerDelta={page:{x:0,y:0,vx:0,vy:0,speed:0},client:{x:0,y:0,vx:0,vy:0,speed:0},timeStamp:0},this.downEvent=null,this.downPointer={},this._eventTarget=null,this._curEventTarget=null,this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this.pointerType=n,c.fire("new",this),r.interactions.push(this)}return e.prototype.pointerDown=function(e,t,n){var r=this.updatePointer(e,t,!0);c.fire("down",{pointer:e,event:t,eventTarget:n,pointerIndex:r,interaction:this})},e.prototype.start=function(e,t,n){this.interacting()||!this.pointerIsDown||this.pointerIds.length<("gesture"===e.name?2:1)||(-1===r.interactions.indexOf(this)&&r.interactions.push(this),i.copyAction(this.prepared,e),this.target=t,this.element=n,c.fire("action-start",{interaction:this,event:this.downEvent}))},e.prototype.pointerMove=function(t,n,r){this.simulation||(this.updatePointer(t),i.setCoords(this.curCoords,this.pointers));var o=this.curCoords.page.x===this.prevCoords.page.x&&this.curCoords.page.y===this.prevCoords.page.y&&this.curCoords.client.x===this.prevCoords.client.x&&this.curCoords.client.y===this.prevCoords.client.y,a=void 0,s=void 0;this.pointerIsDown&&!this.pointerWasMoved&&(a=this.curCoords.client.x-this.startCoords.client.x,s=this.curCoords.client.y-this.startCoords.client.y,this.pointerWasMoved=i.hypot(a,s)>e.pointerMoveTolerance);var l={pointer:t,pointerIndex:this.getPointerIndex(t),event:n,eventTarget:r,dx:a,dy:s,duplicate:o,interaction:this,interactingBeforeMove:this.interacting()};o||i.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords),c.fire("move",l),o||(this.interacting()&&this.doMove(l),this.pointerWasMoved&&i.copyCoords(this.prevCoords,this.curCoords))},e.prototype.doMove=function(e){e=i.extend({pointer:this.pointers[0],event:this.prevEvent,eventTarget:this._eventTarget,interaction:this},e||{}),c.fire("before-action-move",e),this._dontFireMove||c.fire("action-move",e),this._dontFireMove=!1},e.prototype.pointerUp=function(e,t,n,r){var i=this.getPointerIndex(e);c.fire(/cancel$/i.test(t.type)?"cancel":"up",{pointer:e,pointerIndex:i,event:t,eventTarget:n,curEventTarget:r,interaction:this}),this.simulation||this.end(t),this.pointerIsDown=!1,this.removePointer(e,t)},e.prototype.end=function(e){this._ending=!0,e=e||this.prevEvent,this.interacting()&&c.fire("action-end",{event:e,interaction:this}),this.stop(),this._ending=!1},e.prototype.currentAction=function(){return this._interacting?this.prepared.name:null},e.prototype.interacting=function(){return this._interacting},e.prototype.stop=function(){c.fire("stop",{interaction:this}),this._interacting&&(c.fire("stop-active",{interaction:this}),c.fire("stop-"+this.prepared.name,{interaction:this})),this.target=this.element=null,this._interacting=!1,this.prepared.name=this.prevEvent=null},e.prototype.getPointerIndex=function(e){return"mouse"===this.pointerType||"pen"===this.pointerType?0:this.pointerIds.indexOf(i.getPointerId(e))},e.prototype.updatePointer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t&&/(down|start)$/i.test(t.type),r=i.getPointerId(e),o=this.getPointerIndex(e);return-1===o&&(o=this.pointerIds.length,this.pointerIds[o]=r),n&&c.fire("update-pointer-down",{pointer:e,event:t,down:n,pointerId:r,pointerIndex:o,interaction:this}),this.pointers[o]=e,o},e.prototype.removePointer=function(e,t){var n=this.getPointerIndex(e);-1!==n&&(c.fire("remove-pointer",{pointer:e,event:t,pointerIndex:n,interaction:this}),this.pointers.splice(n,1),this.pointerIds.splice(n,1),this.downTargets.splice(n,1),this.downTimes.splice(n,1))},e.prototype._updateEventTargets=function(e,t){this._eventTarget=e,this._curEventTarget=t},e}(),h=0;h<d.length;h++){var m=d[h];u[m]=g(m)}function g(e){return function(t){var n=i.getPointerType(t),o=i.getEventTargets(t),s=o[0],c=o[1],u=[];if(a.supportsTouch&&/touch/.test(t.type)){f=(new Date).getTime();for(var d=0;d<t.changedTouches.length;d++){var h=t.changedTouches[d],m=h,g=l.search(m,t.type,s);u.push([m,g||new p({pointerType:n})])}}else{var v=!1;if(!a.supportsPointerEvent&&/mouse/.test(t.type)){for(var y=0;y<r.interactions.length&&!v;y++)v="mouse"!==r.interactions[y].pointerType&&r.interactions[y].pointerIsDown;v=v||(new Date).getTime()-f<500||0===t.timeStamp}if(!v){var b=l.search(t,t.type,s);b||(b=new p({pointerType:n})),u.push([t,b])}}for(var _=0;_<u.length;_++){var w=u[_],E=w[0],k=w[1];k._updateEventTargets(s,c),k[e](E,t,s,c)}}}function v(e){for(var t=0;t<r.interactions.length;t++){var n=r.interactions[t];n.end(e),c.fire("endall",{event:e,interaction:n})}}var y={},b=a.pEventTypes;function _(e,t){var n=e.doc,i=0===t.indexOf("add")?o.add:o.remove;for(var s in r.delegatedEvents)i(n,s,o.delegateListener),i(n,s,o.delegateUseCapture,!0);for(var l in y)i(n,l,y[l],a.isIOS?{passive:!1}:void 0)}s.PointerEvent?(y[b.down]=u.pointerDown,y[b.move]=u.pointerMove,y[b.up]=u.pointerUp,y[b.cancel]=u.pointerUp):(y.mousedown=u.pointerDown,y.mousemove=u.pointerMove,y.mouseup=u.pointerUp,y.touchstart=u.pointerDown,y.touchmove=u.pointerMove,y.touchend=u.pointerUp,y.touchcancel=u.pointerUp),y.blur=v,c.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointer,r=e.pointerId,o=e.pointerIndex,a=e.event,s=e.eventTarget,l=e.down;t.pointerIds[o]=r,t.pointers[o]=n,l&&(t.pointerIsDown=!0),t.interacting()||(i.setCoords(t.startCoords,t.pointers),i.copyCoords(t.curCoords,t.startCoords),i.copyCoords(t.prevCoords,t.startCoords),t.downEvent=a,t.downTimes[o]=t.curCoords.timeStamp,t.downTargets[o]=s||a&&i.getEventTargets(a)[0],t.pointerWasMoved=!1,i.pointerExtend(t.downPointer,n))}),r.signals.on("add-document",_),r.signals.on("remove-document",_),p.pointerMoveTolerance=1,p.doOnInteractions=g,p.endAll=v,p.signals=c,p.docEvents=y,r.endAllInteractions=v,t.exports=p},{"./scope":33,"./utils":44,"./utils/Signals":34,"./utils/browser":36,"./utils/domObjects":38,"./utils/events":40,"./utils/interactionFinder":45}],6:[function(e,t,n){"use strict";var r=e("../Interaction"),i=e("../InteractEvent"),o={firePrepared:a,names:[],methodDict:{}};function a(e,t,n,r){var o=e.prepared.name,a=new i(e,t,o,n,e.element,null,r);e.target.fire(a),e.prevEvent=a}r.signals.on("action-start",function(e){var t=e.interaction,n=e.event;t._interacting=!0,a(t,n,"start")}),r.signals.on("action-move",function(e){var t=e.interaction,n=e.event,r=e.preEnd;if(a(t,n,"move",r),!t.interacting())return!1}),r.signals.on("action-end",function(e){var t=e.interaction,n=e.event;a(t,n,"end")}),t.exports=o},{"../InteractEvent":3,"../Interaction":5}],7:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),l=e("../defaultOptions"),c={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,startAxis:"xy",lockAxis:"xy"},checker:function(e,t,n){var r=n.options.drag;return r.enabled?{name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis}:null},getCursor:function(){return"move"}};s.signals.on("before-action-move",function(e){var t=e.interaction;if("drag"===t.prepared.name){var n=t.prepared.axis;"x"===n?(t.curCoords.page.y=t.startCoords.page.y,t.curCoords.client.y=t.startCoords.client.y,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vx),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vx),t.pointerDelta.client.vy=0,t.pointerDelta.page.vy=0):"y"===n&&(t.curCoords.page.x=t.startCoords.page.x,t.curCoords.client.x=t.startCoords.client.x,t.pointerDelta.page.speed=Math.abs(t.pointerDelta.page.vy),t.pointerDelta.client.speed=Math.abs(t.pointerDelta.client.vy),t.pointerDelta.client.vx=0,t.pointerDelta.page.vx=0)}}),o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("dragmove"===t.type){var r=n.prepared.axis;"x"===r?(t.pageY=n.startCoords.page.y,t.clientY=n.startCoords.client.y,t.dy=0):"y"===r&&(t.pageX=n.startCoords.page.x,t.clientX=n.startCoords.client.x,t.dx=0)}}),a.prototype.draggable=function(e){return i.is.object(e)?(this.options.drag.enabled=!1!==e.enabled,this.setPerAction("drag",e),this.setOnEvents("drag",e),/^(xy|x|y|start)$/.test(e.lockAxis)&&(this.options.drag.lockAxis=e.lockAxis),/^(xy|x|y)$/.test(e.startAxis)&&(this.options.drag.startAxis=e.startAxis),this):i.is.bool(e)?(this.options.drag.enabled=e,e||(this.ondragstart=this.ondragstart=this.ondragend=null),this):this.options.drag},r.drag=c,r.names.push("drag"),i.merge(a.eventTypes,["dragstart","dragmove","draginertiastart","draginertiaresume","dragend"]),r.methodDict.drag="draggable",l.drag=c.defaults,t.exports=c},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],8:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../scope"),a=e("../interact"),s=e("../InteractEvent"),l=e("../Interactable"),c=e("../Interaction"),u=e("../defaultOptions"),d={defaults:{enabled:!1,accept:null,overlap:"pointer"}},f=!1;function p(e,t){for(var n=void 0,r=0;r<e.dropzones.length;r++){var i=e.dropzones[r],o=e.elements[r];o!==n&&(t.target=o,i.fire(t)),n=o}}function h(e,t){var n=function(e,t){for(var n=[],r=[],a=0;a<o.interactables.length;a++){var s=o.interactables[a];if(s.options.drop.enabled){var l=s.options.drop.accept;if(!(i.is.element(l)&&l!==t||i.is.string(l)&&!i.matchesSelector(t,l)))for(var c=i.is.string(s.target)?s._context.querySelectorAll(s.target):[s.target],u=0;u<c.length;u++){var d=c[u];d!==t&&(n.push(s),r.push(d))}}}return{elements:r,dropzones:n}}(0,t);e.dropzones=n.dropzones,e.elements=n.elements,e.rects=[];for(var r=0;r<e.dropzones.length;r++)e.rects[r]=e.dropzones[r].getRect(e.elements[r])}function m(e,t,n){var r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null},o={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp};return e.dropElement!==e.prevDropElement&&(e.prevDropTarget&&(r.leave=i.extend({type:"dragleave"},o),n.dragLeave=r.leave.target=e.prevDropElement,n.prevDropzone=r.leave.dropzone=e.prevDropTarget),e.dropTarget&&(r.enter={dragEvent:n,interaction:e,target:e.dropElement,dropzone:e.dropTarget,relatedTarget:n.target,draggable:n.interactable,timeStamp:n.timeStamp,type:"dragenter"},n.dragEnter=e.dropElement,n.dropzone=e.dropTarget)),"dragend"===n.type&&e.dropTarget&&(r.drop=i.extend({type:"drop"},o),n.dropzone=e.dropTarget,n.relatedTarget=e.dropElement),"dragstart"===n.type&&(r.activate=i.extend({type:"dropactivate"},o),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=i.extend({type:"dropdeactivate"},o),r.deactivate.target=null,r.deactivate.dropzone=null),"dragmove"===n.type&&e.dropTarget&&(r.move=i.extend({dragmove:n,type:"dropmove"},o),n.dropzone=e.dropTarget),r}function g(e,t){var n=e.activeDrops,r=e.prevDropTarget,i=e.dropTarget,o=e.dropElement;t.leave&&r.fire(t.leave),t.move&&i.fire(t.move),t.enter&&i.fire(t.enter),t.drop&&i.fire(t.drop),t.deactivate&&p(n,t.deactivate),e.prevDropTarget=i,e.prevDropElement=o}c.signals.on("action-start",function(e){var t=e.interaction;e.event;if("drag"===t.prepared.name){t.activeDrops.dropzones=[],t.activeDrops.elements=[],t.activeDrops.rects=[],t.dropEvents=null,t.dynamicDrop||h(t.activeDrops,t.element);var n=t.prevEvent,r=m(t,0,n);r.activate&&p(t.activeDrops,r.activate)}}),s.signals.on("new",function(e){var t=e.interaction,n=e.iEvent,r=e.event;if("dragmove"===n.type||"dragend"===n.type){var o=t.element,a=n,s=function(e,t,n){var r=e.interaction,o=[];f&&h(r.activeDrops,n);for(var a=0;a<r.activeDrops.dropzones.length;a++){var s=r.activeDrops.dropzones[a],l=r.activeDrops.elements[a],c=r.activeDrops.rects[a];o.push(s.dropCheck(e,t,r.target,n,l,c)?l:null)}var u=i.indexOfDeepestElement(o);return{dropzone:r.activeDrops.dropzones[u]||null,element:r.activeDrops.elements[u]||null}}(a,r,o);t.dropTarget=s.dropzone,t.dropElement=s.element,t.dropEvents=m(t,0,a)}}),c.signals.on("action-move",function(e){var t=e.interaction;"drag"===t.prepared.name&&g(t,t.dropEvents)}),c.signals.on("action-end",function(e){var t=e.interaction;"drag"===t.prepared.name&&g(t,t.dropEvents)}),c.signals.on("stop-drag",function(e){var t=e.interaction;t.activeDrops={dropzones:null,elements:null,rects:null},t.dropEvents=null}),l.prototype.dropzone=function(e){return i.is.object(e)?(this.options.drop.enabled=!1!==e.enabled,i.is.function(e.ondrop)&&(this.events.ondrop=e.ondrop),i.is.function(e.ondropactivate)&&(this.events.ondropactivate=e.ondropactivate),i.is.function(e.ondropdeactivate)&&(this.events.ondropdeactivate=e.ondropdeactivate),i.is.function(e.ondragenter)&&(this.events.ondragenter=e.ondragenter),i.is.function(e.ondragleave)&&(this.events.ondragleave=e.ondragleave),i.is.function(e.ondropmove)&&(this.events.ondropmove=e.ondropmove),/^(pointer|center)$/.test(e.overlap)?this.options.drop.overlap=e.overlap:i.is.number(e.overlap)&&(this.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(this.options.drop.accept=e.accept),"checker"in e&&(this.options.drop.checker=e.checker),this):i.is.bool(e)?(this.options.drop.enabled=e,e||(this.ondragenter=this.ondragleave=this.ondrop=this.ondropactivate=this.ondropdeactivate=null),this):this.options.drop},l.prototype.dropCheck=function(e,t,n,r,o,a){var s=!1;if(!(a=a||this.getRect(o)))return!!this.options.drop.checker&&this.options.drop.checker(e,t,s,this,o,n,r);var l=this.options.drop.overlap;if("pointer"===l){var c=i.getOriginXY(n,r,"drag"),u=i.getPageXY(e);u.x+=c.x,u.y+=c.y;var d=u.x>a.left&&u.x<a.right,f=u.y>a.top&&u.y<a.bottom;s=d&&f}var p=n.getRect(r);if(p&&"center"===l){var h=p.left+p.width/2,m=p.top+p.height/2;s=h>=a.left&&h<=a.right&&m>=a.top&&m<=a.bottom}if(p&&i.is.number(l)){var g=Math.max(0,Math.min(a.right,p.right)-Math.max(a.left,p.left))*Math.max(0,Math.min(a.bottom,p.bottom)-Math.max(a.top,p.top)),v=g/(p.width*p.height);s=v>=l}return this.options.drop.checker&&(s=this.options.drop.checker(e,t,s,this,o,n,r)),s},l.signals.on("unset",function(e){var t=e.interactable;t.dropzone(!1)}),l.settingsMethods.push("dropChecker"),c.signals.on("new",function(e){e.dropTarget=null,e.dropElement=null,e.prevDropTarget=null,e.prevDropElement=null,e.dropEvents=null,e.activeDrops={dropzones:[],elements:[],rects:[]}}),c.signals.on("stop",function(e){var t=e.interaction;t.dropTarget=t.dropElement=t.prevDropTarget=t.prevDropElement=null}),a.dynamicDrop=function(e){return i.is.bool(e)?(f=e,a):f},i.merge(l.eventTypes,["dragenter","dragleave","dropactivate","dropdeactivate","dropmove","drop"]),r.methodDict.drop="dropzone",u.drop=d.defaults,t.exports=d},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"./base":6}],9:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../InteractEvent"),a=e("../Interactable"),s=e("../Interaction"),l=e("../defaultOptions"),c={defaults:{enabled:!1,origin:null,restrict:null},checker:function(e,t,n,r,i){return i.pointerIds.length>=2?{name:"gesture"}:null},getCursor:function(){return""}};o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturestart"===t.type&&(t.ds=0,n.gesture.startDistance=n.gesture.prevDistance=t.distance,n.gesture.startAngle=n.gesture.prevAngle=t.angle,n.gesture.scale=1)}),o.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;"gesturemove"===t.type&&(t.ds=t.scale-n.gesture.scale,n.target.fire(t),n.gesture.prevAngle=t.angle,n.gesture.prevDistance=t.distance,t.scale===1/0||null===t.scale||void 0===t.scale||isNaN(t.scale)||(n.gesture.scale=t.scale))}),a.prototype.gesturable=function(e){return i.is.object(e)?(this.options.gesture.enabled=!1!==e.enabled,this.setPerAction("gesture",e),this.setOnEvents("gesture",e),this):i.is.bool(e)?(this.options.gesture.enabled=e,e||(this.ongesturestart=this.ongesturestart=this.ongestureend=null),this):this.options.gesture},o.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action,a=e.event,s=e.starting,l=e.ending,c=e.deltaSource;if("gesture"===r){var u=t.pointers;n.touches=[u[0],u[1]],s?(n.distance=i.touchDistance(u,c),n.box=i.touchBBox(u),n.scale=1,n.ds=0,n.angle=i.touchAngle(u,void 0,c),n.da=0):l||a instanceof o?(n.distance=t.prevEvent.distance,n.box=t.prevEvent.box,n.scale=t.prevEvent.scale,n.ds=n.scale-1,n.angle=t.prevEvent.angle,n.da=n.angle-t.gesture.startAngle):(n.distance=i.touchDistance(u,c),n.box=i.touchBBox(u),n.scale=n.distance/t.gesture.startDistance,n.angle=i.touchAngle(u,t.gesture.prevAngle,c),n.ds=n.scale-t.gesture.prevScale,n.da=n.angle-t.gesture.prevAngle)}}),s.signals.on("new",function(e){e.gesture={start:{x:0,y:0},startDistance:0,prevDistance:0,distance:0,scale:1,startAngle:0,prevAngle:0}}),r.gesture=c,r.names.push("gesture"),i.merge(a.eventTypes,["gesturestart","gesturemove","gestureend"]),r.methodDict.gesture="gesturable",l.gesture=c.defaults,t.exports=c},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"./base":6}],10:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../utils/browser"),a=e("../InteractEvent"),s=e("../Interactable"),l=e("../Interaction"),c=e("../defaultOptions"),u=o.supportsTouch||o.supportsPointerEvent?20:10,d={defaults:{enabled:!1,mouseButtons:null,origin:null,snap:null,restrict:null,inertia:null,autoScroll:null,square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},checker:function(e,t,n,r,o,a){if(!a)return null;var s=i.extend({},o.curCoords.page),l=n.options;if(l.resize.enabled){var c=l.resize,d={left:!1,right:!1,top:!1,bottom:!1};if(i.is.object(c.edges)){for(var p in d)d[p]=f(p,c.edges[p],s,o._eventTarget,r,a,c.margin||u);if(d.left=d.left&&!d.right,d.top=d.top&&!d.bottom,d.left||d.right||d.top||d.bottom)return{name:"resize",edges:d}}else{var h="y"!==l.resize.axis&&s.x>a.right-u,m="x"!==l.resize.axis&&s.y>a.bottom-u;if(h||m)return{name:"resize",axes:(h?"x":"")+(m?"y":"")}}}return null},cursors:o.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"},getCursor:function(e){if(e.axis)return d.cursors[e.name+e.axis];if(e.edges){for(var t="",n=["top","bottom","left","right"],r=0;r<4;r++)e.edges[n[r]]&&(t+=n[r]);return d.cursors[t]}}};function f(e,t,n,r,o,a,s){if(!t)return!1;if(!0===t){var l=i.is.number(a.width)?a.width:a.right-a.left,c=i.is.number(a.height)?a.height:a.bottom-a.top;if(l<0&&("left"===e?e="right":"right"===e&&(e="left")),c<0&&("top"===e?e="bottom":"bottom"===e&&(e="top")),"left"===e)return n.x<(l>=0?a.left:a.right)+s;if("top"===e)return n.y<(c>=0?a.top:a.bottom)+s;if("right"===e)return n.x>(l>=0?a.right:a.left)-s;if("bottom"===e)return n.y>(c>=0?a.bottom:a.top)-s}return!!i.is.element(r)&&(i.is.element(t)?t===r:i.matchesUpTo(r,t,o))}a.signals.on("new",function(e){var t=e.iEvent,n=e.interaction;if("resizestart"===t.type&&n.prepared.edges){var r=n.target.getRect(n.element),o=n.target.options.resize;if(o.square||o.preserveAspectRatio){var a=i.extend({},n.prepared.edges);a.top=a.top||a.left&&!a.bottom,a.left=a.left||a.top&&!a.right,a.bottom=a.bottom||a.right&&!a.top,a.right=a.right||a.bottom&&!a.left,n.prepared._linkedEdges=a}else n.prepared._linkedEdges=null;o.preserveAspectRatio&&(n.resizeStartAspectRatio=r.width/r.height),n.resizeRects={start:r,current:i.extend({},r),inverted:i.extend({},r),previous:i.extend({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},t.rect=n.resizeRects.inverted,t.deltaRect=n.resizeRects.delta}}),a.signals.on("new",function(e){var t=e.iEvent,n=e.phase,r=e.interaction;if("move"===n&&r.prepared.edges){var o=r.target.options.resize,a=o.invert,s="reposition"===a||"negate"===a,l=r.prepared.edges,c=r.resizeRects.start,u=r.resizeRects.current,d=r.resizeRects.inverted,f=r.resizeRects.delta,p=i.extend(r.resizeRects.previous,d),h=l,m=t.dx,g=t.dy;if(o.preserveAspectRatio||o.square){var v=o.preserveAspectRatio?r.resizeStartAspectRatio:1;l=r.prepared._linkedEdges,h.left&&h.bottom||h.right&&h.top?g=-m/v:h.left||h.right?g=m/v:(h.top||h.bottom)&&(m=g*v)}if(l.top&&(u.top+=g),l.bottom&&(u.bottom+=g),l.left&&(u.left+=m),l.right&&(u.right+=m),s){if(i.extend(d,u),"reposition"===a){var y=void 0;d.top>d.bottom&&(y=d.top,d.top=d.bottom,d.bottom=y),d.left>d.right&&(y=d.left,d.left=d.right,d.right=y)}}else d.top=Math.min(u.top,c.bottom),d.bottom=Math.max(u.bottom,c.top),d.left=Math.min(u.left,c.right),d.right=Math.max(u.right,c.left);for(var b in d.width=d.right-d.left,d.height=d.bottom-d.top,d)f[b]=d[b]-p[b];t.edges=r.prepared.edges,t.rect=d,t.deltaRect=f}}),s.prototype.resizable=function(e){return i.is.object(e)?(this.options.resize.enabled=!1!==e.enabled,this.setPerAction("resize",e),this.setOnEvents("resize",e),/^x$|^y$|^xy$/.test(e.axis)?this.options.resize.axis=e.axis:null===e.axis&&(this.options.resize.axis=c.resize.axis),i.is.bool(e.preserveAspectRatio)?this.options.resize.preserveAspectRatio=e.preserveAspectRatio:i.is.bool(e.square)&&(this.options.resize.square=e.square),this):i.is.bool(e)?(this.options.resize.enabled=e,e||(this.onresizestart=this.onresizestart=this.onresizeend=null),this):this.options.resize},l.signals.on("new",function(e){e.resizeAxes="xy"}),a.signals.on("set-delta",function(e){var t=e.interaction,n=e.iEvent,r=e.action;if("resize"===r&&t.resizeAxes){var i=t.target.options;i.resize.square?("y"===t.resizeAxes?n.dx=n.dy:n.dy=n.dx,n.axes="xy"):(n.axes=t.resizeAxes,"x"===t.resizeAxes?n.dy=0:"y"===t.resizeAxes&&(n.dx=0))}}),r.resize=d,r.names.push("resize"),i.merge(s.eventTypes,["resizestart","resizemove","resizeinertiastart","resizeinertiaresume","resizeend"]),r.methodDict.resize="resizable",c.resize=d.defaults,t.exports=d},{"../InteractEvent":3,"../Interactable":4,"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/browser":36,"./base":6}],11:[function(e,t,n){"use strict";var r=e("./utils/raf"),i=e("./utils/window").getWindow,o=e("./utils/is"),a=e("./utils/domUtils"),s=e("./Interaction"),l=e("./defaultOptions"),c={defaults:{enabled:!1,container:null,margin:60,speed:300},interaction:null,i:null,x:0,y:0,isScrolling:!1,prevTime:0,start:function(e){c.isScrolling=!0,r.cancel(c.i),c.interaction=e,c.prevTime=(new Date).getTime(),c.i=r.request(c.scroll)},stop:function(){c.isScrolling=!1,r.cancel(c.i)},scroll:function(){var e=c.interaction.target.options[c.interaction.prepared.name].autoScroll,t=e.container||i(c.interaction.element),n=(new Date).getTime(),a=(n-c.prevTime)/1e3,s=e.speed*a;s>=1&&(o.window(t)?t.scrollBy(c.x*s,c.y*s):t&&(t.scrollLeft+=c.x*s,t.scrollTop+=c.y*s),c.prevTime=n),c.isScrolling&&(r.cancel(c.i),c.i=r.request(c.scroll))},check:function(e,t){var n=e.options;return n[t].autoScroll&&n[t].autoScroll.enabled},onInteractionMove:function(e){var t=e.interaction,n=e.pointer;if(t.interacting()&&c.check(t.target,t.prepared.name))if(t.simulation)c.x=c.y=0;else{var r=void 0,s=void 0,l=void 0,u=void 0,d=t.target.options[t.prepared.name].autoScroll,f=d.container||i(t.element);if(o.window(f))u=n.clientX<c.margin,r=n.clientY<c.margin,s=n.clientX>f.innerWidth-c.margin,l=n.clientY>f.innerHeight-c.margin;else{var p=a.getElementClientRect(f);u=n.clientX<p.left+c.margin,r=n.clientY<p.top+c.margin,s=n.clientX>p.right-c.margin,l=n.clientY>p.bottom-c.margin}c.x=s?1:u?-1:0,c.y=l?1:r?-1:0,c.isScrolling||(c.margin=d.margin,c.speed=d.speed,c.start(t))}}};s.signals.on("stop-active",function(){c.stop()}),s.signals.on("action-move",c.onInteractionMove),l.perAction.autoScroll=c.defaults,t.exports=c},{"./Interaction":5,"./defaultOptions":18,"./utils/domUtils":39,"./utils/is":46,"./utils/raf":50,"./utils/window":52}],12:[function(e,t,n){"use strict";var r=e("../Interactable"),i=e("../actions/base"),o=e("../utils/is"),a=e("../utils/domUtils"),s=e("../utils"),l=s.warnOnce;r.prototype.getAction=function(e,t,n,r){var i=this.defaultActionChecker(e,t,n,r);return this.options.actionChecker?this.options.actionChecker(e,t,i,this,r,n):i},r.prototype.ignoreFrom=l(function(e){return this._backCompatOption("ignoreFrom",e)},"Interactable.ignoreForm() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),r.prototype.allowFrom=l(function(e){return this._backCompatOption("allowFrom",e)},"Interactable.allowForm() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),r.prototype.testIgnore=function(e,t,n){return!(!e||!o.element(n))&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testAllow=function(e,t,n){return!e||!!o.element(n)&&(o.string(e)?a.matchesUpTo(n,e,t):!!o.element(e)&&a.nodeContains(e,n))},r.prototype.testIgnoreAllow=function(e,t,n){return!this.testIgnore(e.ignoreFrom,t,n)&&this.testAllow(e.allowFrom,t,n)},r.prototype.actionChecker=function(e){return o.function(e)?(this.options.actionChecker=e,this):null===e?(delete this.options.actionChecker,this):this.options.actionChecker},r.prototype.styleCursor=function(e){return o.bool(e)?(this.options.styleCursor=e,this):null===e?(delete this.options.styleCursor,this):this.options.styleCursor},r.prototype.defaultActionChecker=function(e,t,n,r){for(var o=this.getRect(r),a=t.buttons||{0:1,1:4,3:8,4:16}[t.button],s=null,l=0;l<i.names.length;l++){var c=i.names[l];if((!n.pointerIsDown||!/mouse|pointer/.test(n.pointerType)||0!=(a&this.options[c].mouseButtons))&&(s=i[c].checker(e,t,this,r,n,o)))return s}}},{"../Interactable":4,"../actions/base":6,"../utils":44,"../utils/domUtils":39,"../utils/is":46}],13:[function(e,t,n){"use strict";var r=e("../interact"),i=e("../Interactable"),o=e("../Interaction"),a=e("../actions/base"),s=e("../defaultOptions"),l=e("../scope"),c=e("../utils"),u=e("../utils/Signals").new();e("./InteractableMethods");var d={signals:u,withinInteractionLimit:g,maxInteractions:1/0,defaults:{perAction:{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}},setActionDefaults:function(e){c.extend(e.defaults,d.defaults.perAction)},validateAction:f};function f(e,t,n,r){return c.is.object(e)&&t.testIgnoreAllow(t.options[e.name],n,r)&&t.options[e.name].enabled&&g(t,n,e)?e:null}function p(e,t,n,r,i,o){for(var a=0,s=r.length;a<s;a++){var l=r[a],c=i[a],u=f(l.getAction(t,n,e,c),l,c,o);if(u)return{action:u,target:l,element:c}}return{}}function h(e,t,n,r){var i=[],o=[],a=r;function s(e){i.push(e),o.push(a)}for(;c.is.element(a);){i=[],o=[],l.interactables.forEachMatch(a,s);var u=p(e,t,n,i,o,r);if(u.action&&!u.target.options[u.action.name].manualStart)return u;a=c.parentNode(a)}return{}}function m(e,t){var n=t.action,r=t.target,i=t.element;if(n=n||{},e.target&&e.target.options.styleCursor&&(e.target._doc.documentElement.style.cursor=""),e.target=r,e.element=i,c.copyAction(e.prepared,n),r&&r.options.styleCursor){var o=n?a[n.name].getCursor(n):"";e.target._doc.documentElement.style.cursor=o}u.fire("prepared",{interaction:e})}function g(e,t,n){var r=e.options,i=r[n.name].max,o=r[n.name].maxPerElement,a=0,s=0,c=0;if(i&&o&&d.maxInteractions){for(var u=0;u<l.interactions.length;u++){var f=l.interactions[u],p=f.prepared.name;if(f.interacting()){if(++a>=d.maxInteractions)return!1;if(f.target===e){if((s+=p===n.name|0)>=i)return!1;if(f.element===t&&(c++,p!==n.name||c>=o))return!1}}}return d.maxInteractions>0}}o.signals.on("down",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if(!t.interacting()){var o=h(t,n,r,i);m(t,o)}}),o.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;if("mouse"===t.pointerType&&!t.pointerIsDown&&!t.interacting()){var o=h(t,n,r,i);m(t,o)}}),o.signals.on("move",function(e){var t=e.interaction,n=e.event;if(t.pointerIsDown&&!t.interacting()&&t.pointerWasMoved&&t.prepared.name){u.fire("before-start",e);var r=t.target;t.prepared.name&&r&&(r.options[t.prepared.name].manualStart||!g(r,t.element,t.prepared)?t.stop(n):t.start(t.prepared,r,t.element))}}),o.signals.on("stop",function(e){var t=e.interaction,n=t.target;n&&n.options.styleCursor&&(n._doc.documentElement.style.cursor="")}),r.maxInteractions=function(e){return c.is.number(e)?(d.maxInteractions=e,r):d.maxInteractions},i.settingsMethods.push("styleCursor"),i.settingsMethods.push("actionChecker"),i.settingsMethods.push("ignoreFrom"),i.settingsMethods.push("allowFrom"),s.base.actionChecker=null,s.base.styleCursor=!0,c.extend(s.perAction,d.defaults.perAction),t.exports=d},{"../Interactable":4,"../Interaction":5,"../actions/base":6,"../defaultOptions":18,"../interact":21,"../scope":33,"../utils":44,"../utils/Signals":34,"./InteractableMethods":12}],14:[function(e,t,n){"use strict";var r=e("./base"),i=e("../scope"),o=e("../utils/is"),a=e("../utils/domUtils"),s=a.parentNode;r.setActionDefaults(e("../actions/drag")),r.signals.on("before-start",function(e){var t=e.interaction,n=e.eventTarget,a=e.dx,l=e.dy;if("drag"===t.prepared.name){var c=Math.abs(a),u=Math.abs(l),d=t.target.options.drag,f=d.startAxis,p=c>u?"x":c<u?"y":"xy";if(t.prepared.axis="start"===d.lockAxis?p[0]:d.lockAxis,"xy"!==p&&"xy"!==f&&f!==p){t.prepared.name=null;for(var h=n,m=function(e){if(e!==t.target){var i=t.target.options.drag;if(!i.manualStart&&e.testIgnoreAllow(i,h,n)){var o=e.getAction(t.downPointer,t.downEvent,t,h);if(o&&"drag"===o.name&&function(e,t){if(!t)return!1;var n=t.options.drag.startAxis;return"xy"===e||"xy"===n||n===e}(p,e)&&r.validateAction(o,e,h,n))return e}}};o.element(h);){var g=i.interactables.forEachMatch(h,m);if(g){t.prepared.name="drag",t.target=g,t.element=h;break}h=s(h)}}}})},{"../actions/drag":7,"../scope":33,"../utils/domUtils":39,"../utils/is":46,"./base":13}],15:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/gesture"))},{"../actions/gesture":9,"./base":13}],16:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interaction");function o(e){var t=e.prepared&&e.prepared.name;if(!t)return null;var n=e.target.options;return n[t].hold||n[t].delay}r.defaults.perAction.hold=0,r.defaults.perAction.delay=0,i.signals.on("new",function(e){e.autoStartHoldTimer=null}),r.signals.on("prepared",function(e){var t=e.interaction,n=o(t);n>0&&(t.autoStartHoldTimer=setTimeout(function(){t.start(t.prepared,t.target,t.element)},n))}),i.signals.on("move",function(e){var t=e.interaction,n=e.duplicate;t.pointerWasMoved&&!n&&clearTimeout(t.autoStartHoldTimer)}),r.signals.on("before-start",function(e){var t=e.interaction,n=o(t);n>0&&(t.prepared.name=null)}),t.exports={getHoldDuration:o}},{"../Interaction":5,"./base":13}],17:[function(e,t,n){"use strict";e("./base").setActionDefaults(e("../actions/resize"))},{"../actions/resize":10,"./base":13}],18:[function(e,t,n){"use strict";t.exports={base:{accept:null,preventDefault:"auto",deltaSource:"page"},perAction:{origin:{x:0,y:0},inertia:{enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}}}},{}],19:[function(e,t,n){"use strict";e("./inertia"),e("./modifiers/snap"),e("./modifiers/restrict"),e("./pointerEvents/base"),e("./pointerEvents/holdRepeat"),e("./pointerEvents/interactableTargets"),e("./autoStart/hold"),e("./actions/gesture"),e("./actions/resize"),e("./actions/drag"),e("./actions/drop"),e("./modifiers/snapSize"),e("./modifiers/restrictEdges"),e("./modifiers/restrictSize"),e("./autoStart/gesture"),e("./autoStart/resize"),e("./autoStart/drag"),e("./interactablePreventDefault.js"),e("./autoScroll"),t.exports=e("./interact")},{"./actions/drag":7,"./actions/drop":8,"./actions/gesture":9,"./actions/resize":10,"./autoScroll":11,"./autoStart/drag":14,"./autoStart/gesture":15,"./autoStart/hold":16,"./autoStart/resize":17,"./inertia":20,"./interact":21,"./interactablePreventDefault.js":22,"./modifiers/restrict":24,"./modifiers/restrictEdges":25,"./modifiers/restrictSize":26,"./modifiers/snap":27,"./modifiers/snapSize":28,"./pointerEvents/base":30,"./pointerEvents/holdRepeat":31,"./pointerEvents/interactableTargets":32}],20:[function(e,t,n){"use strict";var r=e("./InteractEvent"),i=e("./Interaction"),o=e("./modifiers/base"),a=e("./utils"),s=e("./utils/raf");function l(e){var t=e.inertiaStatus;if(t.active){var n=t.upCoords.page,r=t.upCoords.client;a.setCoords(e.curCoords,[{pageX:n.x+t.sx,pageY:n.y+t.sy,clientX:r.x+t.sx,clientY:r.y+t.sy}])}}i.signals.on("new",function(e){e.inertiaStatus={active:!1,smoothEnd:!1,allowResume:!1,startEvent:null,upCoords:{},xe:0,ye:0,sx:0,sy:0,t0:0,vx0:0,vys:0,duration:0,lambda_v0:0,one_ve_v0:0,i:null},e.boundInertiaFrame=function(){return function(){l(this),a.setCoordDeltas(this.pointerDelta,this.prevCoords,this.curCoords);var e=this.inertiaStatus,t=this.target.options[this.prepared.name].inertia.resistance,n=(new Date).getTime()/1e3-e.t0;if(n<e.te){var r=1-(Math.exp(-t*n)-e.lambda_v0)/e.one_ve_v0;if(e.modifiedXe===e.xe&&e.modifiedYe===e.ye)e.sx=e.xe*r,e.sy=e.ye*r;else{var i=a.getQuadraticCurvePoint(0,0,e.xe,e.ye,e.modifiedXe,e.modifiedYe,r);e.sx=i.x,e.sy=i.y}this.doMove(),e.i=s.request(this.boundInertiaFrame)}else e.sx=e.modifiedXe,e.sy=e.modifiedYe,this.doMove(),this.end(e.startEvent),e.active=!1,this.simulation=null;a.copyCoords(this.prevCoords,this.curCoords)}.apply(e)},e.boundSmoothEndFrame=function(){return function(){l(this);var e=this.inertiaStatus,t=(new Date).getTime()-e.t0,n=this.target.options[this.prepared.name].inertia.smoothEndDuration;t<n?(e.sx=a.easeOutQuad(t,0,e.xe,n),e.sy=a.easeOutQuad(t,0,e.ye,n),this.pointerMove(e.startEvent,e.startEvent),e.i=s.request(this.boundSmoothEndFrame)):(e.sx=e.xe,e.sy=e.ye,this.pointerMove(e.startEvent,e.startEvent),this.end(e.startEvent),e.smoothEnd=e.active=!1,this.simulation=null)}.apply(e)}}),i.signals.on("down",function(e){var t=e.interaction,n=e.event,l=e.pointer,c=e.eventTarget,u=t.inertiaStatus;if(u.active)for(var d=c;a.is.element(d);){if(d===t.element){s.cancel(u.i),u.active=!1,t.simulation=null,t.updatePointer(l),a.setCoords(t.curCoords,t.pointers);var f={interaction:t};i.signals.fire("before-action-move",f),i.signals.fire("action-resume",f);var p=new r(t,n,t.prepared.name,"inertiaresume",t.element);t.target.fire(p),t.prevEvent=p,o.resetStatuses(t.modifierStatuses),a.copyCoords(t.prevCoords,t.curCoords);break}d=a.parentNode(d)}}),i.signals.on("up",function(e){var t=e.interaction,n=e.event,i=t.inertiaStatus;if(t.interacting()&&!i.active){var l=t.target,c=l&&l.options,u=c&&t.prepared.name&&c[t.prepared.name].inertia,d=(new Date).getTime(),f={},p=a.extend({},t.curCoords.page),h=t.pointerDelta.client.speed,m=!1,g=void 0,v=u&&u.enabled&&"gesture"!==t.prepared.name&&n!==i.startEvent,y=v&&d-t.curCoords.timeStamp<50&&h>u.minSpeed&&h>u.endSpeed,b={interaction:t,pageCoords:p,statuses:f,preEnd:!0,requireEndOnly:!0};v&&!y&&(o.resetStatuses(f),(g=o.setAll(b)).shouldMove&&g.locked&&(m=!0)),(y||m)&&(a.copyCoords(i.upCoords,t.curCoords),t.pointers[0]=i.startEvent=new r(t,n,t.prepared.name,"inertiastart",t.element),i.t0=d,i.active=!0,i.allowResume=u.allowResume,t.simulation=i,l.fire(i.startEvent),y?(i.vx0=t.pointerDelta.client.vx,i.vy0=t.pointerDelta.client.vy,i.v0=h,function(e,t){var n=e.target.options[e.prepared.name].inertia,r=n.resistance,i=-Math.log(n.endSpeed/t.v0)/r;t.x0=e.prevEvent.pageX,t.y0=e.prevEvent.pageY,t.t0=t.startEvent.timeStamp/1e3,t.sx=t.sy=0,t.modifiedXe=t.xe=(t.vx0-i)/r,t.modifiedYe=t.ye=(t.vy0-i)/r,t.te=i,t.lambda_v0=r/t.v0,t.one_ve_v0=1-n.endSpeed/t.v0}(t,i),a.extend(p,t.curCoords.page),p.x+=i.xe,p.y+=i.ye,o.resetStatuses(f),g=o.setAll(b),i.modifiedXe+=g.dx,i.modifiedYe+=g.dy,i.i=s.request(t.boundInertiaFrame)):(i.smoothEnd=!0,i.xe=g.dx,i.ye=g.dy,i.sx=i.sy=0,i.i=s.request(t.boundSmoothEndFrame)))}}),i.signals.on("stop-active",function(e){var t=e.interaction,n=t.inertiaStatus;n.active&&(s.cancel(n.i),n.active=!1,t.simulation=null)})},{"./InteractEvent":3,"./Interaction":5,"./modifiers/base":23,"./utils":44,"./utils/raf":50}],21:[function(e,t,n){"use strict";var r=e("./utils/browser"),i=e("./utils/events"),o=e("./utils"),a=e("./scope"),s=e("./Interactable"),l=e("./Interaction"),c={};function u(e,t){var n=a.interactables.get(e,t);return n||((n=new s(e,t)).events.global=c),n}u.isSet=function(e,t){return-1!==a.interactables.indexOfElement(e,t&&t.context)},u.on=function(e,t,n){if(o.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.is.array(e)){for(var r=0;r<e.length;r++){var l=e[r];u.on(l,t,n)}return u}if(o.is.object(e)){for(var d in e)u.on(d,e[d],t);return u}return o.contains(s.eventTypes,e)?c[e]?c[e].push(t):c[e]=[t]:i.add(a.document,e,t,{options:n}),u},u.off=function(e,t,n){if(o.is.string(e)&&-1!==e.search(" ")&&(e=e.trim().split(/ +/)),o.is.array(e)){for(var r=0;r<e.length;r++){var l=e[r];u.off(l,t,n)}return u}if(o.is.object(e)){for(var d in e)u.off(d,e[d],t);return u}if(o.contains(s.eventTypes,e)){var f=void 0;e in c&&-1!==(f=c[e].indexOf(t))&&c[e].splice(f,1)}else i.remove(a.document,e,t,n);return u},u.debug=function(){return a},u.getPointerAverage=o.pointerAverage,u.getTouchBBox=o.touchBBox,u.getTouchDistance=o.touchDistance,u.getTouchAngle=o.touchAngle,u.getElementRect=o.getElementRect,u.getElementClientRect=o.getElementClientRect,u.matchesSelector=o.matchesSelector,u.closest=o.closest,u.supportsTouch=function(){return r.supportsTouch},u.supportsPointerEvent=function(){return r.supportsPointerEvent},u.stop=function(e){for(var t=a.interactions.length-1;t>=0;t--)a.interactions[t].stop(e);return u},u.pointerMoveTolerance=function(e){return o.is.number(e)?(l.pointerMoveTolerance=e,u):l.pointerMoveTolerance},u.addDocument=a.addDocument,u.removeDocument=a.removeDocument,a.interact=u,t.exports=u},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils":44,"./utils/browser":36,"./utils/events":40}],22:[function(e,t,n){"use strict";var r=e("./Interactable"),i=e("./Interaction"),o=e("./scope"),a=e("./utils/is"),s=e("./utils/events"),l=e("./utils/browser"),c=e("./utils/domUtils"),u=c.nodeContains,d=c.matchesSelector;function f(e){var t=e.interaction,n=e.event;t.target&&t.target.checkAndPreventDefault(n)}r.prototype.preventDefault=function(e){return/^(always|never|auto)$/.test(e)?(this.options.preventDefault=e,this):a.bool(e)?(this.options.preventDefault=e?"always":"never",this):this.options.preventDefault},r.prototype.checkAndPreventDefault=function(e){var t=this.options.preventDefault;"never"!==t&&("always"!==t&&(s.supportsPassive&&/^touch(start|move)$/.test(e.type)&&!l.isIOS||/^(mouse|pointer|touch)*(down|start)/i.test(e.type)||a.element(e.target)&&d(e.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *"))||e.preventDefault())};for(var p=["down","move","up","cancel"],h=0;h<p.length;h++){var m=p[h];i.signals.on(m,f)}i.docEvents.dragstart=function(e){for(var t=0;t<o.interactions.length;t++){var n=o.interactions[t];if(n.element&&(n.element===e.target||u(n.element,e.target)))return void n.target.checkAndPreventDefault(e)}}},{"./Interactable":4,"./Interaction":5,"./scope":33,"./utils/browser":36,"./utils/domUtils":39,"./utils/events":40,"./utils/is":46}],23:[function(e,t,n){"use strict";var r=e("../InteractEvent"),i=e("../Interaction"),o=e("../utils/extend"),a={names:[],setOffsets:function(e){var t=e.interaction,n=e.pageCoords,r=t.target,i=t.element,o=t.startOffset,s=r.getRect(i);s?(o.left=n.x-s.left,o.top=n.y-s.top,o.right=s.right-n.x,o.bottom=s.bottom-n.y,"width"in s||(s.width=s.right-s.left),"height"in s||(s.height=s.bottom-s.top)):o.left=o.top=o.right=o.bottom=0,e.rect=s,e.interactable=r,e.element=i;for(var l=0;l<a.names.length;l++){var c=a.names[l];e.options=r.options[t.prepared.name][c],e.options&&(t.modifierOffsets[c]=a[c].setOffset(e))}},setAll:function(e){var t=e.interaction,n=e.statuses,r=e.preEnd,i=e.requireEndOnly,l={dx:0,dy:0,changed:!1,locked:!1,shouldMove:!0};e.modifiedCoords=o({},e.pageCoords);for(var c=0;c<a.names.length;c++){var u=a.names[c],d=a[u],f=t.target.options[t.prepared.name][u];s(f,r,i)&&(e.status=e.status=n[u],e.options=f,e.offset=e.interaction.modifierOffsets[u],d.set(e),e.status.locked&&(e.modifiedCoords.x+=e.status.dx,e.modifiedCoords.y+=e.status.dy,l.dx+=e.status.dx,l.dy+=e.status.dy,l.locked=!0))}return l.shouldMove=!e.status||!l.locked||e.status.changed,l},resetStatuses:function(e){for(var t=0;t<a.names.length;t++){var n=a.names[t],r=e[n]||{};r.dx=r.dy=0,r.modifiedX=r.modifiedY=NaN,r.locked=!1,r.changed=!0,e[n]=r}return e},start:function(e,t){var n=e.interaction,r={interaction:n,pageCoords:("action-resume"===t?n.curCoords:n.startCoords).page,startOffset:n.startOffset,statuses:n.modifierStatuses,preEnd:!1,requireEndOnly:!1};a.setOffsets(r),a.resetStatuses(r.statuses),r.pageCoords=o({},n.startCoords.page),n.modifierResult=a.setAll(r)},beforeMove:function(e){var t=e.interaction,n=e.preEnd,r=e.interactingBeforeMove,i=a.setAll({interaction:t,preEnd:n,pageCoords:t.curCoords.page,statuses:t.modifierStatuses,requireEndOnly:!1});!i.shouldMove&&r&&(t._dontFireMove=!0),t.modifierResult=i},end:function(e){for(var t=e.interaction,n=e.event,r=0;r<a.names.length;r++){var i=a.names[r],o=t.target.options[t.prepared.name][i];if(s(o,!0,!0)){t.doMove({event:n,preEnd:!0});break}}},setXY:function(e){for(var t=e.iEvent,n=e.interaction,r=o({},e),i=0;i<a.names.length;i++){var s=a.names[i];if(r.options=n.target.options[n.prepared.name][s],r.options){var l=a[s];r.status=n.modifierStatuses[s],t[s]=l.modifyCoords(r)}}}};function s(e,t,n){return e&&e.enabled&&(t||!e.endOnly)&&(!n||e.endOnly)}i.signals.on("new",function(e){e.startOffset={left:0,right:0,top:0,bottom:0},e.modifierOffsets={},e.modifierStatuses=a.resetStatuses({}),e.modifierResult=null}),i.signals.on("action-start",a.start),i.signals.on("action-resume",a.start),i.signals.on("before-action-move",a.beforeMove),i.signals.on("action-end",a.end),r.signals.on("set-xy",a.setXY),t.exports=a},{"../InteractEvent":3,"../Interaction":5,"../utils/extend":41}],24:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../defaultOptions"),a={defaults:{enabled:!1,endOnly:!1,restriction:null,elementRect:null},setOffset:function(e){var t=e.rect,n=e.startOffset,r=e.options,i=r&&r.elementRect,o={};return t&&i?(o.left=n.left-t.width*i.left,o.top=n.top-t.height*i.top,o.right=n.right-t.width*(1-i.right),o.bottom=n.bottom-t.height*(1-i.bottom)):o.left=o.top=o.right=o.bottom=0,o},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,o=e.options;if(!o)return r;var a=r.useStatusXY?{x:r.x,y:r.y}:i.extend({},t),l=s(o.restriction,n,a);if(!l)return r;r.dx=0,r.dy=0,r.locked=!1;var c=l,u=a.x,d=a.y,f=n.modifierOffsets.restrict;"x"in l&&"y"in l?(u=Math.max(Math.min(c.x+c.width-f.right,a.x),c.x+f.left),d=Math.max(Math.min(c.y+c.height-f.bottom,a.y),c.y+f.top)):(u=Math.max(Math.min(c.right-f.right,a.x),c.left+f.left),d=Math.max(Math.min(c.bottom-f.bottom,a.y),c.top+f.top)),r.dx=u-a.x,r.dy=d-a.y,r.changed=r.modifiedX!==u||r.modifiedY!==d,r.locked=!(!r.dx&&!r.dy),r.modifiedX=u,r.modifiedY=d},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options,a=o&&o.elementRect;if(o&&o.enabled&&("start"!==i||!a||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},getRestrictionRect:s};function s(e,t,n){return i.is.function(e)?i.resolveRectLike(e,t.target,t.element,[n.x,n.y,t]):i.resolveRectLike(e,t.target,t.element)}r.restrict=a,r.names.push("restrict"),o.perAction.restrict=a.defaults,t.exports=a},{"../defaultOptions":18,"../utils":44,"./base":23}],25:[function(e,t,n){"use strict";var r=e("./base"),i=e("../utils"),o=e("../utils/rect"),a=e("../defaultOptions"),s=e("../actions/resize"),l=e("./restrict"),c=l.getRestrictionRect,u={top:1/0,left:1/0,bottom:-1/0,right:-1/0},d={top:-1/0,left:-1/0,bottom:1/0,right:1/0},f={defaults:{enabled:!1,endOnly:!1,min:null,max:null,offset:null},setOffset:function(e){var t=e.interaction,n=e.startOffset,r=e.options;if(!r)return i.extend({},n);var o=c(r.offset,t,t.startCoords.page);return o?{top:n.top+o.y,left:n.left+o.x,bottom:n.bottom+o.y,right:n.right+o.x}:n},set:function(e){var t=e.modifiedCoords,n=e.interaction,r=e.status,a=e.offset,s=e.options,l=n.prepared.linkedEdges||n.prepared.edges;if(n.interacting()&&l){var f=r.useStatusXY?{x:r.x,y:r.y}:i.extend({},t),p=o.xywhToTlbr(c(s.inner,n,f))||u,h=o.xywhToTlbr(c(s.outer,n,f))||d,m=f.x,g=f.y;r.dx=0,r.dy=0,r.locked=!1,l.top?g=Math.min(Math.max(h.top+a.top,f.y),p.top+a.top):l.bottom&&(g=Math.max(Math.min(h.bottom-a.bottom,f.y),p.bottom-a.bottom)),l.left?m=Math.min(Math.max(h.left+a.left,f.x),p.left+a.left):l.right&&(m=Math.max(Math.min(h.right-a.right,f.x),p.right-a.right)),r.dx=m-f.x,r.dy=g-f.y,r.changed=r.modifiedX!==m||r.modifiedY!==g,r.locked=!(!r.dx&&!r.dy),r.modifiedX=m,r.modifiedY=g}},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options;if(o&&o.enabled&&("start"!==i||!r.locked)&&r.locked)return t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy,{dx:r.dx,dy:r.dy}},noInner:u,noOuter:d,getRestrictionRect:c};r.restrictEdges=f,r.names.push("restrictEdges"),a.perAction.restrictEdges=f.defaults,s.defaults.restrictEdges=f.defaults,t.exports=f},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrict":24}],26:[function(e,t,n){"use strict";var r=e("./base"),i=e("./restrictEdges"),o=e("../utils"),a=e("../utils/rect"),s=e("../defaultOptions"),l=e("../actions/resize"),c={width:-1/0,height:-1/0},u={width:1/0,height:1/0},d={defaults:{enabled:!1,endOnly:!1,min:null,max:null},setOffset:function(e){var t=e.interaction;return t.startOffset},set:function(e){var t=e.interaction,n=e.options,r=t.prepared.linkedEdges||t.prepared.edges;if(t.interacting()&&r){var s=a.xywhToTlbr(t.resizeRects.inverted),l=a.tlbrToXywh(i.getRestrictionRect(n.min,t))||c,d=a.tlbrToXywh(i.getRestrictionRect(n.max,t))||u;e.options={enabled:n.enabled,endOnly:n.endOnly,inner:o.extend({},i.noInner),outer:o.extend({},i.noOuter)},r.top?(e.options.inner.top=s.bottom-l.height,e.options.outer.top=s.bottom-d.height):r.bottom&&(e.options.inner.bottom=s.top+l.height,e.options.outer.bottom=s.top+d.height),r.left?(e.options.inner.left=s.right-l.width,e.options.outer.left=s.right-d.width):r.right&&(e.options.inner.right=s.left+l.width,e.options.outer.right=s.left+d.width),i.set(e)}},modifyCoords:i.modifyCoords};r.restrictSize=d,r.names.push("restrictSize"),s.perAction.restrictSize=d.defaults,l.defaults.restrictSize=d.defaults,t.exports=d},{"../actions/resize":10,"../defaultOptions":18,"../utils":44,"../utils/rect":51,"./base":23,"./restrictEdges":25}],27:[function(e,t,n){"use strict";var r=e("./base"),i=e("../interact"),o=e("../utils"),a=e("../defaultOptions"),s={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null,relativePoints:null},setOffset:function(e){var t=e.interaction,n=e.interactable,r=e.element,i=e.rect,a=e.startOffset,s=e.options,l=[],c=o.rectToXY(o.resolveRectLike(s.origin)),u=c||o.getOriginXY(n,r,t.prepared.name);s=s||n.options[t.prepared.name].snap||{};var d=void 0;if("startCoords"===s.offset)d={x:t.startCoords.page.x-u.x,y:t.startCoords.page.y-u.y};else{var f=o.resolveRectLike(s.offset,n,r,[t]);d=o.rectToXY(f)||{x:0,y:0}}if(i&&s.relativePoints&&s.relativePoints.length)for(var p=0;p<s.relativePoints.length;p++){var h=s.relativePoints[p],m=h.x,g=h.y;l.push({x:a.left-i.width*m+d.x,y:a.top-i.height*g+d.y})}else l.push(d);return l},set:function(e){var t=e.interaction,n=e.modifiedCoords,r=e.status,i=e.options,a=e.offset,s=[],l=void 0,c=void 0,u=void 0;if(r.useStatusXY)c={x:r.x,y:r.y};else{var d=o.getOriginXY(t.target,t.element,t.prepared.name);(c=o.extend({},n)).x-=d.x,c.y-=d.y}r.realX=c.x,r.realY=c.y;for(var f=i.targets?i.targets.length:0,p=0;p<a.length;p++)for(var h=a[p],m=h.x,g=h.y,v=c.x-m,y=c.y-g,b=0;b<(i.targets||[]).length;b++){var _=(i.targets||[])[b];(l=o.is.function(_)?_(v,y,t):_)&&s.push({x:o.is.number(l.x)?l.x+m:v,y:o.is.number(l.y)?l.y+g:y,range:o.is.number(l.range)?l.range:i.range})}var w={target:null,inRange:!1,distance:0,range:0,dx:0,dy:0};for(u=0,f=s.length;u<f;u++){var E=(l=s[u]).range,k=l.x-c.x,x=l.y-c.y,S=o.hypot(k,x),T=S<=E;E===1/0&&w.inRange&&w.range!==1/0&&(T=!1),w.target&&!(T?w.inRange&&E!==1/0?S/E<w.distance/w.range:E===1/0&&w.range!==1/0||S<w.distance:!w.inRange&&S<w.distance)||(w.target=l,w.distance=S,w.range=E,w.inRange=T,w.dx=k,w.dy=x,r.range=E)}var C=void 0;w.target?(C=r.modifiedX!==w.target.x||r.modifiedY!==w.target.y,r.modifiedX=w.target.x,r.modifiedY=w.target.y):(C=!0,r.modifiedX=NaN,r.modifiedY=NaN),r.dx=w.dx,r.dy=w.dy,r.changed=C||w.inRange&&!r.locked,r.locked=w.inRange},modifyCoords:function(e){var t=e.page,n=e.client,r=e.status,i=e.phase,o=e.options,a=o&&o.relativePoints;if(o&&o.enabled&&("start"!==i||!a||!a.length))return r.locked&&(t.x+=r.dx,t.y+=r.dy,n.x+=r.dx,n.y+=r.dy),{range:r.range,locked:r.locked,x:r.modifiedX,y:r.modifiedY,realX:r.realX,realY:r.realY,dx:r.dx,dy:r.dy}}};i.createSnapGrid=function(e){return function(t,n){var r=e.limits||{left:-1/0,right:1/0,top:-1/0,bottom:1/0},i=0,a=0;o.is.object(e.offset)&&(i=e.offset.x,a=e.offset.y);var s=Math.round((t-i)/e.x),l=Math.round((n-a)/e.y),c=Math.max(r.left,Math.min(r.right,s*e.x+i)),u=Math.max(r.top,Math.min(r.bottom,l*e.y+a));return{x:c,y:u,range:e.range}}},r.snap=s,r.names.push("snap"),a.perAction.snap=s.defaults,t.exports=s},{"../defaultOptions":18,"../interact":21,"../utils":44,"./base":23}],28:[function(e,t,n){"use strict";var r=e("./base"),i=e("./snap"),o=e("../defaultOptions"),a=e("../actions/resize"),s=e("../utils/"),l={defaults:{enabled:!1,endOnly:!1,range:1/0,targets:null,offsets:null},setOffset:function(e){var t=e.interaction,n=e.options,r=t.prepared.edges;if(r){e.options={relativePoints:[{x:r.left?0:1,y:r.top?0:1}],origin:{x:0,y:0},offset:"self",range:n.range};var o=i.setOffset(e);return e.options=n,o}},set:function(e){var t=e.interaction,n=e.options,r=e.offset,o=e.modifiedCoords,a=s.extend({},o),l=a.x-r[0].x,c=a.y-r[0].y;e.options=s.extend({},n),e.options.targets=[];for(var u=0;u<(n.targets||[]).length;u++){var d=(n.targets||[])[u],f=void 0;(f=s.is.function(d)?d(l,c,t):d)&&("width"in f&&"height"in f&&(f.x=f.width,f.y=f.height),e.options.targets.push(f))}i.set(e)},modifyCoords:function(e){var t=e.options;e.options=s.extend({},t),e.options.enabled=t.enabled,e.options.relativePoints=[null],i.modifyCoords(e)}};r.snapSize=l,r.names.push("snapSize"),o.perAction.snapSize=l.defaults,a.defaults.snapSize=l.defaults,t.exports=l},{"../actions/resize":10,"../defaultOptions":18,"../utils/":44,"./base":23,"./snap":27}],29:[function(e,t,n){"use strict";var r=e("../utils/pointerUtils");t.exports=function(){function e(t,n,i,o,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r.pointerExtend(this,i),i!==n&&r.pointerExtend(this,n),this.interaction=a,this.timeStamp=(new Date).getTime(),this.originalEvent=i,this.type=t,this.pointerId=r.getPointerId(n),this.pointerType=r.getPointerType(n),this.target=o,this.currentTarget=null,"tap"===t){var s=a.getPointerIndex(n);this.dt=this.timeStamp-a.downTimes[s];var l=this.timeStamp-a.tapTime;this.double=!!(a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===this.target&&l<500)}else"doubletap"===t&&(this.dt=n.timeStamp-a.tapTime)}return e.prototype.subtractOrigin=function(e){var t=e.x,n=e.y;return this.pageX-=t,this.pageY-=n,this.clientX-=t,this.clientY-=n,this},e.prototype.addOrigin=function(e){var t=e.x,n=e.y;return this.pageX+=t,this.pageY+=n,this.clientX+=t,this.clientY+=n,this},e.prototype.preventDefault=function(){this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},e}()},{"../utils/pointerUtils":49}],30:[function(e,t,n){"use strict";var r=e("./PointerEvent"),i=e("../Interaction"),o=e("../utils"),a=e("../defaultOptions"),s=e("../utils/Signals").new(),l=["down","up","cancel"],c=["down","up","cancel"],u={PointerEvent:r,fire:d,collectEventTargets:f,signals:s,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:["down","move","up","cancel","tap","doubletap","hold"]};function d(e){for(var t=e.interaction,n=e.pointer,i=e.event,a=e.eventTarget,l=e.type,c=void 0===l?e.pointerEvent.type:l,u=e.targets,p=void 0===u?f(e):u,h=e.pointerEvent,m=void 0===h?new r(c,n,i,a,t):h,g={interaction:t,pointer:n,event:i,eventTarget:a,targets:p,type:c,pointerEvent:m},v=0;v<p.length;v++){var y=p[v];for(var b in y.props||{})m[b]=y.props[b];var _=o.getOriginXY(y.eventable,y.element);if(m.subtractOrigin(_),m.eventable=y.eventable,m.currentTarget=y.element,y.eventable.fire(m),m.addOrigin(_),m.immediatePropagationStopped||m.propagationStopped&&v+1<p.length&&p[v+1].element!==m.currentTarget)break}if(s.fire("fired",g),"tap"===c){var w=m.double?d({interaction:t,pointer:n,event:i,eventTarget:a,type:"doubletap"}):m;t.prevTap=w,t.tapTime=w.timeStamp}return m}function f(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,a=e.type,l=t.getPointerIndex(n);if("tap"===a&&(t.pointerWasMoved||!t.downTargets[l]||t.downTargets[l]!==i))return[];for(var c=o.getPath(i),u={interaction:t,pointer:n,event:r,eventTarget:i,type:a,path:c,targets:[],element:null},d=0;d<c.length;d++){var f=c[d];u.element=f,s.fire("collect-targets",u)}return"hold"===a&&(u.targets=u.targets.filter(function(e){return e.eventable.options.holdDuration===t.holdTimers[l].duration})),u.targets}i.signals.on("update-pointer-down",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]={duration:1/0,timeout:null}}),i.signals.on("remove-pointer",function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers.splice(n,1)}),i.signals.on("move",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,o=e.duplicateMove,a=t.getPointerIndex(n);o||t.pointerIsDown&&!t.pointerWasMoved||(t.pointerIsDown&&clearTimeout(t.holdTimers[a].timeout),d({interaction:t,pointer:n,event:r,eventTarget:i,type:"move"}))}),i.signals.on("down",function(e){for(var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget,a=e.pointerIndex,l=t.holdTimers[a],c=o.getPath(i),u={interaction:t,pointer:n,event:r,eventTarget:i,type:"hold",targets:[],path:c,element:null},f=0;f<c.length;f++){var p=c[f];u.element=p,s.fire("collect-targets",u)}if(u.targets.length){for(var h=1/0,m=0;m<u.targets.length;m++){var g=u.targets[m],v=g.eventable.options.holdDuration;v<h&&(h=v)}l.duration=h,l.timeout=setTimeout(function(){d({interaction:t,eventTarget:i,pointer:n,event:r,type:"hold"})},h)}}),i.signals.on("up",function(e){var t=e.interaction,n=e.pointer,r=e.event,i=e.eventTarget;t.pointerWasMoved||d({interaction:t,eventTarget:i,pointer:n,event:r,type:"tap"})});for(var p=["up","cancel"],h=0;h<p.length;h++){var m=p[h];i.signals.on(m,function(e){var t=e.interaction,n=e.pointerIndex;t.holdTimers[n]&&clearTimeout(t.holdTimers[n].timeout)})}function g(e){return function(t){var n=t.interaction,r=t.pointer,i=t.event,o=t.eventTarget;d({interaction:n,eventTarget:o,pointer:r,event:i,type:e})}}for(var v=0;v<l.length;v++)i.signals.on(l[v],g(c[v]));i.signals.on("new",function(e){e.prevTap=null,e.tapTime=0,e.holdTimers=[]}),a.pointerEvents=u.defaults,t.exports=u},{"../Interaction":5,"../defaultOptions":18,"../utils":44,"../utils/Signals":34,"./PointerEvent":29}],31:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interaction");r.signals.on("new",l),r.signals.on("fired",c);for(var o=["move","up","cancel","endall"],a=0;a<o.length;a++){var s=o[a];i.signals.on(s,u)}function l(e){var t=e.pointerEvent;"hold"===t.type&&(t.count=(t.count||0)+1)}function c(e){var t=e.interaction,n=e.pointerEvent,i=e.eventTarget,o=e.targets;if("hold"===n.type&&o.length){var a=o[0].eventable.options.holdRepeatInterval;a<=0||(t.holdIntervalHandle=setTimeout(function(){r.fire({interaction:t,eventTarget:i,type:"hold",pointer:n,event:n})},a))}}function u(e){var t=e.interaction;t.holdIntervalHandle&&(clearInterval(t.holdIntervalHandle),t.holdIntervalHandle=null)}r.defaults.holdRepeatInterval=0,r.types.push("holdrepeat"),t.exports={onNew:l,onFired:c,endHoldRepeat:u}},{"../Interaction":5,"./base":30}],32:[function(e,t,n){"use strict";var r=e("./base"),i=e("../Interactable"),o=e("../utils/is"),a=e("../scope"),s=e("../utils/extend"),l=e("../utils/arr"),c=l.merge;r.signals.on("collect-targets",function(e){var t=e.targets,n=e.element,r=e.type,i=e.eventTarget;a.interactables.forEachMatch(n,function(e){var a=e.events,s=a.options;a[r]&&o.element(n)&&e.testIgnoreAllow(s,n,i)&&t.push({element:n,eventable:a,props:{interactable:e}})})}),i.signals.on("new",function(e){var t=e.interactable;t.events.getRect=function(e){return t.getRect(e)}}),i.signals.on("set",function(e){var t=e.interactable,n=e.options;s(t.events.options,r.defaults),s(t.events.options,n)}),c(i.eventTypes,r.types),i.prototype.pointerEvents=function(e){return s(this.events.options,e),this};var u=i.prototype._backCompatOption;i.prototype._backCompatOption=function(e,t){var n=u.call(this,e,t);return n===this&&(this.events.options[e]=t),n},i.settingsMethods.push("pointerEvents")},{"../Interactable":4,"../scope":33,"../utils/arr":35,"../utils/extend":41,"../utils/is":46,"./base":30}],33:[function(e,t,n){"use strict";var r=e("./utils"),i=e("./utils/events"),o=e("./utils/Signals").new(),a=e("./utils/window"),s=a.getWindow,l={signals:o,events:i,utils:r,document:e("./utils/domObjects").document,documents:[],addDocument:function(e,t){if(r.contains(l.documents,e))return!1;t=t||s(e),l.documents.push(e),i.documents.push(e),e!==l.document&&i.add(t,"unload",l.onWindowUnload),o.fire("add-document",{doc:e,win:t})},removeDocument:function(e,t){var n=l.documents.indexOf(e);t=t||s(e),i.remove(t,"unload",l.onWindowUnload),l.documents.splice(n,1),i.documents.splice(n,1),o.fire("remove-document",{win:t,doc:e})},onWindowUnload:function(){l.removeDocument(this.document,this)}};t.exports=l},{"./utils":44,"./utils/Signals":34,"./utils/domObjects":38,"./utils/events":40,"./utils/window":52}],34:[function(e,t,n){"use strict";var r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.off=function(e,t){if(this.listeners[e]){var n=this.listeners[e].indexOf(t);-1!==n&&this.listeners[e].splice(n,1)}},e.prototype.fire=function(e,t){var n=this.listeners[e];if(n)for(var r=0;r<n.length;r++){var i=n[r];if(!1===i(t,e))return}},e}();r.new=function(){return new r},t.exports=r},{}],35:[function(e,t,n){"use strict";t.exports={contains:function(e,t){return-1!==e.indexOf(t)},merge:function(e,t){for(var n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}}},{}],36:[function(e,t,n){"use strict";var r=e("./window"),i=r.window,o=e("./is"),a=e("./domObjects"),s=a.Element,l=i.navigator,c={supportsTouch:!!("ontouchstart"in i||o.function(i.DocumentTouch)&&a.document instanceof i.DocumentTouch),supportsPointerEvent:!!a.PointerEvent,isIOS:/iP(hone|od|ad)/.test(l.platform),isIOS7:/iP(hone|od|ad)/.test(l.platform)&&/OS 7[^\d]/.test(l.appVersion),isIe9:/MSIE 9/.test(l.userAgent),prefixedMatchesSelector:"matches"in s.prototype?"matches":"webkitMatchesSelector"in s.prototype?"webkitMatchesSelector":"mozMatchesSelector"in s.prototype?"mozMatchesSelector":"oMatchesSelector"in s.prototype?"oMatchesSelector":"msMatchesSelector",pEventTypes:a.PointerEvent?a.PointerEvent===i.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,wheelEvent:"onmousewheel"in a.document?"mousewheel":"wheel"};c.isOperaMobile="Opera"===l.appName&&c.supportsTouch&&l.userAgent.match("Presto"),t.exports=c},{"./domObjects":38,"./is":46,"./window":52}],37:[function(e,t,n){"use strict";var r=e("./is");t.exports=function e(t){var n={};for(var i in t)r.plainObject(t[i])?n[i]=e(t[i]):n[i]=t[i];return n}},{"./is":46}],38:[function(e,t,n){"use strict";var r={},i=e("./window").window;function o(){}r.document=i.document,r.DocumentFragment=i.DocumentFragment||o,r.SVGElement=i.SVGElement||o,r.SVGSVGElement=i.SVGSVGElement||o,r.SVGElementInstance=i.SVGElementInstance||o,r.Element=i.Element||o,r.HTMLElement=i.HTMLElement||r.Element,r.Event=i.Event,r.Touch=i.Touch||o,r.PointerEvent=i.PointerEvent||i.MSPointerEvent,t.exports=r},{"./window":52}],39:[function(e,t,n){"use strict";var r=e("./window"),i=e("./browser"),o=e("./is"),a=e("./domObjects"),s={nodeContains:function(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1},closest:function(e,t){for(;o.element(e);){if(s.matchesSelector(e,t))return e;e=s.parentNode(e)}return null},parentNode:function(e){var t=e.parentNode;if(o.docFrag(t)){for(;(t=t.host)&&o.docFrag(t););return t}return t},matchesSelector:function(e,t){return r.window!==r.realWindow&&(t=t.replace(/\/deep\//g," ")),e[i.prefixedMatchesSelector](t)},indexOfDeepestElement:function(e){var t=[],n=[],r=void 0,i=e[0],o=i?0:-1,s=void 0,l=void 0,c=void 0,u=void 0;for(c=1;c<e.length;c++)if((r=e[c])&&r!==i)if(i){if(r.parentNode!==r.ownerDocument)if(i.parentNode!==r.ownerDocument){if(!t.length)for(s=i;s.parentNode&&s.parentNode!==s.ownerDocument;)t.unshift(s),s=s.parentNode;if(i instanceof a.HTMLElement&&r instanceof a.SVGElement&&!(r instanceof a.SVGSVGElement)){if(r===i.parentNode)continue;s=r.ownerSVGElement}else s=r;for(n=[];s.parentNode!==s.ownerDocument;)n.unshift(s),s=s.parentNode;for(u=0;n[u]&&n[u]===t[u];)u++;var d=[n[u-1],n[u],t[u]];for(l=d[0].lastChild;l;){if(l===d[1]){i=r,o=c,t=[];break}if(l===d[2])break;l=l.previousSibling}}else i=r,o=c}else i=r,o=c;return o},matchesUpTo:function(e,t,n){for(;o.element(e);){if(s.matchesSelector(e,t))return!0;if((e=s.parentNode(e))===n)return s.matchesSelector(e,t)}return!1},getActualElement:function(e){return e instanceof a.SVGElementInstance?e.correspondingUseElement:e},getScrollXY:function(e){return{x:(e=e||r.window).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop}},getElementClientRect:function(e){var t=e instanceof a.SVGElement?e.getBoundingClientRect():e.getClientRects()[0];return t&&{left:t.left,right:t.right,top:t.top,bottom:t.bottom,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top}},getElementRect:function(e){var t=s.getElementClientRect(e);if(!i.isIOS7&&t){var n=s.getScrollXY(r.getWindow(e));t.left+=n.x,t.right+=n.x,t.top+=n.y,t.bottom+=n.y}return t},getPath:function(e){for(var t=[];e;)t.push(e),e=s.parentNode(e);return t},trySelector:function(e){return!!o.string(e)&&(a.document.querySelector(e),!0)}};t.exports=s},{"./browser":36,"./domObjects":38,"./is":46,"./window":52}],40:[function(e,t,n){"use strict";var r,i=e("./is"),o=e("./domUtils"),a=e("./pointerUtils"),s=e("./pointerExtend"),l=e("./window"),c=l.window,u=e("./arr"),d=u.contains,f=[],p=[],h={},m=[],g=(r=!1,c.document.createElement("div").addEventListener("test",null,{get capture(){r=!0}}),r);function v(e,t,n,r){var i=E(r),o=f.indexOf(e),a=p[o];a||(a={events:{},typeCount:0},o=f.push(e)-1,p.push(a)),a.events[t]||(a.events[t]=[],a.typeCount++),d(a.events[t],n)||(e.addEventListener(t,n,g?i:!!i.capture),a.events[t].push(n))}function y(e,t,n,r){var i=E(r),o=f.indexOf(e),a=p[o];if(a&&a.events)if("all"!==t){if(a.events[t]){var s=a.events[t].length;if("all"===n){for(var l=0;l<s;l++)y(e,t,a.events[t][l],i);return}for(var c=0;c<s;c++)if(a.events[t][c]===n){e.removeEventListener("on"+t,n,g?i:!!i.capture),a.events[t].splice(c,1);break}a.events[t]&&0===a.events[t].length&&(a.events[t]=null,a.typeCount--)}a.typeCount||(p.splice(o,1),f.splice(o,1))}else for(t in a.events)a.events.hasOwnProperty(t)&&y(e,t,"all")}function b(e,t){var n=E(t),r={},l=h[e.type],c=a.getEventTargets(e),u=c[0],d=u;for(s(r,e),r.originalEvent=e,r.preventDefault=w;i.element(d);){for(var f=0;f<l.selectors.length;f++){var p=l.selectors[f],m=l.contexts[f];if(o.matchesSelector(d,p)&&o.nodeContains(m,u)&&o.nodeContains(m,d)){var g=l.listeners[f];r.currentTarget=d;for(var v=0;v<g.length;v++){var y=g[v],b=y[0],_=y[1],k=y[2];_===!!n.capture&&k===n.passive&&b(r)}}}d=o.parentNode(d)}}function _(e){return b.call(this,e,!0)}function w(){this.originalEvent.preventDefault()}function E(e){return i.object(e)?e:{capture:e}}t.exports={add:v,remove:y,addDelegate:function(e,t,n,r,i){var o=E(i);if(!h[n]){h[n]={selectors:[],contexts:[],listeners:[]};for(var a=0;a<m.length;a++){var s=m[a];v(s,n,b),v(s,n,_,!0)}}var l=h[n],c=void 0;for(c=l.selectors.length-1;c>=0&&(l.selectors[c]!==e||l.contexts[c]!==t);c--);-1===c&&(c=l.selectors.length,l.selectors.push(e),l.contexts.push(t),l.listeners.push([])),l.listeners[c].push([r,!!o.capture,o.passive])},removeDelegate:function(e,t,n,r,i){var o=E(i),a=h[n],s=!1,l=void 0;if(a)for(l=a.selectors.length-1;l>=0;l--)if(a.selectors[l]===e&&a.contexts[l]===t){for(var c=a.listeners[l],u=c.length-1;u>=0;u--){var d=c[u],f=d[0],p=d[1],m=d[2];if(f===r&&p===!!o.capture&&m===o.passive){c.splice(u,1),c.length||(a.selectors.splice(l,1),a.contexts.splice(l,1),a.listeners.splice(l,1),y(t,n,b),y(t,n,_,!0),a.selectors.length||(h[n]=null)),s=!0;break}}if(s)break}},delegateListener:b,delegateUseCapture:_,delegatedEvents:h,documents:m,supportsOptions:g,_elements:f,_targets:p}},{"./arr":35,"./domUtils":39,"./is":46,"./pointerExtend":48,"./pointerUtils":49,"./window":52}],41:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n in t)e[n]=t[n];return e}},{}],42:[function(e,t,n){"use strict";var r=e("./rect"),i=r.resolveRectLike,o=r.rectToXY;t.exports=function(e,t,n){var r=e.options[n],a=r&&r.origin,s=a||e.options.origin,l=i(s,e,t,[e&&t]);return o(l)||{x:0,y:0}}},{"./rect":51}],43:[function(e,t,n){"use strict";t.exports=function(e,t){return Math.sqrt(e*e+t*t)}},{}],44:[function(e,t,n){"use strict";var r=e("./extend"),i=e("./window"),o={warnOnce:function(e,t){var n=!1;return function(){return n||(i.window.console.warn(t),n=!0),e.apply(this,arguments)}},_getQBezierValue:function(e,t,n,r){var i=1-e;return i*i*t+2*i*e*n+e*e*r},getQuadraticCurvePoint:function(e,t,n,r,i,a,s){return{x:o._getQBezierValue(s,e,n,i),y:o._getQBezierValue(s,t,r,a)}},easeOutQuad:function(e,t,n,r){return-n*(e/=r)*(e-2)+t},copyAction:function(e,t){return e.name=t.name,e.axis=t.axis,e.edges=t.edges,e},is:e("./is"),extend:r,hypot:e("./hypot"),getOriginXY:e("./getOriginXY")};r(o,e("./arr")),r(o,e("./domUtils")),r(o,e("./pointerUtils")),r(o,e("./rect")),t.exports=o},{"./arr":35,"./domUtils":39,"./extend":41,"./getOriginXY":42,"./hypot":43,"./is":46,"./pointerUtils":49,"./rect":51,"./window":52}],45:[function(e,t,n){"use strict";var r=e("../scope"),i=e("./index"),o={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(e,t,n){for(var r=i.getPointerType(e),a=i.getPointerId(e),s={pointer:e,pointerId:a,pointerType:r,eventType:t,eventTarget:n},l=0;l<o.methodOrder.length;l++){var c=o.methodOrder[l],u=o[c](s);if(u)return u}},simulationResume:function(e){var t=e.pointerType,n=e.eventType,o=e.eventTarget;if(!/down|start/i.test(n))return null;for(var a=0;a<r.interactions.length;a++){var s=r.interactions[a],l=o;if(s.simulation&&s.simulation.allowResume&&s.pointerType===t)for(;l;){if(l===s.element)return s;l=i.parentNode(l)}}return null},mouseOrPen:function(e){var t=e.pointerId,n=e.pointerType,o=e.eventType;if("mouse"!==n&&"pen"!==n)return null;for(var a=void 0,s=0;s<r.interactions.length;s++){var l=r.interactions[s];if(l.pointerType===n){if(l.simulation&&!i.contains(l.pointerIds,t))continue;if(l.interacting())return l;a||(a=l)}}if(a)return a;for(var c=0;c<r.interactions.length;c++){var u=r.interactions[c];if(!(u.pointerType!==n||/down/i.test(o)&&u.simulation))return u}return null},hasPointer:function(e){for(var t=e.pointerId,n=0;n<r.interactions.length;n++){var o=r.interactions[n];if(i.contains(o.pointerIds,t))return o}},idle:function(e){for(var t=e.pointerType,n=0;n<r.interactions.length;n++){var i=r.interactions[n];if(1===i.pointerIds.length){var o=i.target;if(o&&!o.options.gesture.enabled)continue}else if(i.pointerIds.length>=2)continue;if(!i.interacting()&&t===i.pointerType)return i}return null}};t.exports=o},{"../scope":33,"./index":44}],46:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("./window"),o=e("./isWindow"),a={array:function(){},window:function(e){return e===i.window||o(e)},docFrag:function(e){return a.object(e)&&11===e.nodeType},object:function(e){return!!e&&"object"===(void 0===e?"undefined":r(e))},function:function(e){return"function"==typeof e},number:function(e){return"number"==typeof e},bool:function(e){return"boolean"==typeof e},string:function(e){return"string"==typeof e},element:function(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return!1;var t=i.getWindow(e)||i.window;return/object|function/.test(r(t.Element))?e instanceof t.Element:1===e.nodeType&&"string"==typeof e.nodeName},plainObject:function(e){return a.object(e)&&"Object"===e.constructor.name}};a.array=function(e){return a.object(e)&&void 0!==e.length&&a.function(e.splice)},t.exports=a},{"./isWindow":47,"./window":52}],47:[function(e,t,n){"use strict";t.exports=function(e){return!(!e||!e.Window)&&e instanceof e.Window}},{}],48:[function(e,t,n){"use strict";function r(e,n){for(var r in n){var i=t.exports.prefixedPropREs,o=!1;for(var a in i)if(0===r.indexOf(a)&&i[a].test(r)){o=!0;break}o||"function"==typeof n[r]||(e[r]=n[r])}return e}r.prefixedPropREs={webkit:/(Movement[XY]|Radius[XY]|RotationAngle|Force)$/},t.exports=r},{}],49:[function(e,t,n){"use strict";var r=e("./hypot"),i=e("./browser"),o=e("./domObjects"),a=e("./domUtils"),s=e("./domObjects"),l=e("./is"),c=e("./pointerExtend"),u={copyCoords:function(e,t){e.page=e.page||{},e.page.x=t.page.x,e.page.y=t.page.y,e.client=e.client||{},e.client.x=t.client.x,e.client.y=t.client.y,e.timeStamp=t.timeStamp},setCoordDeltas:function(e,t,n){e.page.x=n.page.x-t.page.x,e.page.y=n.page.y-t.page.y,e.client.x=n.client.x-t.client.x,e.client.y=n.client.y-t.client.y,e.timeStamp=n.timeStamp-t.timeStamp;var i=Math.max(e.timeStamp/1e3,.001);e.page.speed=r(e.page.x,e.page.y)/i,e.page.vx=e.page.x/i,e.page.vy=e.page.y/i,e.client.speed=r(e.client.x,e.page.y)/i,e.client.vx=e.client.x/i,e.client.vy=e.client.y/i},isNativePointer:function(e){return e instanceof o.Event||e instanceof o.Touch},getXY:function(e,t,n){return e=e||"page",(n=n||{}).x=t[e+"X"],n.y=t[e+"Y"],n},getPageXY:function(e,t){return t=t||{},i.isOperaMobile&&u.isNativePointer(e)?(u.getXY("screen",e,t),t.x+=window.scrollX,t.y+=window.scrollY):u.getXY("page",e,t),t},getClientXY:function(e,t){return t=t||{},i.isOperaMobile&&u.isNativePointer(e)?u.getXY("screen",e,t):u.getXY("client",e,t),t},getPointerId:function(e){return l.number(e.pointerId)?e.pointerId:e.identifier},setCoords:function(e,t,n){var r=t.length>1?u.pointerAverage(t):t[0],i={};u.getPageXY(r,i),e.page.x=i.x,e.page.y=i.y,u.getClientXY(r,i),e.client.x=i.x,e.client.y=i.y,e.timeStamp=l.number(n)?n:(new Date).getTime()},pointerExtend:c,getTouchPair:function(e){var t=[];return l.array(e)?(t[0]=e[0],t[1]=e[1]):"touchend"===e.type?1===e.touches.length?(t[0]=e.touches[0],t[1]=e.changedTouches[0]):0===e.touches.length&&(t[0]=e.changedTouches[0],t[1]=e.changedTouches[1]):(t[0]=e.touches[0],t[1]=e.touches[1]),t},pointerAverage:function(e){for(var t={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<e.length;n++){var r=e[n];for(var i in t)t[i]+=r[i]}for(var o in t)t[o]/=e.length;return t},touchBBox:function(e){if(e.length||e.touches&&e.touches.length>1){var t=u.getTouchPair(e),n=Math.min(t[0].pageX,t[1].pageX),r=Math.min(t[0].pageY,t[1].pageY),i=Math.max(t[0].pageX,t[1].pageX),o=Math.max(t[0].pageY,t[1].pageY);return{x:n,y:r,left:n,top:r,width:i-n,height:o-r}}},touchDistance:function(e,t){var n=t+"X",i=t+"Y",o=u.getTouchPair(e),a=o[0][n]-o[1][n],s=o[0][i]-o[1][i];return r(a,s)},touchAngle:function(e,t,n){var r=n+"X",i=n+"Y",o=u.getTouchPair(e),a=o[1][r]-o[0][r],s=o[1][i]-o[0][i],l=180*Math.atan2(s,a)/Math.PI;return l},getPointerType:function(e){return l.string(e.pointerType)?e.pointerType:l.number(e.pointerType)?[void 0,void 0,"touch","pen","mouse"][e.pointerType]:/touch/.test(e.type)||e instanceof s.Touch?"touch":"mouse"},getEventTargets:function(e){var t=l.function(e.composedPath)?e.composedPath():e.path;return[a.getActualElement(t?t[0]:e.target),a.getActualElement(e.currentTarget)]}};t.exports=u},{"./browser":36,"./domObjects":38,"./domUtils":39,"./hypot":43,"./is":46,"./pointerExtend":48}],50:[function(e,t,n){"use strict";for(var r=e("./window"),i=r.window,o=["ms","moz","webkit","o"],a=0,s=void 0,l=void 0,c=0;c<o.length&&!i.requestAnimationFrame;c++)s=i[o[c]+"RequestAnimationFrame"],l=i[o[c]+"CancelAnimationFrame"]||i[o[c]+"CancelRequestAnimationFrame"];s||(s=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-a)),r=setTimeout(function(){e(t+n)},n);return a=t+n,r}),l||(l=function(e){clearTimeout(e)}),t.exports={request:s,cancel:l}},{"./window":52}],51:[function(e,t,n){"use strict";var r=e("./extend"),i=e("./is"),o=e("./domUtils"),a=o.closest,s=o.parentNode,l=o.getElementRect,c={getStringOptionResult:function(e,t,n){return i.string(e)?e="parent"===e?s(n):"self"===e?t.getRect(n):a(n,e):null},resolveRectLike:function(e,t,n,r){return e=c.getStringOptionResult(e,t,n)||e,i.function(e)&&(e=e.apply(null,r)),i.element(e)&&(e=l(e)),e},rectToXY:function(e){return e&&{x:"x"in e?e.x:e.left,y:"y"in e?e.y:e.top}},xywhToTlbr:function(e){return!e||"left"in e&&"top"in e||((e=r({},e)).left=e.x||0,e.top=e.y||0,e.right=e.right||e.left+e.width,e.bottom=e.bottom||e.top+e.height),e},tlbrToXywh:function(e){return!e||"x"in e&&"y"in e||((e=r({},e)).x=e.left||0,e.top=e.top||0,e.width=e.width||e.right-e.x,e.height=e.height||e.bottom-e.y),e}};t.exports=c},{"./domUtils":39,"./extend":41,"./is":46}],52:[function(e,t,n){"use strict";var r=t.exports,i=e("./isWindow");function o(e){r.realWindow=e;var t=e.document.createTextNode("");t.ownerDocument!==e.document&&"function"==typeof e.wrap&&e.wrap(t)===t&&(e=e.wrap(e)),r.window=e}"undefined"==typeof window?(r.window=void 0,r.realWindow=void 0):o(window),r.getWindow=function(e){if(i(e))return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||r.window},r.init=o},{"./isWindow":47}]},{},[1])(1)},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ie}),n.d(t,"b",function(){return oe});var r=n(71),i=n(15),o=n.n(i),a=n(37),s=n.n(a),l=n(3),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(13),m=n(12),g=(n(2148),n(103)),v=n(54),y=n.n(v),b=n(18),_=n.n(b),w=n(108),E=n.n(w),k=n(2),x=n.n(k),S=n(44),T=n.n(S),C=n(40),O=n.n(C),A=n(46),N=n.n(A),I=n(39),M=n.n(I),j=n(48),L=n.n(j),P=n(36),D=n.n(P),R=n(401),F=n.n(R),B=n(17),U=n.n(B),q=n(397),z=n.n(q),H=n(14),W=n.n(H),$=n(1),Y=n.n($),V=n(255),K=n.n(V),G=n(76),X=n.n(G),Q=n(135),Z=n.n(Q),J=n(749),ee=n(1223),te=n(80),ne=n(750),re=n(402),ie=function(t){function n(e){var t,r,i,o,a,s,l,d,m;return Object(u.a)(this,n),(m=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={arrow:{absolute:null,bottom:null,fixed:null,hidden:"prev",opacity:null,top:null},initiating:!0,scroll:{active:!1,auto:!1,end:!1},position:{next:null,prev:null},sidebar:null,slide:{active:!1,current:0,fade:!1,previous:null},style:null,width:{card:null,wrapper:null}},m.handleRestart=c()(t=m.handleRestart).call(t,Object(h.a)(m)),m.handleScroll=c()(r=m.handleScroll).call(r,Object(h.a)(m)),m.renderStep=c()(i=m.renderStep).call(i,Object(h.a)(m)),m.setArrows=c()(o=m.setArrows).call(o,Object(h.a)(m)),m.setHeight=c()(a=m.setHeight).call(a,Object(h.a)(m)),m.setPosition=c()(s=m.setPosition).call(s,Object(h.a)(m)),m.setWidth=c()(l=m.setWidth).call(l,Object(h.a)(m)),m.slideTo=c()(d=m.slideTo).call(d,Object(h.a)(m)),m}return Object(m.a)(n,t),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.isPreview,n=document.getElementsByClassName("page-wrap")[0];this.container=t?n:window,this.initRef=s()(function(){return e.setState({initiating:!1})},1e3),this.scrollRef=Z()(this.handleScroll,10),window.addEventListener("resize",this.setPosition),this.container.addEventListener("scroll",this.scrollRef),s()(this.setPosition,0),s()(this.handleScroll,0)}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=s()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.resizeRef),clearTimeout(this.slideRef),clearTimeout(this.afterSlideRef),clearTimeout(this.arrowAnimRef),window.removeEventListener("resize",this.setPosition),this.container.removeEventListener("scroll",this.scrollRef)}},{key:"handleRestart",value:function(){var e=this,t=this.props,n=t.getScrollTop,r=t.steps,i=n(),o=Object(g.findDOMNode)(this.refs["slide-0"]).offsetHeight,a=this.container===window?"body, html":this.container,l=U()(this.state.arrow,{hidden:"prev"}),c=U()(this.state.scroll),u={active:!1,auto:!1,end:!1},d=U()(this.state.slide,{fade:!0}),f={active:!1,current:0,fade:!0,previous:r.length-1},p=U()(f,{fade:!1}),h=function(){e.setState({scroll:u,slide:f}),e.afterSlideRef=s()(e.setArrows,300)};this.setState({scroll:c({auto:!0}),slide:d,style:{height:o}},function(){y()(a).stop().animate({scrollTop:i},300,h)}),this.slideRef=s()(function(){return e.setState({slide:p})},700),this.arrowAnimRef=s()(function(){return e.setState({arrow:l})},300)}},{key:"handleScroll",value:function(){var e=this.state,t=e.arrow,n=e.scroll,r=e.slide.current,i="prev"===t.hidden?"next":"prev",o=Object(g.findDOMNode)(this.refs["slide-".concat(r)]),a=Object(g.findDOMNode)(this.refs["arrow-".concat(i)]).firstChild;if(!n.auto&&o&&a){var s=o.getBoundingClientRect(),l=s.height,c=s.top,u=a.getBoundingClientRect().top,d=460-l,f=.005*(c-d+200),p=U()(n),h=U()(t);c<80&&c>d?this.setState({scroll:p({active:!0,end:!1})}):c<=d?this.setState({scroll:p({active:!1,end:!0}),arrow:h({opacity:f,top:u})}):this.setState({scroll:p({active:!1,end:!1}),arrow:h({opacity:f,top:u})})}}},{key:"handleSlide",value:function(e){var t=this.props.steps,n=this.state.slide.current,r="next"===e?n+1:n-1;r<=-1||r>=t.length||this.slideTo(r,n)}},{key:"render",value:function(){var t=this,n=this.props,r=n.menuOpen,i=n.steps,a=this.state,s=a.initiating,l=a.sidebar,c=a.slide,u=a.style,d=c.current,f=c.fade,p=i.length,h=d===p-1,m=0===d,g=Math.min(p-22,d-11),v=Math.max(24-d,d+12,23),y=m?0:Math.max(0,g),b=h?p:Math.min(p,v),_=K()(y,b,i),w=p<23?_:z()(i[0],_),E=x()("process-block",{"process-block--with-sidebar":r&&l>0}),k={className:x()("process-block__inner",{"process-block__inner--fade":f||s}),ref:function(e){return t.inner=e},style:u};return e.createElement("div",{className:E},e.createElement("div",k,this.renderArrow("prev"),h?o()(w).call(w,this.renderStep):o()(_).call(_,this.renderStep),this.renderArrow("next")))}},{key:"renderArrow",value:function(t){var n,i=this.state,o=i.arrow,a=i.scroll,s=i.sidebar,l=i.slide,u=this.props,d=u.menuOpen,f=u.steps,p=this.container&&this.container!==window,h=f.length>1?o.hidden:"both",m=Object(r.a)({},o,{hidden:h,isSliding:l.active,offset:p?this.container.offsetWidth-this.container.clientWidth:0,onClick:c()(n=this.handleSlide).call(n,this,t),opacity:o.opacity>=0?o.opacity:0,ref:"arrow-".concat(t),scroll:a,sidebar:d?s:0,type:t});return e.createElement(ee.a,m)}},{key:"renderStep",value:function(t){var n,r=t.description,i=t.id,o=t.index,a=t.media,s=t.title,l=t.type,u=this.props,d=u.blockId,f=u.enableVideoPlaybackSpeed,p=u.entered,h=u.labels,m=u.settings,g=u.steps,v=this.state,y=v.initiating,b=v.position,_=v.slide,w=v.width,E=_.current,k=_.fade,x=_.previous,S=w.card,T=w.wrapper,C=function(e){return!D()(M()(W()("type",e),g))},O=C("intro"),A=C("summary"),I=O?o:o+1,j=N()(W()("type","step"),g).length+1,L={blockId:d,current:E,description:r,enableVideoPlaybackSpeed:f,entered:p,fade:k,hasNavigation:g.length>1,id:i,index:o,initiating:y,key:o,labels:h,media:a,onMediaLoad:this.setHeight,onNextClick:c()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:I,position:b,previous:x,ref:"slide-".concat(o),settings:m,title:s,type:l,width:S,wrapperWidth:T},P={current:E,hasSummary:A,isFirst:!O,length:j,slideTo:this.slideTo};return e.createElement(J.a,L,e.createElement(ne.a,P))}},{key:"setArrows",value:function(){var e=this.state,t=e.arrow,n=t.hidden,r=t.opacity,i=e.sidebar,o=e.slide.current,a=this.props.menuOpen,s="prev"===n?"next":"prev",l=Object(g.findDOMNode)(this.refs["slide-".concat(o)]),c=Object(g.findDOMNode)(this.refs["arrow-".concat(s)]).firstChild,u=L()(F.a),d=a?i:0,f=window.innerWidth;if(l&&c){var p=l.getBoundingClientRect(),h=p.height,m=p.left,v=p.width,y=c.getBoundingClientRect(),b=y.top,w=(f-v-m)/2-y.width,E=T()([[u(1280+d),_()(w+20)],[u(1350+d),_()(w)],[X.a,_()(m-d-170)]])(f),k=T()([[u(1280+d),_()(w+20)],[u(1350+d),_()(w+40)],[X.a,_()(m-d-130)]])(f);this.setState({arrow:{absolute:E,bottom:h-220,fixed:k,hidden:n,opacity:r,top:b}})}}},{key:"setHeight",value:function(e){var t=this.state.slide.current,n=Object(g.findDOMNode)(this.refs["slide-".concat(t)]),r="function"==typeof e?e:_.a;n&&this.setState({style:{height:n.offsetHeight}},r)}},{key:"setPosition",value:function(){this.setWidth(),this.setHeight(),this.setArrows()}},{key:"setWidth",value:function(){var e=this.state.slide.current,t=this.inner,n=Object(g.findDOMNode)(this.refs["slide-".concat(e)]),r=this.container&&this.container!==window?this.container.getBoundingClientRect().left:0,i=n.offsetWidth,o=t.offsetWidth,a=t&&n,s=a&&(o-i)/2+i/2,l=a&&(o-i)/2+1.5*i,c={card:n&&n.offsetWidth,wrapper:t&&t.offsetWidth},u={prev:l,next:s};t&&n&&this.setState({position:u,sidebar:r,width:c})}},{key:"slideTo",value:function(e,t){var n=this;if(!this.state.slide.active){var r=this.props,i=r.getScrollTop,o=r.onStep,a=r.steps,l=i(),c=Object(g.findDOMNode)(this.refs["slide-".concat(e)]).offsetHeight,u=this.container===window?"body, html":this.container,d=U()(this.state.scroll),f={active:!1,auto:!1,end:!1},p=U()(this.state.arrow),h=U()({current:e,previous:t,fade:!1}),m=a[e],v=T()([[O()(0),_()({hidden:"prev"})],[O()(a.length-1),_()({hidden:"next"})],[X.a,_()({hidden:null})]])(e),b=function(){n.setState({scroll:f}),n.afterSlideRef=s()(n.setArrows,400)};this.setState({scroll:d({auto:!0}),slide:h({active:!0}),style:{height:c}},function(){y()(u).stop().animate({scrollTop:l},300,b)}),this.slideRef=s()(function(){return n.setState({slide:h({active:!1})})},600),this.arrowAnimRef=s()(function(){return n.setState({arrow:p(v)})},300),o&&o(m)}}}],[{key:"propTypes",get:function(){return{blockId:Y.a.string.isRequired,entered:Y.a.bool,getScrollTop:Y.a.func.isRequired,isPreview:Y.a.bool,labels:Y.a.object.isRequired,menuOpen:Y.a.bool,onStep:Y.a.func,settings:Y.a.object.isRequired,steps:Y.a.array.isRequired,visible:Y.a.bool}}}]),n}(e.Component),oe=function(t){function n(e){var t,r,i,o,a,s,l;return Object(u.a)(this,n),(l=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={current:0,fade:!1,height:null,help:!1,helped:!1,initiating:!0,width:null,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},l.handleRestart=c()(t=l.handleRestart).call(t,Object(h.a)(l)),l.preventScroll=c()(r=l.preventScroll).call(r,Object(h.a)(l)),l.renderStep=c()(i=l.renderStep).call(i,Object(h.a)(l)),l.setHeight=c()(o=l.setHeight).call(o,Object(h.a)(l)),l.setPosition=c()(a=l.setPosition).call(a,Object(h.a)(l)),l.setWidth=c()(s=l.setWidth).call(s,Object(h.a)(l)),l}return Object(m.a)(n,t),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e,t,n=this,r=this.props.isPreview,i=document.getElementsByClassName("page-wrap")[0],o=c()(e=this.handleSlide).call(e,this,"prev"),a=c()(t=this.handleSlide).call(t,this,"next"),l=function(){return n.setState({initiating:!1})};this.container=r?i:window,this.swipeEvents=Object(re.a)(this.inner,this,a,o,60),this.initRef=s()(function(){return n.setPosition(l)},500),this.swipeEvents.addListeners(),window.addEventListener("resize",this.setPosition),this.setPosition(),this.showHelp()}},{key:"componentDidUpdate",value:function(e){this.props.menuOpen!==e.menuOpen&&(this.resizeRef=s()(this.setPosition,300))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.initRef),clearTimeout(this.afterSlideRef),clearTimeout(this.slideRef),clearTimeout(this.resizeRef),this.swipeEvents.removeListeners(),window.removeEventListener("resize",this.setPosition)}},{key:"handleRestart",value:function(){var e=this,t=(0,this.props.getScrollTop)(),n=this.container===window?"body, html":this.container,r=this.refs["slide-0"].firstChild.offsetHeight,i=function(){e.preventScroll("end")};this.setState({fade:!0},function(){e.preventScroll("start"),y()(n).stop().animate({scrollTop:t},300,i)}),this.slideRef=s()(function(){return e.setState({current:0,height:r})},300),this.afterSlideRef=s()(function(){return e.setState({fade:!1})},700)}},{key:"handleSlide",value:function(e){var t=this,n=this.props,r=n.getScrollTop,i=n.onStep,o=n.steps,a=this.state.current,s=r(),l="next"===e?a+1:a-1;if(!(l<=-1||l>=o.length)){var c=o[l],u=this.container===window?"body, html":this.container,d=this.refs["slide-".concat(l)].firstChild.offsetHeight,f=function(){t.preventScroll("end"),t.showHelp()};this.setState({current:l,height:d},function(){t.preventScroll("start"),y()(u).stop().animate({scrollTop:s},300,f)}),i&&i(c)}}},{key:"preventScroll",value:function(e){this.container!==window&&("start"===e&&te.a.isMobile?this.container.style.overflowY="hidden":this.container.style.overflowY="")}},{key:"render",value:function(){var t=this,n=this.props.steps,r=this.state,i=r.current,a=r.fade,s=r.height,l=r.initiating,c=n.length,u=i===c-1,d=0===i?0:i-1,f=u?c:i+2,p=K()(d,f,n),h=c<3?p:E()(n[0],p),m={className:x()("process-block-mobile__inner",{"process-block-mobile__inner--fade":a,"process-block-mobile__inner--initiating":l}),ref:function(e){return t.inner=e},style:s?{height:s}:null};return e.createElement("div",{className:"process-block-mobile"},e.createElement("div",m,u?o()(h).call(h,this.renderStep):o()(p).call(p,this.renderStep)))}},{key:"renderStep",value:function(t){var n,r=t.description,i=t.id,o=t.index,a=t.media,s=t.title,l=t.type,u=this.props,d=u.blockId,f=u.enableVideoPlaybackSpeed,p=u.entered,h=u.labels,m=u.settings,g=u.steps,v=u.visible,y=this.state,b=y.current,_=y.help,w=y.helped,E=y.initiating,k=function(e){return!D()(M()(W()("type",e),g))},x=k("intro"),S=k("summary"),T=x?o:o+1,C=N()(W()("type","step"),g).length+1,O={blockId:d,current:b,description:r,enableVideoPlaybackSpeed:f,entered:v&&p,hasNavigation:g.length>1,id:i,index:o,initiating:E,labels:h,media:a,onMediaLoad:this.setHeight,onNextClick:c()(n=this.handleSlide).call(n,this,"next"),onRestartClick:this.handleRestart,number:T,settings:m,showHelp:_&&w,title:s,type:l,width:this.inner&&this.inner.offsetWidth},A={current:b,hasSummary:S,isFirst:!x,length:C};return e.createElement("div",{key:o,ref:"slide-".concat(o)},e.createElement(J.b,O,e.createElement(ne.a,A)))}},{key:"setHeight",value:function(e){var t=this.state.current,n=this.refs["slide-".concat(t)].firstChild,r="function"==typeof e?e:_.a;n&&this.setState({height:n.offsetHeight},r)}},{key:"setPosition",value:function(e){this.setWidth(),this.setHeight(e)}},{key:"setWidth",value:function(){this.setState({width:this.inner.offsetWidth})}},{key:"showHelp",value:function(){var e=this.props.steps,t=this.state,n=t.current,r=t.help,i=t.helped;n!==(!D()(M()(W()("type","intro"),e))?1:0)||r||i?this.setState({help:!1}):this.setState({help:!0,helped:!0})}},{key:"shouldComponentUpdate",value:function(e,t){return e.entered!==this.props.entered||e.menuOpen!==this.props.menuOpen||e.visible!==this.props.visible||t.current!==this.state.current||t.fade!==this.state.fade||t.height!==this.state.height||t.help!==this.state.help||t.helped!==this.state.helped||t.initiating!==this.state.initiating||t.width!==this.state.width||t.xTouchDown!==this.state.xTouchDown||t.xTouchMove!==this.state.xTouchMove||t.yTouchDown!==this.state.yTouchDown||t.yTouchMove!==this.state.yTouchMove}}],[{key:"propTypes",get:function(){return{blockId:Y.a.string.isRequired,entered:Y.a.bool,getScrollTop:Y.a.func.isRequired,isPreview:Y.a.bool,menuOpen:Y.a.bool,onStep:Y.a.func,settings:Y.a.object.isRequired,steps:Y.a.array.isRequired,visible:Y.a.bool}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return F}),n.d(t,"b",function(){return B});var r=n(4),i=n.n(r),o=n(5),a=n(10),s=n(7),l=n(11),c=n(9),u=n(12),d=(n(2149),n(18)),f=n.n(d),p=n(19),h=n.n(p),m=n(2),g=n.n(m),v=n(28),y=n.n(v),b=n(44),_=n.n(b),w=n(298),E=n.n(w),k=n(36),x=n.n(k),S=n(231),T=n.n(S),C=n(121),O=n.n(C),A=n(1),N=n.n(A),I=n(76),M=n.n(I),j=n(47),L=n(22),P=n(52),D=n(27),R=n(183),F=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,i=t.description,o=t.entered,a=t.fade,s=t.hasNavigation,l=t.index,c=t.initiating,u=t.media,d=t.position,p=d.next,h=d.prev,m=t.previous,v=t.title,b=t.type,w=!x()(h)&&!x()(p),k=y()("process-card__"),S=g()("process-card",{"process-card--initiating":c,"process-card--entered":o,"process-card--intro":"intro"===b,"process-card--summary":"summary"===b,"process-card--active":r===l,"process-card--prev-active":m===l,"process-card--next":r+1===l,"process-card--prev":r-1===l,"process-card--slide-fade":a}),C=_()([[E()(l),f()({transform:"translate3d(".concat(p,"px, 0px, 0px)")})],[T()(l),f()({transform:"translate3d(-".concat(h,"px, 0px, 0px)")})],[M.a,f()(null)]])(r),O={className:S,style:w?C:null};return e.createElement("div",O,e.createElement("div",{className:"process-card__inner"},e.createElement("div",null,"step"===b&&$(this.props,k),v&&Y(this.props,k),u&&z(this.props,k),i&&U(this.props,k),s&&"intro"===b&&W(this.props,k),"intro"!==b&&n,s&&"summary"===b&&H(this.props,k))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.fade!==this.props.fade||e.initiating!==this.props.initiating||e.position!==this.props.position||e.previous!==this.props.previous||e.settings!==this.props.settings)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:N.a.string.isRequired,children:N.a.node,current:N.a.number.isRequired,description:N.a.string,enableVideoPlaybackSpeed:N.a.bool,entered:N.a.bool,fade:N.a.bool,hasNavigation:N.a.bool,index:N.a.any.isRequired,initiating:N.a.bool,media:N.a.object,onMediaLoad:N.a.func,onNextClick:N.a.func.isRequired,onRestartClick:N.a.func.isRequired,number:N.a.number,position:N.a.object.isRequired,previous:N.a.number,settings:N.a.object.isRequired,title:N.a.string,type:N.a.oneOf(["intro","step","summary"])}}}]),n}(e.Component),B=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"render",value:function(){var t=this.props,n=t.children,r=t.current,i=t.description,o=t.entered,a=t.hasNavigation,s=t.index,l=t.initiating,c=t.media,u=t.title,d=t.type,p=t.width,h=_()([[E()(s),f()({transform:"translate3d(".concat(p,"px, 0px, 0px)")})],[T()(s),f()({transform:"translate3d(-".concat(p,"px, 0px, 0px)")})],[M.a,f()(null)]])(r),m=g()("process-card-mobile",{"process-card-mobile--entered":o,"process-card-mobile--intro":"intro"===d,"process-card-mobile--summary":"summary"===d,"process-card-mobile--active":r===s,"process-card-mobile--initiating":l}),v=y()("process-card-mobile__");return e.createElement("div",{className:m,style:h},e.createElement("div",{className:"process-card-mobile__inner"},e.createElement("div",null,"step"===d&&$(this.props,v),u&&Y(this.props,v),c&&z(this.props,v),i&&U(this.props,v),a&&"intro"===d&&W(this.props,v),"intro"!==d&&n,a&&"summary"===d&&H(this.props,v),q(this.props,v))))}},{key:"shouldComponentUpdate",value:function(e){if(e.current!==this.props.current||e.initiating!==this.props.initiating||e.width!==this.props.width)return!0;var t=e.current,n=e.index,r=e.entered!==this.props.entered||e.showHelp!==this.props.showHelp;return t===n&&r}}],[{key:"propTypes",get:function(){return{blockId:N.a.string.isRequired,children:N.a.node,current:N.a.number.isRequired,description:N.a.string,enableVideoPlaybackSpeed:N.a.bool,entered:N.a.bool,hasNavigation:N.a.bool,id:N.a.string.isRequired,index:N.a.any.isRequired,initiating:N.a.bool.isRequired,labels:N.a.object.isRequired,media:N.a.object,onMediaLoad:N.a.func,onNextClick:N.a.func.isRequired,onRestartClick:N.a.func.isRequired,number:N.a.number,settings:N.a.object.isRequired,showHelp:N.a.bool,title:N.a.string,type:N.a.oneOf(["intro","step","summary"]),width:N.a.number}}}]),n}(e.Component),U=function(t,n){var r=t.current,i=t.description,o=t.index;return e.createElement(P.a,{allowTabNavigation:r===o,className:"".concat(n("description")," brand--body"),value:i})},q=function(t,n){var r=t.current,i=t.index,a=t.labels,s=t.showHelp,l=a.processSwipe,c=g()(n("help"),Object(o.a)({},"".concat(n("help"),"--show"),r===i&&s));return e.createElement("div",{className:c},e.createElement("span",null,l," ",e.createElement(j.f,null)))},z=function(t,n){var r,o,a=t.blockId,s=t.current,l=t.enableVideoPlaybackSpeed,c=t.id,u=t.index,d=t.media,p=t.onMediaLoad,m=t.settings.zoomOnClick,g=s===u,v=O()(h()("pause",!0),d);return e.createElement("div",{className:n("media")},e.createElement(R.a,{allowTabNavigation:g,enableVideoPlaybackSpeed:l,hasPadding:!1,index:i()(r=i()(o="".concat(a,"-")).call(o,c,"-")).call(r,u),media:g?d:v,onLoad:g&&p?p:f.a,opts:{disableZoom:!m}}))},H=function(t,n){var r=t.current,i=t.index,o=t.labels,a=t.onRestartClick,s=o.processStartAgain,l=r===i?L.a:L.h,c={className:"".concat(n("restart")," brand--color"),onClick:a,onKeyDown:Object(D.a)(a),role:"button",tabIndex:l};return e.createElement("div",c,e.createElement("span",null,s),e.createElement("i",{className:"icon icon-reload"}))},W=function(t,n){var r=t.current,i=t.index,o=t.labels,a=t.onNextClick,s=o.processStart,l=r===i?L.a:L.h,c={className:"".concat(n("button")," brand--background"),onClick:a,onKeyDown:Object(D.a)(a),role:"button",tabIndex:l};return e.createElement("button",c,e.createElement("span",null,s," ",e.createElement(j.f,null)))},$=function(t,n){var r,o=t.labels,a=t.number,s=t.settings,l=o.processStepName,c=s.stepLabel||l;return e.createElement("div",{className:"".concat(n("number")," brand--background brand--head")},e.createElement("p",null,i()(r="".concat(c," ")).call(r,a)))},Y=function(t,n){return e.createElement("div",{className:"".concat(n("title")," brand--head")},e.createElement("h2",null,t.title))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return M});var r=n(3),i=n.n(r),o=n(15),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(12),f=(n(2151),n(18)),p=n.n(f),h=n(2),m=n.n(h),g=n(44),v=n.n(g),y=n(592),b=n.n(y),_=n(36),w=n.n(_),E=n(401),k=n.n(E),x=n(1),S=n.n(x),T=n(575),C=n.n(T),O=n(76),A=n.n(O),N=n(47),I=n(80),M=function(t){function n(){return Object(s.a)(this,n),Object(c.a)(this,Object(u.a)(n).apply(this,arguments))}return Object(d.a)(n,t),Object(l.a)(n,[{key:"getCounterPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst,r=e.length,i=n?t+1:t,o=this.refs["item-".concat(i)],a=this.refs["item-".concat(r)];if(!this.counter||!o||!a)return{lastItemPosition:null,position:null,width:null};var s=this.getItemPosition(),l=a.offsetLeft+5,c=o.offsetWidth,u=this.counter.offsetWidth,d=s-u/2+c/2,f=l-u+c/2;return{lastItemPosition:l,position:v()([[b()(u/2),p()(0)],[k()(l-u/2),p()(f)],[A.a,p()(d)]])(s),width:u}}},{key:"getItemPosition",value:function(){var e=this.props,t=e.current,n=e.isFirst?t+1:t,r=this.refs["item-".concat(n)];return r?n>=10?r.offsetLeft+3:r.offsetLeft:null}},{key:"handleSlide",value:function(e){var t=this.props,n=t.current,r=t.isFirst;(0,t.slideTo)(r?e-1:e,n)}},{key:"render",value:function(){var t,n,r=this,o=this.props,s=o.hasSummary,l=o.length,c=this.getCounterPosition(),u=c.lastItemPosition,d=c.position,f=c.width,p=this.getItemPosition(),h=s?l+1:l,g=m()("process-counter",{"process-counter--overflow-before":d>0,"process-counter--overflow-after":u>d+f}),v={transform:"translate3d(-".concat(d,"px, 0px, 0px)")},y={opacity:1,transform:"translate3d(".concat(p,"px, 0px, 0px)")},b={className:"process-counter__inner",style:!w()(d)&&d>0?v:{transform:"translate3d(0px, 0px, 0px)"},ref:function(e){return r.counter=e}},_={className:"process-counter__active brand--border",style:w()(p)?null:y};return e.createElement("div",{className:g},e.createElement("div",b,e.createElement("div",_),a()(t=C()(1,h)).call(t,i()(n=this.renderItem).call(n,this))))}},{key:"renderItem",value:function(t){var n,r=this.props,o=r.current,a=r.hasSummary,s=r.length,l=a&&t===s,c=r.isFirst?o+1:o,u=I.a.isMobile,d={className:m()("process-counter__item",{"process-counter__item--active":t===c,"process-counter__item--double":t>=10,"process-counter__item--disabled":u}),onClick:!u&&i()(n=this.handleSlide).call(n,this,t),key:t,ref:"item-".concat(t)};return e.createElement("div",d,e.createElement("span",null,l?e.createElement(N.d,null):t))}}],[{key:"propTypes",get:function(){return{current:S.a.number.isRequired,hasSummary:S.a.bool,isFirst:S.a.bool,length:S.a.number.isRequired,slideTo:S.a.func}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"b",function(){return Z}),n.d(t,"a",function(){return J});var r=n(71),i=n(474),o=n.n(i),a=n(19),s=n.n(a),l=n(104),c=n.n(l),u=n(6),d=n.n(u),f=n(28),p=n.n(f),h=n(46),m=n.n(h),g=n(39),v=n.n(g),y=n(361),b=n.n(y),_=n(72),w=n.n(_),E=n(35),k=n.n(E),x=n(121),S=n.n(x),T=n(25),C=n.n(T),O=n(23),A=n.n(O),N=n(8),I=n.n(N),M=n(14),j=n.n(M),L=n(112),P=n.n(L),D=n(568),R=n.n(D),F=n(295),B=n.n(F),U=n(107),q=n(420),z=Object(U.d)("CONTENT_PASS_URI"),H="".concat(z,"/rise/characters"),W=p()("".concat(H,"/")),$={transformRequest:[function(e,t){return t.Authorization="Bearer ".concat(Object(q.a)()),e}],headers:{"Content-Type":"application/json","X-Articulate-Client":"rise-frontend"}},Y=(A()(I()("filters"),v()(j()("name","style")),j()("value","photographic")),A()(I()("filters"),m()(j()("name","style")),o()(j()("value","holding_sign")))),V=A()(I()("filters"),m()(j()("name","rise_excluded")),o()(j()("value","yes"))),K=A()(P()(Y),P()(V)),G=d()(R.a,I()("pathname"),B.a.parse),X=A()(I()("filters"),m()(j()("name","rise_emotion")),c()(w.a)),Q=A()(I()("filters"),v()(j()("name","rise_emotion")),I()("value")),Z=A()(I()("poses"),m()(X),k()(function(e){return[Q(e),e]}),b.a,S()(function(e){return A()(s()("key",G(e.src)),s()("thumbnailKey",G(e.thumbnail)))(e)})),J=function(e){return Object(q.b)(Object(r.a)({},$,{url:W(e)})).toPromise().then(C()(null,["data","character"])).then(function(e){return s()("poses",K(e.poses),e)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=!("undefined"==typeof window||!window.document||!window.document.createElement);var i=void 0;function o(){return void 0===i&&(i=function(){if(!r)return!1;if(!window.addEventListener||!window.removeEventListener||!Object.defineProperty)return!1;var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t)}catch(e){}return e}()),i}function a(e){e.handlers===e.nextHandlers&&(e.nextHandlers=e.handlers.slice())}function s(e){this.target=e,this.events={}}s.prototype.getEventHandlers=function(){return function(e,t){var n,r=String(e)+" "+String((n=t)?!0===n?100:(n.capture<<0)+(n.passive<<1)+(n.once<<2):0);return this.events[r]||(this.events[r]={handlers:[],handleEvent:void 0},this.events[r].nextHandlers=this.events[r].handlers),this.events[r]}}(),s.prototype.handleEvent=function(){return function(e,t,n){var r=this.getEventHandlers(e,t);r.handlers=r.nextHandlers,r.handlers.forEach(function(e){e&&e(n)})}}(),s.prototype.add=function(){return function(e,t,n){var r=this,i=this.getEventHandlers(e,n);a(i),0===i.nextHandlers.length&&(i.handleEvent=this.handleEvent.bind(this,e,n),this.target.addEventListener(e,i.handleEvent,n)),i.nextHandlers.push(t);var o=!0;return function(){if(o){o=!1,a(i);var s=i.nextHandlers.indexOf(t);i.nextHandlers.splice(s,1),0===i.nextHandlers.length&&(r.target&&r.target.removeEventListener(e,i.handleEvent,n),i.handleEvent=void 0)}}}}();var l="__consolidated_events_handlers__";function c(e,t,n,r){e[l]||(e[l]=new s(e));var i=function(e){if(e)return o()?e:!!e.capture}(r);return e[l].add(t,n,i)}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f}),n.d(t,"b",function(){return p});var r=n(4),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2347),n(119)),d=n(52),f=function(t){var n=t.courseHomeLabel;return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(u.a,{className:"previous-lesson__link",to:"/"},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},n)))},p=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.previous,o=n.previousNumber,a=n.previousTitle,s=n.onPreviousClick,l=n.isLesson,c=n.labels.lessonName,f=e.createElement(d.a,{className:"previous-lesson__title--inline",value:a});return e.createElement("div",{className:"previous-lesson brand--linkColorHover","data-previous-lesson":!0},e.createElement(u.a,{className:"previous-lesson__link",to:"/lessons/"+encodeURIComponent(r),onClick:s},e.createElement("i",{className:"icon icon-chevron-up"}),e.createElement("div",{className:"previous-lesson__title brand--ui"},l?i()(t="".concat(c," ")).call(t,o," - "):""," ",f)))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=n(2),c=n.n(l),u=n(1),d=n.n(u),f=n(27),p=n(22),h=function(t){function n(e){var t;return Object(r.a)(this,n),(t=Object(o.a)(this,Object(a.a)(n).call(this,e))).state={hide:!1},t}return Object(s.a)(n,t),Object(i.a)(n,[{key:"focus",value:function(){this.controlDiv.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.atStart,o=n.isTransitioning,a=n.labels.processNextStep,s=n.onClick,l=n.type,u=this.state.hide,d="next"===l,h=d&&!o&&!i,m=c()("process__"+l,"brand--min768--background",{"brand--max768--color":i,"process__controls--hide":u,"process__controls--animating":o,"process__controls--clip":h}),g=d?"icon-chevron-right":"icon-chevron-left";return e.createElement("div",{"aria-hidden":!r,className:m,onClick:s,onKeyDown:Object(f.a)(s),ref:function(e){t.controlDiv=e},role:"button",tabIndex:Object(p.l)(r)},e.createElement("div",{className:"process__control-content","data-next-step":a},e.createElement("div",{className:"process__control-animation"},e.createElement("i",{className:g}))))}}],[{key:"propTypes",get:function(){return{type:d.a.string.isRequired,onClick:d.a.func.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return a});var r=n(123),i=n(89),o=n(1248);t.a=function(t){var n=t.menuButtons,s=t.previousComponent,l=Object(r.a)(t,["menuButtons","previousComponent"]);return e.createElement(i.c,{type:a.type},s,e.createElement(i.b,{type:a.type},n,e.createElement(i.a,{type:a.type},e.createElement(o.a,l))))};var a={type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s}),n.d(t,"b",function(){return l});var r=n(119),i=n(36),o=n.n(i),a=(n(2355),n(1250)),s=function(t){var n=t.percentComplete,r=t.trackingCompletionPercentage;return o()(r)?null:e.createElement("div",{className:"progress-summary__requirement"},e.createElement("div",{className:"progress-summary__requirement-stats-wrap"},e.createElement("h2",{className:"progress-summary__requirement-title"},"Completion Requirement"),e.createElement("div",{className:"progress-summary__requirement-stats"},e.createElement("div",null,r,"% Completion"),e.createElement("div",null,"You completed: ",e.createElement("strong",{className:"progress-summary__requirement-stats-percent-achieved"},n,"%")))),e.createElement(c,{requirementMet:r<=n}))},l=function(t){var n=t.outOfAttempts,i=t.quizPassed,a=t.quizPassingScore,s=t.quizScore,l=t.quizTitle,u=t.trackingQuizId;return u?e.createElement("div",{className:"progress-summary__requirement"},e.createElement("div",{className:"progress-summary__requirement-stats-wrap"},e.createElement("h2",{className:"progress-summary__requirement-title"},"Quiz Requirement"),e.createElement("div",{className:"progress-summary__requirement-stats"},e.createElement("div",null,"Score of ",a,"% on ",l),o()(s)?e.createElement("div",null,e.createElement(r.a,{className:"progress-summary__requirement-stats-link brand--color",to:"/lessons/".concat(u)},"View quiz")):e.createElement("div",null,"You scored ",e.createElement("strong",{className:"progress-summary__requirement-stats-percent-achieved"},s,"%"))),n&&e.createElement("span",{className:"progress-summary__requirement-no-attempts"},"No attempts remaining.")),e.createElement(c,{requirementMet:i})):null},c=function(t){return t.requirementMet?e.createElement(a.a,{className:"progress-summary__requirement-checkbox-checked"}):e.createElement("div",{className:"progress-summary__requirement-checkbox-empty"})}}).call(this,n(0))},function(e,t,n){var r=n(2372)(1,"join");e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(2409),i=n(130),o=n(2410),a=n(93),s=n(194),l=n(2411),c=function(e,t){return s(e,t)&&l(e)&&o(e)&&a(e.first)&&a(e.second)};e.exports=i(function(e,t){if(a(e)&&a(t))return function(n){return r(e(n),t(n))};if(c(e,t))return e.first().compose(t.second()).contramap(function(e){return r(e,e)});throw new TypeError("fanout: Arrows, Functions or Stars of the same type required for both arguments")})},function(e,t,n){"use strict";t.a={addEventListeners:function(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners:function(e,t){e.removeEventListener("animationend",t,!1)}}},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(4),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(2449),n(0)),h=n(119),m=n(201),g=n(2),v=n.n(g),y=n(1),b=n.n(y),_=n(328),w=n.n(_),E=n(47),k=n(27),x=n(29),S=n(105),T=n(405),C=n(22),O=n(216),A=n(606),N=function(e){return"/lessons/".concat(encodeURIComponent(e))},I=function(t){var n=t.allowTabNavigation,r=t.canComplete,i=t.isDisabled,o=t.onClick,a=t.passedQuiz,s=t.percentComplete,l=t.title,c=t.type,u=e.createElement("span",{"aria-hidden":"true"},e.createElement(A.a,{passedQuiz:a,percentComplete:s})),d=Object(C.l)(n);if(!r||"quiz"===c)return u;var f=x.e?"".concat(l," is complete"):"Mark ".concat(l," as incomplete"),p=100===s?f:"Mark ".concat(l," as complete"),h=x.e&&100===s;return e.createElement("button",{"aria-label":p,className:"lesson-link__button",disabled:i||h,onClick:o,tabIndex:d},u)},M=function(t){function n(){var e,t,r,o,l,f,p,h,m;Object(s.a)(this,n);for(var g=arguments.length,v=new Array(g),y=0;y<g;y++)v[y]=arguments[y];return(m=Object(c.a)(this,(e=Object(u.a)(n)).call.apply(e,a()(t=[this]).call(t,v)))).onClick=i()(r=m.onClick).call(r,Object(d.a)(m)),m.onKeyBlur=i()(o=m.handleKeyboardFocus).call(o,Object(d.a)(m),!1),m.onKeyFocus=i()(l=m.handleKeyboardFocus).call(l,Object(d.a)(m),!0),m.onMouseEnter=i()(f=m.handleMouseHover).call(f,Object(d.a)(m),!0),m.onMouseLeave=i()(p=m.handleMouseHover).call(p,Object(d.a)(m),!1),m.onSectionClick=i()(h=m.onSectionClick).call(h,Object(d.a)(m)),m}return Object(f.a)(n,t),Object(l.a)(n,[{key:"isActive",value:function(){return this.props.match.url==="/lessons/".concat(this.props.id)}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.allowTabNavigation,i=n.allowTooltip,o=n.id,a=n.isSectionActive,s=n.location,l=n.markComplete,c=n.percentComplete,u=n.restrictions,d=this.state,f=d.hasFocus,p=d.visited;return!!(r!==e.allowTabNavigation||o!==e.id||a!==e.isSectionActive||f!==t.hasFocus||s!==e.location||l!==e.markComplete||c!==e.percentComplete||u.isRestricted!==e.restrictions.isRestricted||u.currentLesson!==e.restrictions.currentLesson||p!==t.visited||f&&i!==e.allowTooltip)}},{key:"componentWillMount",value:function(){this.setState({visited:this.isActive()})}},{key:"handleKeyboardFocus",value:function(e){this.setState({hasFocus:e})}},{key:"handleMouseHover",value:function(e){this.props.onMouse(e)}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,i=t.lesson,o=t.onClick,a=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!a)return n(),!1;a()}this.setState({visited:!0}),o({lesson:i,id:r})}},{key:"onSectionClick",value:function(){var e=this.props,t=e.id,n=e.lesson;(0,e.onClick)({id:t,lesson:n})}},{key:"renderLink",value:function(){var t,n=this.props,r=n.allowTabNavigation,i=n.allowTooltip,o=n.icon,s=n.id,l=n.labels,c=n.markComplete,u=n.onComplete,d=n.passedQuiz,f=n.percentComplete,m=n.restrictions,g=n.title,y=n.type,b=this.state,_=b.hasFocus,E=b.visited,k=m.isRestricted,x=k&&c,A=!m.isRestrictedCourse&&c,M=v()("lesson-link",{"lesson-link--visited":E,"lesson-link__restricted":k}),j=void 0===d||d?"".concat(f," Percent Complete"):"Quiz Failed",L=[e.createElement("div",{key:"icon-".concat(s),"aria-hidden":"true",className:"lesson-link__icon"},e.createElement(T.a,{icon:o})),e.createElement("div",{key:"name-".concat(s),className:"lesson-link__name brand--ui"},e.createElement("span",{"aria-hidden":"true"},w()(g,{length:60})),e.createElement("span",{className:"visually-hidden"},a()(t="".concat(g," ")).call(t,j)))],P=e.createElement("div",{key:"progress-".concat(s),className:"lesson-link__progress"},e.createElement(I,{allowTabNavigation:r,canComplete:A,isDisabled:x,onClick:u,passedQuiz:d,percentComplete:f,title:g,type:y})),D=Object(C.l)(r);if(k){var R,F=Object(S.a)({labels:l,restrictions:m}),B=v()("runtime-tooltip",{"runtime-tooltip--show":i&&_});return e.createElement(O.a,{className:B},e.createElement("span",{"aria-disabled":"true","aria-label":a()(R="The ".concat(g," lesson is currently unavailable: ")).call(R,F),className:M,onBlur:this.onKeyBlur,onFocus:this.onKeyFocus,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,role:"link",tabIndex:D},L),P,e.createElement(O.b,{"aria-hidden":"true",side:"top"},F))}return e.createElement(p.Fragment,null,e.createElement(h.b,{activeClassName:"lesson-link--active brand--beforeBackground",className:M,onClick:this.onClick,tabIndex:D,to:N(s)},L),P)}},{key:"renderSection",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.isSectionActive,o=n.sectionId,a=n.title,s=Object(C.l)(r),l=v()({"chevron__rotate-down":i});return e.createElement("div",{"aria-controls":o,"aria-expanded":i,"aria-label":"Toggle ".concat(a," Section"),className:"lesson-link--section brand--ui",onClick:this.onSectionClick,onKeyPress:function(e){Object(k.d)(e)&&t.onSectionClick()},role:"button",tabIndex:s},e.createElement("div",{className:"lesson-link--section-content"},e.createElement("div",{className:"lesson-link--section-icon"},e.createElement(E.t,{className:l})),e.createElement("div",{className:"lesson-link--section-title"},a)))}},{key:"render",value:function(){return"section"===this.props.type?this.renderSection():this.renderLink()}}],[{key:"propTypes",get:function(){return{id:b.a.any.isRequired,icon:b.a.string,isSectionActive:b.a.bool,type:b.a.string.isRequired,title:b.a.string.isRequired,onClick:b.a.func.isRequired,focusLessonContent:b.a.func.isRequired}}},{key:"defaultProps",get:function(){return{isSectionActive:!1,restrictions:{}}}}]),n}(p.Component);t.a=Object(m.e)(M)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ae});var r=n(3),i=n.n(r),o=n(4),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=n(104),h=n.n(p),m=n(150),g=n.n(m),v=n(46),y=n.n(v),b=n(115),_=n.n(b),w=n(36),E=n.n(w),k=n(51),x=n.n(k),S=n(26),T=n.n(S),C=n(25),O=n.n(C),A=n(23),N=n.n(A),I=n(14),M=n.n(I),j=n(0),L=n(158),P=n.n(L),D=n(257),R=n.n(D),F=n(2),B=n.n(F),U=(n(2455),n(50)),q=n(105),z=n(323),H=n(88),W=n(27),$=n(29),Y=n(81),V=n(272),K=n(301),G=n(198),X=n(479),Q=n(366),Z=n(365),J=n(603),ee=n(260),te=n(209),ne=n(47),re=n(241),ie=N()(g()([]),y()(h()(M()("type","section"))),x.a),oe=Object(te.a)("modernOverview"),ae=function(t){function n(){var e,t,r,o,l,f;Object(s.a)(this,n);for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(f=Object(c.a)(this,(e=Object(u.a)(n)).call.apply(e,a()(t=[this]).call(t,h)))).addFavorite=i()(r=f.addFavorite).call(r,Object(d.a)(f)),f.removeFavorite=i()(o=f.removeFavorite).call(o,Object(d.a)(f)),f.handleStartButtonKeyDown=i()(l=f.handleStartButtonKeyDown).call(l,Object(d.a)(f)),f}return Object(f.a)(n,t),Object(l.a)(n,[{key:"componentDidMount",value:function(){P.a.Events.scrollEvent.register("end",function(e,t){t&&t.focus()})}},{key:"componentWillUnmount",value:function(){P.a.Events.scrollEvent.remove("end")}},{key:"componentWillEnter",value:function(e){this.courseOverview.animate(!0).then(e)}},{key:"componentWillExit",value:function(e){this.courseOverview.animate().then(e)}},{key:"render",value:function(){var t,n=this,r=this.props,i=r.course,o=r.courseProgress,a=r.lessons,s=r.labels,l=T()(["lmsOptions","enableExitCourse"],i),c=O()({},["media","image"],i),u=c.key,d=c.width,f=c.height,p=u?Object(H.a)(c):null,h=s.courseStart,m=s.courseResume,g=s.courseDetails,v=s.courseExit,y=s.overviewPageTitleSuffix,b=i.author,w=i.authors,k=i.categories,x=i.certificateDownload,S=i.completedAt,C=i.dueAt,A=i.favoritedAt,N=i.riseComCurrentUser,I=i.enrolled,L=i.riseComEnrollmentType,P=i.selectedAuthorId,D=i.timeToComplete,F=i.showTimeToComplete,U=i.trackingCompletionPercentage,W=i.trackingQuizId,K=Object(V.b)(i),G=Object(V.c)(i),te=T()(["lessonsOnly",0,"id"],i),ae=oe&&"preview"!==window.viewType&&o.percentComplete&&!Object(Y.g)()?Object(q.c)(o.lessons,W):te,se=!E()(ae),le=oe&&(Object(Y.g)()||!se),ce=(t=$.e?"Resume Course":m,le?"Start Again":t),ue=o.percentComplete?ce:h,de=se?_()(M()("id",ae))(i.lessonsOnly):-1,fe=se?O()("",["lessonsOnly",de,"title"],i):"",pe=se?fe:"",he=B()("overview__continueMessage",{"overview__continueMessage-hide":!I&&!A}),me=Object(J.a)({authors:w,author:b,selectedAuthorId:P}),ge=me.avatar,ve=me.authorName,ye=me.title,be=Object(z.a)({course:i,courseProgress:o}),_e=ie(a),we=O()(!0,["lessons",W,"passed"],o);return e.createElement(R.a,{title:Object(ee.a)(i.title+" - "+y)},e.createElement(re.j,{ref:function(e){return n.courseOverview=e},sidebarEnabled:K,sidebarOpen:G},e.createElement(X.a,{enableExitCourse:l,className:"courseExit courseExit--overview",text:v}),e.createElement("header",null,e.createElement(re.e,{coverImage:i.coverImage},e.createElement(Q.b,{courseTitle:i.title,coverImage:i.coverImage},e.createElement(Z.b,{lessonComplete:s.lessonComplete,value:o.percentComplete})),e.createElement(re.i,null,i.title),e.createElement(re.a,{avatar:ge,authorName:ve}),oe&&0!==o.percentComplete&&e.createElement(j.Fragment,null,e.createElement("div",{className:"overview__progressBar"},e.createElement(Z.b,{lg:!0,rounded:!0,lessonComplete:s.lessonComplete,value:o.percentComplete})),!!o.percentComplete&&!le&&e.createElement("div",{className:he},e.createElement(ne.b,{className:"overview__continueIcon",decorative:!0}),e.createElement("span",{"aria-hidden":"true",className:"overview__nextLessonText"},pe),e.createElement("span",{className:"visually-hidden"},"Next lesson: ",pe))),e.createElement("div",null,$.e&&oe?e.createElement(re.h,{certificateDownload:x,completedQuizRequirement:we,courseBtnText:ue,courseProgress:o,coverImage:i.coverImage,currentUser:N,enrolled:I,enrollmentType:L,favoritedAt:A,handleAddFavoriteClick:this.addFavorite,handleRemoveFavoriteClick:this.removeFavorite,handleKeyDown:this.handleStartButtonKeyDown,nextLessonId:se?ae:te,nextLessonText:pe,percentComplete:o.percentComplete,startAgain:le}):e.createElement(re.b,{to:"/lessons/".concat(se?ae:te),coverImage:i.coverImage,onKeyDown:this.handleStartButtonKeyDown},ue),K&&!$.e&&!oe&&e.createElement(re.c,{text:g})))),e.createElement("main",{"aria-label":"Course Details"},e.createElement(re.d,null,e.createElement(re.f,{src:p,width:d,height:f}),e.createElement(re.g,{authorName:ve,authorTitle:ye,avatar:ge,categories:k,completedAt:S,course:i,courseProgress:o,dueAt:C,labels:s,lessons:a,numLessons:_e,restrictingQuiz:be,showTimeToComplete:F,sidebarEnabled:K,timeToComplete:D,trackingCompletionPercentage:U,trackingQuizId:W})))))}},{key:"handleStartButtonKeyDown",value:function(e){Object(W.d)(e)&&Object(U.a)(Object(G.c)(!0))}},{key:"addFavorite",value:function(){Object(U.a)(Object(K.c)())}},{key:"removeFavorite",value:function(){Object(U.a)(Object(K.f)())}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";var r=n(180),i=n.n(r),o=n(30),a=n.n(o),s=n(3),l=n.n(s),c=n(4),u=n.n(c),d=n(10),f=n(7),p=n(11),h=n(9),m=n(13),g=n(12),v=(n(2171),n(0)),y=n.n(v),b=n(596),_=n(179),w=n.n(_),E=n(6),k=n.n(E),x=n(473),S=n.n(x),T=n(25),C=n.n(T),O=n(597),A=n.n(O),N=n(418),I=n.n(N),M=n(484),j=n(261),L=n(66),P=n(15),D=n.n(P),R=(n(2316),n(72)),F=n.n(R),B=n(485),U=n.n(B),q=(n(2317),n(2)),z=n.n(q),H=n(36),W=n.n(H),$=function(e){function t(){var e,n,r,i,o;Object(d.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(o=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleMouseEnter=l()(r=o.handleMouseEnter).call(r,Object(m.a)(o)),o.handleMouseLeave=l()(i=o.handleMouseLeave).call(i,Object(m.a)(o)),o}return Object(g.a)(t,e),Object(f.a)(t,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.identifier,r=e.index,i=e.label,o=e.value,a=!W()(t)&&t!==r,s=z()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":a});return y.a.createElement("div",{className:s,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},y.a.createElement("dt",{className:"block-chart__cartesianLegendTerm"},n,"."),y.a.createElement("dd",{className:"block-chart__cartesianLegendDefn"},i,y.a.createElement("span",{className:"block-chart__cartesianLegendDefnPipe"},"|"),y.a.createElement("span",{className:"block-chart__cartesianLegendDefnVal"},o)))}}]),t}(v.PureComponent),Y=Object(v.memo)(function(e){var t=e.activeIndex,n=e.labels,r=e.letters,o=e.onEvent,a=i()(e),s=U()(r,U()(n,a));return F()(s)?null:y.a.createElement("dl",{className:"block-chart__cartesianLegend"},D()(s).call(s,function(e,n){var r=Object(L.a)(e,2),i=r[0],a=Object(L.a)(r[1],2),s=a[0],l=a[1];return y.a.createElement($,{activeIndex:t,identifier:i,index:n,key:i,label:s,onEvent:o,value:l})}))}),V=n(598),K=n.n(V),G=n(78),X=function(e){var t=e.activeIndex,n=e.settings,r=n.backgroundColor,o=n.chartColor,a=n.lineCurve,s=i()(e),l=e.variant,c=o,u=o;if(!W()(t)){var d=K()(o,r||"#fff",.7);c=d,u=Object(G.h)(d,o,s.length,t)}return"bar"===l?{backgroundColor:u,borderColor:c,data:s,hoverBackgroundColor:u,hoverBorderColor:u}:{borderColor:c,cubicInterpolationMode:"linear"===a?"default":"monotone",data:s,lineTension:"linear"===a?0:void 0,pointBackgroundColor:u,pointBorderColor:u,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:o,pointHoverBorderColor:o,pointHoverBorderWidth:0,pointRadius:4}},Q=n(1234),Z=n.n(Q),J=n(208),ee=n.n(J),te=n(32),ne=n.n(te),re=n(325),ie=n.n(re)()(/([^\s].{0,14}(?![.{3}])(?=[\s\W]|$))/gm),oe=function(e){return e.displayName||e.name||"Component"},ae=n(120),se=n.n(ae),le=n(1235),ce=n.n(le),ue=n(1236),de=n.n(ue),fe=function(e,t){return y.a.createElement("mark",{key:t},e)},pe=se()(function(e,t){return de()(new RegExp(ce()(t),"igm"),fe,e)}),he=n(159),me=n.n(he),ge=n(122),ve=(n.n(ge)()(function(e,t){return me()(t).call(t,function(t,n){return t+n[e]},0)}),n(389)),ye=n(151),be=n(471),_e=function(e){var t,n=e[0],r=n.xLabel,i=n.yLabel,o=ne()(Z.a,ee()(" "),r);return u()(t="".concat(o,": ")).call(t,i)},we=function(e){var t=e.hasDarkBgColor,n=e.isDesktop,r=e.onEvent,o=e.shouldAnimate,a=i()(e);return{animation:{duration:o?1e3:0},defaultFontColor:t?"#fff":"#313537",defaultFontFamily:'"lato", sans-serif',elements:{line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},legend:{display:!1},onClick:r,onHover:r,plugins:{datalabels:{display:!1}},responsive:!1,scales:{xAxes:[{barPercentage:.6,gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",display:!1,drawBorder:!1,offsetGridLines:!0},maxBarThickness:60,offset:!0,scaleLabel:{display:!1},ticks:{autoSkip:!1,callback:ie,minor:{fontColor:t?"#fff":"#313537"},padding:10}}],yAxes:[{gridLines:{color:t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)",drawBorder:!1,drawTicks:!1,zeroLineColor:Object(G.a)(a)?t?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.25)":t?"rgba(255, 255, 255, 0.2)":"rgba(0,0,0,0.1)"},scaleLabel:{display:!1},ticks:{beginAtZero:!0,maxTicksLimit:8,minor:{fontColor:t?"#fff":"#313537"},padding:n?15:4}}]},tooltips:{backgroundColor:t?"#fff":"#000",callbacks:{label:function(){return null},title:_e},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:t?"#313537":"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},Ee=n(599),ke=n.n(Ee),xe=n(150),Se=n.n(xe),Te=n(8),Ce=n.n(Te),Oe=n(210),Ae=n.n(Oe),Ne=n(328),Ie=n.n(Ne),Me=Ae()(/<mark>|<\/mark>/gm,""),je=k()(function(e){return Ie()(e,{length:30})},Me,Ce()("type")),Le=k()(Se()(0),ke.a,Ce()("value")),Pe=function(e){return{labels:D()(e).call(e,je),values:D()(e).call(e,Le)}},De=se()(function(e,t,n){var r=Ie()(t,{length:e});return n?pe(r,n):r}),Re=n(31),Fe=function(e){var t=function(t){function n(){var e,t,r,i;Object(d.a)(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,a)))).handleEvent=l()(r=i.handleEvent).call(r,Object(m.a)(i)),i.state={activeIndex:null},i}return Object(g.a)(n,t),Object(f.a)(n,[{key:"handleEvent",value:function(e){this.setState({activeIndex:e})}},{key:"render",value:function(){return y.a.createElement(e,Object(Re.a)({},this.props,{activeIndex:this.state.activeIndex,onEvent:this.handleEvent}))}}]),n}(v.PureComponent);return t.displayName="ChartEvents(".concat(oe(e),")"),t},Be=function(e){var t=function(t){function n(){var e,t,r,i;Object(d.a)(this,n);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,a)))).chartRef=Object(v.createRef)(),i.handleResize=l()(r=i.handleResize).call(r,Object(m.a)(i)),i}return Object(g.a)(n,t),Object(f.a)(n,[{key:"componentDidMount",value:function(){this.resize(),this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"handleResize",value:function(){this.resize(),this.update()}},{key:"resize",value:function(){var e=this.chartRef.current.chartInstance;e&&e.resize()}},{key:"update",value:function(){var e=this.chartRef.current.chartInstance;e&&e.update()}},{key:"render",value:function(){return y.a.createElement(e,Object(Re.a)({},this.props,{onResize:this.handleResize,ref:this.chartRef}))}}]),n}(v.PureComponent);return t.displayName="ChartUpdater(".concat(oe(e),")"),t},Ue=(n(2336),n(58)),qe=n(57),ze={bar:function(e){return"Bar chart with the following items: ".concat(e)},line:function(e){return"Line chart with the following items: ".concat(e)},pie:function(e){return"Pie chart with the following items: ".concat(e)}},He=function(e,t){var n=D()(t).call(t,function(e){var t;return u()(t="".concat(e.type,": ")).call(t,e.value)}).join(", ");return ze[e](n)},We=n(403),$e=n(56),Ye=n(324),Ve=k()(ve.a,Ce()("backgroundColor")),Ke=function(e){var t=function(t){function n(){var e,t,r,i,o;Object(d.a)(this,n);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(o=Object(p.a)(this,(e=Object(h.a)(n)).call.apply(e,u()(t=[this]).call(t,s)))).handleAnimationEnd=l()(r=o.handleAnimationEnd).call(r,Object(m.a)(o)),o.handleTitleChange=l()(i=o.handleTitleChange).call(i,Object(m.a)(o)),o.state={isVisible:!o.props.animateBlockEntrance},o}return Object(g.a)(n,t),Object(f.a)(n,[{key:"handleAnimationEnd",value:function(){this.setState({isVisible:!0})}},{key:"handleTitleChange",value:function(e){var t=this.props,n=t.lessonId,r=t.blockId,i=t.items,o={title:e};Object(Ue.a)(Object(qe.i)({lessonId:n,itemId:r,items:i,payload:o}))}},{key:"render",value:function(){var t,n,r=this.props,i=r.animateBlockEntrance,o=r.blockId,a=r.editable,s=r.isLearner,l=r.items,c=r.itemsLabel,d=r.lessonId,f=r.settings,p=r.title,h=r.valuesLabel,m=r.variant,g=this.state.isVisible,v=p?u()(t="chartTitle-".concat(d,"-")).call(t,o):null,b=u()(n="chartDesc-".concat(d,"-")).call(n,o),_=He(m,l),w=Ve(f),E=z()("block-chart__container",{"block-chart__container--darkTheme":w});return y.a.createElement(We.a,{settings:f,type:"chart"},y.a.createElement("div",{"aria-describedby":b,"aria-labelledby":v,className:E,role:"img"},y.a.createElement("div",{className:"block-chart__row"},y.a.createElement("div",{className:"block-chart__rowInner"},(!a&&p||a)&&y.a.createElement("h2",{className:"block-chart__title brand--head"},y.a.createElement(Ye.a,{locked:!a,value:p,placeholder:"Add a chart title...",onChange:this.handleTitleChange})),y.a.createElement($e.a,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:i,animateIn:"fadeIn",initiallyVisible:!i,isLearner:s},y.a.createElement("div",{className:"block-chart__chart"},y.a.createElement(e,{hasDarkBgColor:w,isVisible:g,items:l,itemsLabel:c,settings:f,shouldAnimate:i,valuesLabel:h,variant:m}))),y.a.createElement("p",{className:"visually-hidden",id:b},_)))))}}]),n}(v.PureComponent);return t.displayName="ChartWrap(".concat(oe(e),")"),t},Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),Xe=function(e){function t(){var e,n,r,i,o;Object(d.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(o=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleEvent=l()(r=o.handleEvent).call(r,Object(m.a)(o)),o.handleResize=l()(i=o.handleResize).call(i,Object(m.a)(o)),o.wrapRef=Object(v.createRef)(),o.state={labelYTop:"50%"},o}return Object(g.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.resizeObserver=new b.a(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=this.props,n=t.activeIndex,r=t.settings,i=t.variant;return X({activeIndex:n,settings:r,values:e,variant:i})}},{key:"buildOptions",value:function(e){var t=this.props,n=t.hasDarkBgColor,r=t.isDesktop,i=t.shouldAnimate;return we({hasDarkBgColor:n,isDesktop:r,onEvent:this.handleEvent,shouldAnimate:i,values:e})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(C()(null,[0,"_index"],t))}},{key:"handleResize",value:function(){this.props.onResize(),this.setLabelYTop()}},{key:"setLabelYTop",value:function(){var e=this.props.forwardedRef.current.chartInstance;if(e){var t=C()({},["scales","y-axis-0"],e),n=t.bottom,r=t.top;S()(n)&&S()(r)&&this.setState({labelYTop:"".concat((n+r)/2,"px")})}}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isDesktop,o=e.isVisible,s=e.items,l=e.itemsLabel,c=e.onEvent,u=e.search,d=e.valuesLabel,f=e.variant,p=this.state.labelYTop,h=De(80,l,u),m=De(30,d,u),g=Pe(s),v=r?[]:a()(Ge).call(Ge,0,s.length),b=r?g.labels:v,_=o?i()(g):Object(G.g)(0,s.length),w=this.buildOptions(_),E=this.buildDataset(_),k="line"===f?M.b:M.a;return y.a.createElement("div",{className:"block-chart__cartesian"},y.a.createElement("div",{className:"block-chart__cartesianChart",ref:this.wrapRef},y.a.createElement(k,{data:{labels:b,datasets:[E]},options:w,ref:n}),m&&Object(ye.c)(m)&&y.a.createElement("div",{className:"block-chart__cartesianLabelY",style:{top:p}},m)),h&&Object(ye.c)(h)&&y.a.createElement("div",{className:"block-chart__cartesianLabelX"},h),!r&&y.a.createElement(Y,{activeIndex:t,labels:g.labels,letters:v,onEvent:c,values:_}))}}]),t}(v.PureComponent),Qe=w()({search:C()("",["search","term"])}),Ze=k()(Ke,Fe,I()("(min-width: 960px)","isDesktop","Desktop"),Be,A.a,Object(j.b)(Qe))(Xe),Je=(n(2337),n(2338),n(2339),function(e){function t(){var e,n,r,i,o;Object(d.a)(this,t);for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];return(o=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,s)))).handleMouseEnter=l()(r=o.handleMouseEnter).call(r,Object(m.a)(o)),o.handleMouseLeave=l()(i=o.handleMouseLeave).call(i,Object(m.a)(o)),o}return Object(g.a)(t,e),Object(f.a)(t,[{key:"handleMouseEnter",value:function(){var e=this.props,t=e.index;(0,e.onEvent)(t)}},{key:"handleMouseLeave",value:function(){(0,this.props.onEvent)(null)}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.backgroundColor,r=e.index,i=e.text,o=!W()(t)&&t!==r,a=z()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":o});return y.a.createElement("div",{className:a,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},y.a.createElement("span",{className:"block-chart__circleLegendSymbol",style:{backgroundColor:n}}),y.a.createElement("span",{className:"block-chart__circleLegendText"},i))}}]),t}(v.PureComponent)),et=Object(v.memo)(function(e){var t=e.activeIndex,n=e.colors,r=e.labels,i=e.onEvent,o=U()(r,n);return F()(o)?null:y.a.createElement("div",{className:"block-chart__circleLegend"},D()(o).call(o,function(e,n){var r=Object(L.a)(e,2),o=r[0],a=r[1];return y.a.createElement(Je,{activeIndex:t,backgroundColor:a,index:n,key:o,onEvent:i,text:o})}))}),tt=n(71),nt=n(229),rt=n.n(nt),it=n(178),ot=n.n(it),at=n(592),st=n.n(at),lt=n(232),ct=n.n(lt)()(st()(ot.a,0),"value"),ut=function(e){var t=rt()(e).call(e,ct),n=Pe(t),r=D()(t).call(t,Ce()("color"));return Object(tt.a)({},n,{colors:r})},dt=(n(2340),n(615)),ft=n.n(dt),pt=function(e){var t=C()(0,["dataIndex"],e),n=C()({},["dataset"],e),r=C()("#000",["backgroundColor",t],n);return Object(ve.a)(r)?"#fff":"#313537"},ht=function(e,t,n){return"numeric"===e?String(t):Object(be.b)(t/ft()(n.dataset.data))},mt=function(e,t,n){var r,i=C()(0,[0,"index"],t),o=C()("",["labels",i],n),a=C()([1],["datasets",0,"data"],n),s=a[i],l="numeric"===e?String(s):Object(be.b)(s/ft()(a));return u()(r="".concat(o,": ")).call(r,l)},gt=function(e,t){var n=C()(0,["dataIndex"],t),r=C()([1],["dataset","data"],t),i=r[n],o=W()(e)&&i/ft()(r)>=.06;return e===n||o},vt=function(e){var t=e.activeIndex,n=e.onEvent,r=e.settings.valueType,i=e.shouldAnimate;return{animation:{animateRotate:i,duration:i?1e3:0},legend:!1,onClick:n,onHover:n,maintainAspectRatio:!1,plugins:{datalabels:{color:pt,display:l()(gt).call(gt,null,t),font:{size:12,style:"bold"},formatter:l()(ht).call(ht,null,r)}},responsive:!1,rotation:.25*Math.PI,tooltips:{backgroundColor:"#000",callbacks:{label:function(){return null},title:l()(mt).call(mt,null,r)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFontColor:"#fff",titleFontStyle:"normal",titleMarginBottom:0,titleSpacing:0,xAlign:"center",xPadding:14,yAlign:"bottom",yPadding:10}}},yt=function(e){var t=e.activeIndex,n=e.colors,r=e.settings.backgroundColor,o=i()(e),a=W()(t)?n:D()(n).call(n,function(e,n){return n===t?e:K()(e,r||"#fff",.5)});return{backgroundColor:a,hoverBackgroundColor:a,borderWidth:0,data:o}},bt=function(e){function t(){var e,n,r,i;Object(d.a)(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return(i=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,a)))).handleEvent=l()(r=i.handleEvent).call(r,Object(m.a)(i)),i.wrapRef=Object(v.createRef)(),i}return Object(g.a)(t,e),Object(f.a)(t,[{key:"componentDidMount",value:function(){this.resizeObserver=new b.a(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}},{key:"componentWillUnmount",value:function(){this.resizeObserver.unobserve(this.wrapRef.current)}},{key:"buildDataset",value:function(e){var t=e.colors,n=i()(e),r=this.props,o=r.activeIndex,a=r.settings;return yt({activeIndex:o,colors:t,settings:a,values:n})}},{key:"buildOptions",value:function(){var e=this.props,t=e.activeIndex,n=e.settings,r=e.shouldAnimate;return vt({activeIndex:t,onEvent:this.handleEvent,settings:n,shouldAnimate:r})}},{key:"handleEvent",value:function(e,t){return(0,this.props.onEvent)(C()(null,[0,"_index"],t))}},{key:"render",value:function(){var e=this.props,t=e.activeIndex,n=e.forwardedRef,r=e.isVisible,o=e.items,a=e.onEvent,s=ut(o),l=s.colors,c=s.labels,u=i()(s),d=r?u:Object(G.g)(0,o.length),f=this.buildOptions(),p=this.buildDataset({colors:l,values:d});return y.a.createElement("div",{className:"block-chart__circle"},y.a.createElement("div",{className:"block-chart__circleChart",ref:this.wrapRef},y.a.createElement(M.c,{data:{labels:c,datasets:[p]},options:f,ref:n})),y.a.createElement(et,{activeIndex:t,colors:l,labels:c,onEvent:a}))}}]),t}(v.PureComponent),_t=k()(Ke,Fe,Be,A.a)(bt);n.d(t,"a",function(){return Ze}),n.d(t,"b",function(){return _t})},function(e,t,n){e.exports=!n(125)&&!n(63)(function(){return 7!=Object.defineProperty(n(619)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(428)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(764),i=n(74).WeakMap;e.exports="function"==typeof i&&/native code/.test(r.call(i))},function(e,t,n){var r=n(142),i=n(621),o=n(174),a=n(133);e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){var r=n(142),i=n(188),o=n(497)(!1),a=n(430);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){e.exports=!n(63)(function(){return!String(Symbol())})},function(e,t,n){t.f=n(110)},function(e,t,n){var r=n(125),i=n(133),o=n(102),a=n(370);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(74).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(188),i=n(338).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(143),i=n(307),o=n(117);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-l,a-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(e,t,n){"use strict";var r=n(371),i=n(117),o=n(309),a=function(e,t,n,s,l,c,u,d){for(var f,p=l,h=0,m=!!u&&o(u,d,3);h<s;){if(h in n){if(f=m?m(n[h],h,t):n[h],c>0&&r(f))p=a(e,t,f,i(f.length),p,c-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[p]=f}p++}h++}return p};e.exports=a},function(e,t,n){"use strict";var r=n(309),i=n(143),o=n(776),a=n(625),s=n(117),l=n(340),c=n(435);e.exports=function(e){var t,n,u,d,f=i(e),p="function"==typeof this?this:Array,h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m,v=0,y=c(f);if(g&&(m=r(m,h>2?arguments[2]:void 0,2)),null==y||p==Array&&a(y))for(n=new p(t=s(f.length));t>v;v++)l(n,v,g?m(f[v],v):f[v]);else for(d=y.call(f),n=new p;!(u=d.next()).done;v++)l(n,v,g?o(d,m,[u.value,v],!0):u.value);return n.length=v,n}},function(e,t,n){var r=n(102);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(778).IteratorPrototype,i=n(339),o=n(337),a=n(243),s=n(434),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";var r,i,o,a=n(244),s=n(163),l=n(142),c=n(336),u=n(110)("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):d=!0),null==r&&(r={}),c||l(r,u)||s(r,u,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(97),i=n(102);e.exports=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},function(e,t,n){var r=n(204),i=n(117);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(133).f,i=n(339),o=n(373),a=n(309),s=n(310),l=n(438),c=n(626),u=n(372),d=n(125),f=n(341).fastKey,p=n(203),h=p.set,m=p.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),h(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[c],e,n)}),p=m(t),g=function(e,t,n){var r,i,o=p(e),a=v(e,t);return a?a.value=n:(o.last=a={index:i=f(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},v=function(e,t){var n,r=p(e),i=f(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(u.prototype,{clear:function(){for(var e=p(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=p(this),n=v(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=p(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return p(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);c(e,t,function(e,t){h(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(97),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){"use strict";var r=n(370),i=n(498),o=n(427),a=n(143),s=n(495),l=Object.assign;e.exports=!l||n(63)(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=r(l({},t)).join("")})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=i.f,d=o.f;l>c;)for(var f,p=s(arguments[c++]),h=u?r(p).concat(u(p)):r(p),m=h.length,g=0;m>g;)d.call(p,f=h[g++])&&(n[f]=p[f]);return n}:l},function(e,t,n){var r=n(370),i=n(188),o=n(427).f;e.exports=function(e,t){for(var n,a=i(e),s=r(a),l=s.length,c=0,u=[];l>c;)o.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r,i,o,a,s,l,c,u=n(74),d=n(174).f,f=n(219),p=n(633).set,h=n(634),m=u.MutationObserver||u.WebKitMutationObserver,g=u.process,v=u.Promise,y="process"==f(g),b=d(u,"queueMicrotask"),_=b&&b.value;_||(r=function(){var e,t;for(y&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},y?a=function(){g.nextTick(r)}:m&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(h)?(s=!0,l=document.createTextNode(""),new m(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),a=function(){c.then(r)}):a=function(){p.call(u,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(102),i=n(97),o=n(789);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(220),i=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},function(e,t,n){"use strict";var r=n(508),i=n(203),o=n(626),a=i.set,s=i.getterFor("String Iterator");o(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(117),i=n(632),o=n(202);e.exports=function(e,t,n,a){var s,l,c=String(o(e)),u=c.length,d=void 0===n?" ":String(n),f=r(t);return f<=u||""==d?c:(s=f-u,(l=i.call(d,Math.ceil(s/d.length))).length>s&&(l=l.slice(0,s)),a?l+c:c+l)}},function(e,t,n){var r=n(634);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){var r=n(204);e.exports=function(e,t){var n=r(e);if(n<0||n%t)throw RangeError("Wrong offset");return n}},function(e,t,n){var r=n(143),i=n(117),o=n(435),a=n(625),s=n(309),l=n(111).aTypedArrayConstructor;e.exports=function(e){var t,n,c,u,d,f=r(e),p=arguments.length,h=p>1?arguments[1]:void 0,m=void 0!==h,g=o(f);if(null!=g&&!a(g))for(d=g.call(f),f=[];!(u=d.next()).done;)f.push(u.value);for(m&&p>2&&(h=s(h,arguments[2],2)),n=i(f.length),c=new(l(this))(n),t=0;n>t;t++)c[t]=m?h(f[t],t):f[t];return c}},function(e,t,n){"use strict";var r=n(373),i=n(341).getWeakData,o=n(102),a=n(97),s=n(310),l=n(438),c=n(175),u=n(142),d=n(203),f=d.set,p=d.getterFor,h=c(5),m=c(6),g=0,v=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},b=function(e,t){return h(e.entries,function(e){return e[0]===t})};y.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=m(this.entries,function(t){return t[0]===e});return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,c){var d=e(function(e,r){s(e,d,t),f(e,{type:t,id:g++,frozen:void 0}),null!=r&&l(r,e[c],e,n)}),h=p(t),m=function(e,t,n){var r=h(e),a=i(o(t),!0);return!0===a?v(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).delete(e):n&&u(n,t.id)&&delete n[t.id]},has:function(e){var t=h(this);if(!a(e))return!1;var n=i(e);return!0===n?v(t).has(e):n&&u(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=h(this);if(a(e)){var n=i(e);return!0===n?v(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return m(this,e,t)}}:{add:function(e){return m(this,e,!0)}}),d}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){var r=n(336),i=n(110)("iterator");e.exports=!n(63)(function(){var e=new URL("b?e=1","http://a"),t=e.searchParams;return e.pathname="c%20d",r&&!e.toJSON||!t.sort||"http://a/c%20d?e=1"!==e.href||"1"!==t.get("e")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash})},function(e,t,n){"use strict";n(501);var r=n(797),i=n(189),o=n(373),a=n(777),s=n(203),l=n(310),c=n(142),u=n(309),d=n(102),f=n(97),p=n(1494),h=n(435),m=n(110)("iterator"),g=s.set,v=s.getterFor("URLSearchParams"),y=s.getterFor("URLSearchParamsIterator"),b=/\+/g,_=Array(4),w=function(e){return _[e-1]||(_[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},E=function(e){try{return decodeURIComponent(e)}catch(t){return e}},k=function(e){for(var t=e.replace(b," "),n=4;n;)t=t.replace(w(n--),E);return t},x=/[!'()~]|%20/g,S={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},T=function(e){return S[e]},C=function(e){return encodeURIComponent(e).replace(x,T)},O=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:k(r.shift()),value:k(r.join("="))}));return e},A=function(e){this.entries.length=0,O(this.entries,e)},N=function(e,t){if(e<t)throw TypeError("Not enough arguments")},I=a(function(e,t){g(this,{type:"URLSearchParamsIterator",iterator:p(v(e).entries),kind:t})},"Iterator",function(){var e=y(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),M=function(){l(this,M,"URLSearchParams");var e,t,n,r,i,o,a,s=arguments.length>0?arguments[0]:void 0,u=[];if(g(this,{type:"URLSearchParams",entries:u,updateURL:null,updateSearchParams:A}),void 0!==s)if(f(s))if("function"==typeof(e=h(s)))for(t=e.call(s);!(n=t.next()).done;){if((i=(r=p(d(n.value))).next()).done||(o=r.next()).done||!r.next().done)throw TypeError("Expected sequence with length 2");u.push({key:i.value+"",value:o.value+""})}else for(a in s)c(s,a)&&u.push({key:a,value:s[a]+""});else O(u,"string"==typeof s?"?"===s.charAt(0)?s.slice(1):s:s+"")},j=M.prototype;o(j,{append:function(e,t){N(arguments.length,2);var n=v(this);n.entries.push({key:e+"",value:t+""}),n.updateURL&&n.updateURL()},delete:function(e){N(arguments.length,1);for(var t=v(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL&&t.updateURL()},get:function(e){N(arguments.length,1);for(var t=v(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){N(arguments.length,1);for(var t=v(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){N(arguments.length,1);for(var t=v(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){N(arguments.length,1);for(var n,r=v(this),i=r.entries,o=!1,a=e+"",s=t+"",l=0;l<i.length;l++)(n=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL&&r.updateURL()},sort:function(){var e,t,n,r=v(this),i=r.entries,o=i.slice();for(i.length=0,t=0;t<o.length;t++){for(e=o[t],n=0;n<t;n++)if(i[n].key>e.key){i.splice(n,0,e);break}n===t&&i.push(e)}r.updateURL&&r.updateURL()},forEach:function(e){for(var t,n=v(this).entries,r=u(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new I(this,"keys")},values:function(){return new I(this,"values")},entries:function(){return new I(this,"entries")}},{enumerable:!0}),i(j,m,j.entries),i(j,"toString",function(){for(var e,t=v(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(C(e.key)+"="+C(e.value));return n.join("&")},{enumerable:!0}),n(243)(M,"URLSearchParams"),n(24)({global:!0,forced:!r},{URLSearchParams:M}),e.exports={URLSearchParams:M,getState:v}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=u;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",d="suspendedYield",f="executing",p="completed",h={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(O([])));_&&_!==n&&r.call(_,o)&&(y=_);var w=v.prototype=m.prototype=Object.create(y);function E(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,i){function o(){return new Promise(function(t,o){!function t(n,i,o,a){var s=c(e[n],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},function(e){return t("throw",e,o,a)})}a(s.arg)}(n,i,t,o)})}return t=t?t.then(o,o):o()}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function O(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:A}}function A(){return{value:t,done:!0}}return g.prototype=w.constructor=v,v.constructor=g,v[s]=g.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(k.prototype),k.prototype[a]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,i){var o=new k(l(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},E(w),w[s]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=O,C.prototype={constructor:C,reset:function(e){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(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var u=0;u<a.length;u++)o.call(n,a[u])&&(s[a[u]]=n[a[u]])}}return s}},function(e,t,n){var r=n(176),i=n(137),o=n(642);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(137),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(144),i=n(1512),o=r["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,n){var r=n(646);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t){},function(e,t,n){var r=n(803),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){"use strict";var r=n(70),i=n(808),o=n(440),a=n(652),s=n(346),l=n(246),c=n(377),u=n(134),d=n(281),f=n(347),p=n(809),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v=function(){return this};e.exports=function(e,t,n,u,p,y,b){i(n,t,u);var _,w,E,k=function(e){if(e===p&&O)return O;if(!m&&e in T)return T[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},x=t+" Iterator",S=!1,T=e.prototype,C=T[g]||T["@@iterator"]||p&&T[p],O=!m&&C||k(p),A="Array"==t&&T.entries||C;if(A&&(_=o(A.call(new e)),h!==Object.prototype&&_.next&&(d||o(_)===h||(a?a(_,h):"function"!=typeof _[g]&&l(_,g,v)),s(_,x,!0,!0),d&&(f[x]=v))),"values"==p&&C&&"values"!==C.name&&(S=!0,O=function(){return C.call(this)}),d&&!b||T[g]===O||l(T,g,O),f[t]=O,p)if(w={values:k("values"),keys:y?O:k("keys"),entries:k("entries")},b)for(E in w)!m&&!S&&E in T||c(T,E,w[E]);else r({target:t,proto:!0,forced:m||S},w);return w}},function(e,t,n){"use strict";var r=n(809).IteratorPrototype,i=n(441),o=n(343),a=n(346),s=n(347),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){"use strict";var r,i,o,a=n(440),s=n(246),l=n(193),c=n(134),u=n(281),d=c("iterator"),f=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(r=i):f=!0),null==r&&(r={}),u||l(r,d)||s(r,d,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},function(e,t,n){var r=n(137);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(193),i=n(245),o=n(648).indexOf,a=n(516);e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(282);e.exports=r("document","documentElement")},function(e,t,n){var r=n(144);e.exports=r.Promise},function(e,t,n){var r=n(377);e.exports=function(e,t,n){for(var i in t)n&&n.unsafe&&e[i]?e[i]=t[i]:r(e,i,t[i],n);return e}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(134),i=n(347),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(205);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(134)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r=n(205),i=n(279),o=n(134)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(144),s=n(137),l=n(344),c=n(375),u=n(812),d=n(642),f=n(821),p=a.location,h=a.setImmediate,m=a.clearImmediate,g=a.process,v=a.MessageChannel,y=a.Dispatch,b=0,_={},w=function(e){if(_.hasOwnProperty(e)){var t=_[e];delete _[e],t()}},E=function(e){return function(){w(e)}},k=function(e){w(e.data)},x=function(e){a.postMessage(e+"",p.protocol+"//"+p.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return _[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},m=function(e){delete _[e]},"process"==l(g)?r=function(e){g.nextTick(E(e))}:y&&y.now?r=function(e){y.now(E(e))}:v&&!f?(o=(i=new v).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(x)||"file:"===p.protocol?r="onreadystatechange"in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),w(e)}}:function(e){setTimeout(E(e),0)}:(r=x,a.addEventListener("message",k,!1))),e.exports={set:h,clear:m}},function(e,t,n){var r=n(653);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(205),i=n(164),o=n(444);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(70),i=n(279),o=n(444),a=n(520),s=n(518);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,l=n.reject,c=a(function(){var n=i(t.resolve),o=[],a=0,l=1;s(e,function(e){var i=a++,s=!1;o.push(void 0),l++,n.call(t,e).then(function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--l||r(o))},function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--l||r(o))})}),--l||r(o)});return c.error&&l(c.value),n.promise}})},function(e,t,n){var r=n(825),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},o={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0,stop:!0,polyline:!0,polygon:!0},s=/\s|\//;function l(e,t){this._options=t||{},this._cbs=e||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(r=this._options.Tokenizer),this._tokenizer=new r(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}n(247)(l,n(387).EventEmitter),l.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},l.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},l.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&e in o)for(var t;(t=this._stack[this._stack.length-1])in o[e];this.onclosetag(t));!this._options.xmlMode&&e in a||this._stack.push(e),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},l.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},l.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),!this._stack.length||e in a&&!this._options.xmlMode)this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},l.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},l.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},l.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},l.prototype.onattribdata=function(e){this._attribvalue+=e},l.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},l.prototype._getInstructionName=function(e){var t=e.search(s),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},l.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},l.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},l.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},l.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},l.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},l.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(e){this.reset(),this.end(e)},l.prototype.write=function(e){this._tokenizer.write(e)},l.prototype.end=function(e){this._tokenizer.end(e)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,e.exports=l},function(e,t,n){e.exports=ye;var r,i,o=n(1532),a=n(1534),s=n(1535),l=n(1536),c=0,u=c++,d=c++,f=c++,p=c++,h=c++,m=c++,g=c++,v=c++,y=c++,b=c++,_=c++,w=c++,E=c++,k=c++,x=c++,S=c++,T=c++,C=c++,O=c++,A=c++,N=c++,I=c++,M=c++,j=c++,L=c++,P=c++,D=c++,R=c++,F=c++,B=c++,U=c++,q=c++,z=c++,H=c++,W=c++,$=c++,Y=c++,V=c++,K=c++,G=c++,X=c++,Q=c++,Z=c++,J=c++,ee=c++,te=c++,ne=c++,re=c++,ie=c++,oe=c++,ae=c++,se=c++,le=c++,ce=c++,ue=c++,de=0,fe=de++,pe=de++,he=de++;function me(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function ge(e,t,n){var r=e.toLowerCase();return e===r?function(e){e===r?this._state=t:(this._state=n,this._index--)}:function(i){i===r||i===e?this._state=t:(this._state=n,this._index--)}}function ve(e,t){var n=e.toLowerCase();return function(r){r===n||r===e?this._state=t:(this._state=f,this._index--)}}function ye(e,t){this._state=u,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=u,this._special=fe,this._cbs=t,this._running=!0,this._ended=!1,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}ye.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=d,this._sectionStart=this._index):this._decodeEntities&&this._special===fe&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=u,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeTagName=function(e){"/"===e?this._state=h:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||this._special!==fe||me(e)?this._state=u:"!"===e?(this._state=x,this._sectionStart=this._index+1):"?"===e?(this._state=T,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?f:U,this._sectionStart=this._index)},ye.prototype._stateInTagName=function(e){("/"===e||">"===e||me(e))&&(this._emitToken("onopentagname"),this._state=v,this._index--)},ye.prototype._stateBeforeCloseingTagName=function(e){me(e)||(">"===e?this._state=u:this._special!==fe?"s"===e||"S"===e?this._state=q:(this._state=u,this._index--):(this._state=m,this._sectionStart=this._index))},ye.prototype._stateInCloseingTagName=function(e){(">"===e||me(e))&&(this._emitToken("onclosetag"),this._state=g,this._index--)},ye.prototype._stateAfterCloseingTagName=function(e){">"===e&&(this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=u,this._sectionStart=this._index+1):"/"===e?this._state=p:me(e)||(this._state=y,this._sectionStart=this._index)},ye.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=u,this._sectionStart=this._index+1):me(e)||(this._state=v,this._index--)},ye.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||me(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=b,this._index--)},ye.prototype._stateAfterAttributeName=function(e){"="===e?this._state=_:"/"===e||">"===e?(this._cbs.onattribend(),this._state=v,this._index--):me(e)||(this._cbs.onattribend(),this._state=y,this._sectionStart=this._index)},ye.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=w,this._sectionStart=this._index+1):"'"===e?(this._state=E,this._sectionStart=this._index+1):me(e)||(this._state=k,this._sectionStart=this._index,this._index--)},ye.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=v):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=v):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateInAttributeValueNoQuotes=function(e){me(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=v,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=ae,this._sectionStart=this._index)},ye.prototype._stateBeforeDeclaration=function(e){this._state="["===e?I:"-"===e?C:S},ye.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=u,this._sectionStart=this._index+1)},ye.prototype._stateBeforeComment=function(e){"-"===e?(this._state=O,this._sectionStart=this._index+1):this._state=S},ye.prototype._stateInComment=function(e){"-"===e&&(this._state=A)},ye.prototype._stateAfterComment1=function(e){this._state="-"===e?N:O},ye.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"-"!==e&&(this._state=O)},ye.prototype._stateBeforeCdata1=ge("C",M,S),ye.prototype._stateBeforeCdata2=ge("D",j,S),ye.prototype._stateBeforeCdata3=ge("A",L,S),ye.prototype._stateBeforeCdata4=ge("T",P,S),ye.prototype._stateBeforeCdata5=ge("A",D,S),ye.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=R,this._sectionStart=this._index+1):(this._state=S,this._index--)},ye.prototype._stateInCdata=function(e){"]"===e&&(this._state=F)},ye.prototype._stateAfterCdata1=(r="]",i=B,function(e){e===r&&(this._state=i)}),ye.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=u,this._sectionStart=this._index+1):"]"!==e&&(this._state=R)},ye.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=z:"t"===e||"T"===e?this._state=Z:(this._state=f,this._index--)},ye.prototype._stateBeforeSpecialEnd=function(e){this._special!==pe||"c"!==e&&"C"!==e?this._special!==he||"t"!==e&&"T"!==e?this._state=u:this._state=ne:this._state=V},ye.prototype._stateBeforeScript1=ve("R",H),ye.prototype._stateBeforeScript2=ve("I",W),ye.prototype._stateBeforeScript3=ve("P",$),ye.prototype._stateBeforeScript4=ve("T",Y),ye.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||me(e))&&(this._special=pe),this._state=f,this._index--},ye.prototype._stateAfterScript1=ge("R",K,u),ye.prototype._stateAfterScript2=ge("I",G,u),ye.prototype._stateAfterScript3=ge("P",X,u),ye.prototype._stateAfterScript4=ge("T",Q,u),ye.prototype._stateAfterScript5=function(e){">"===e||me(e)?(this._special=fe,this._state=m,this._sectionStart=this._index-6,this._index--):this._state=u},ye.prototype._stateBeforeStyle1=ve("Y",J),ye.prototype._stateBeforeStyle2=ve("L",ee),ye.prototype._stateBeforeStyle3=ve("E",te),ye.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||me(e))&&(this._special=he),this._state=f,this._index--},ye.prototype._stateAfterStyle1=ge("Y",re,u),ye.prototype._stateAfterStyle2=ge("L",ie,u),ye.prototype._stateAfterStyle3=ge("E",oe,u),ye.prototype._stateAfterStyle4=function(e){">"===e||me(e)?(this._special=fe,this._state=m,this._sectionStart=this._index-5,this._index--):this._state=u},ye.prototype._stateBeforeEntity=ge("#",se,le),ye.prototype._stateBeforeNumericEntity=ge("X",ue,ce),ye.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?l:a;t.hasOwnProperty(e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},ye.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(s.hasOwnProperty(n))return this._emitPartial(s[n]),void(this._sectionStart+=t+1);t--}},ye.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==u?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},ye.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var r=this._buffer.substring(n,this._index),i=parseInt(r,t);this._emitPartial(o(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},ye.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},ye.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},ye.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===u?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},ye.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},ye.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);this._state===u?this._stateText(e):this._state===d?this._stateBeforeTagName(e):this._state===f?this._stateInTagName(e):this._state===h?this._stateBeforeCloseingTagName(e):this._state===m?this._stateInCloseingTagName(e):this._state===g?this._stateAfterCloseingTagName(e):this._state===p?this._stateInSelfClosingTag(e):this._state===v?this._stateBeforeAttributeName(e):this._state===y?this._stateInAttributeName(e):this._state===b?this._stateAfterAttributeName(e):this._state===_?this._stateBeforeAttributeValue(e):this._state===w?this._stateInAttributeValueDoubleQuotes(e):this._state===E?this._stateInAttributeValueSingleQuotes(e):this._state===k?this._stateInAttributeValueNoQuotes(e):this._state===x?this._stateBeforeDeclaration(e):this._state===S?this._stateInDeclaration(e):this._state===T?this._stateInProcessingInstruction(e):this._state===C?this._stateBeforeComment(e):this._state===O?this._stateInComment(e):this._state===A?this._stateAfterComment1(e):this._state===N?this._stateAfterComment2(e):this._state===I?this._stateBeforeCdata1(e):this._state===M?this._stateBeforeCdata2(e):this._state===j?this._stateBeforeCdata3(e):this._state===L?this._stateBeforeCdata4(e):this._state===P?this._stateBeforeCdata5(e):this._state===D?this._stateBeforeCdata6(e):this._state===R?this._stateInCdata(e):this._state===F?this._stateAfterCdata1(e):this._state===B?this._stateAfterCdata2(e):this._state===U?this._stateBeforeSpecial(e):this._state===q?this._stateBeforeSpecialEnd(e):this._state===z?this._stateBeforeScript1(e):this._state===H?this._stateBeforeScript2(e):this._state===W?this._stateBeforeScript3(e):this._state===$?this._stateBeforeScript4(e):this._state===Y?this._stateBeforeScript5(e):this._state===V?this._stateAfterScript1(e):this._state===K?this._stateAfterScript2(e):this._state===G?this._stateAfterScript3(e):this._state===X?this._stateAfterScript4(e):this._state===Q?this._stateAfterScript5(e):this._state===Z?this._stateBeforeStyle1(e):this._state===J?this._stateBeforeStyle2(e):this._state===ee?this._stateBeforeStyle3(e):this._state===te?this._stateBeforeStyle4(e):this._state===ne?this._stateAfterStyle1(e):this._state===re?this._stateAfterStyle2(e):this._state===ie?this._stateAfterStyle3(e):this._state===oe?this._stateAfterStyle4(e):this._state===ae?this._stateBeforeEntity(e):this._state===se?this._stateBeforeNumericEntity(e):this._state===le?this._stateInNamedEntity(e):this._state===ce?this._stateInNumericEntity(e):this._state===ue?this._stateInHexEntity(e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},ye.prototype.pause=function(){this._running=!1},ye.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},ye.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},ye.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},ye.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);this._state===R||this._state===F||this._state===B?this._cbs.oncdata(e):this._state===O||this._state===A||this._state===N?this._cbs.oncomment(e):this._state!==le||this._xmlMode?this._state!==ce||this._xmlMode?this._state!==ue||this._xmlMode?this._state!==f&&this._state!==v&&this._state!==_&&this._state!==b&&this._state!==y&&this._state!==E&&this._state!==w&&this._state!==k&&this._state!==m&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},ye.prototype.reset=function(){ye.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},ye.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},ye.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},ye.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},ye.prototype._emitPartial=function(e){this._baseState!==u?this._cbs.onattribdata(e):this._cbs.ontext(e)}},function(e,t){var n=e.exports={get firstChild(){var e=this.children;return e&&e[0]||null},get lastChild(){var e=this.children;return e&&e[e.length-1]||null},get nodeType(){return i[this.type]||i.element}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},i={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(e){var t=r[e];Object.defineProperty(n,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){e.exports=s;var r=n(824),i=n(1541).Writable||n(1555).Writable,o=n(658).StringDecoder,a=n(349).Buffer;function s(e,t){var n=this._parser=new r(e,t),a=this._decoder=new o;i.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end(a.end())})}n(247)(s,i),i.prototype._write=function(e,t,n){e instanceof a&&(e=this._decoder.write(e)),this._parser.write(e),n()}},function(e,t,n){"use strict";(function(t,r){var i=n(522);e.exports=b;var o,a=n(829);b.ReadableState=y;n(387).EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n(830),c=n(656).Buffer,u=t.Uint8Array||function(){};var d=n(447);d.inherits=n(247);var f=n(1544),p=void 0;p=f&&f.debuglog?f.debuglog("stream"):function(){};var h,m=n(1545),g=n(831);d.inherits(b,l);var v=["error","close","destroy","pause","resume"];function y(e,t){o=o||n(350),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(658).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(350),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function _(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}(e,a)):(i||(o=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):T(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),T(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=c.from(e,t),t=""),n=!0),_(this,e,t,!1,n)},b.prototype.unshift=function(e){return _(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(658).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var E=8388608;function k(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),N(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i(C,e,t))}function C(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function O(e){p("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i(j,t,e))}function j(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&M(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function c(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",v),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){p("onend"),e.end()}o.endEmitted?i(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",d);var f=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==L(o.pipes,e))&&!f&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){p("onerror",t),b(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",y),b()}function y(){p("onfinish"),e.removeListener("close",v),b()}function b(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",g),e.once("close",v),e.once("finish",y),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=L(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i(O,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i(A,e,t))}(this,e)),this},b.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this._readableState,n=!1,r=this;for(var i in e.on("end",function(){if(p("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(i){(p("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i)||(t.objectMode||i&&i.length)&&(r.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],r.emit.bind(r,v[o]));return r._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},r},b._fromList=I}).call(this,n(69),n(284))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(387).EventEmitter},function(e,t,n){"use strict";var r=n(522);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;o||a?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r(i,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";e.exports=a;var r=n(350),i=n(447);function o(e){this.afterTransform=function(t,n){return function(e,t,n){var r=e._transformState;r.transforming=!1;var i=r.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=n&&e.push(n);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState=new o(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,n){s(t,e,n)}):s(t)})}function s(e,t,n){if(t)return e.emit("error",t);null!=n&&e.push(n);var r=e._writableState,i=e._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(247),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(834)),o=r(n(1562)),a=r(n(835)),s=r(n(1563));function l(e){var t=Object.keys(e).join("|"),n=u(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(a.default),t.decodeHTMLStrict=l(i.default);var c=function(e,t){return e<t?1:-1};function u(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(o.default).sort(c),t=Object.keys(i.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,l)}}()},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=l(r(n(835)).default),o=c(i);t.encodeXML=h(i,o);var a=l(r(n(834)).default),s=c(a);function l(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function c(e){var t=[],n=[];return Object.keys(e).forEach(function(e){return 1===e.length?t.push("\\"+e):n.push(e)}),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=h(a,s);var u=/[^\0-\x7F]/g,d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function f(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function p(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function h(e,t){return function(n){return n.replace(t,function(t){return e[t]}).replace(d,p).replace(u,f)}}var m=c(i);t.escape=function(e){return e.replace(m,f).replace(d,p).replace(u,f)}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(1579)),i=a(n(839)),o=a(n(1580));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r,i,o,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),a&&(this.plugin=a),void 0!==n&&void 0!==r&&(this.line=n,this.column=r),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var n=this.source;void 0===e&&(e=r.default.stdout),e&&(n=(0,o.default)(n));var a=n.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,a.length),c=String(l).length;function u(t){return e&&i.default.red?i.default.red.bold(t):t}function d(t){return e&&i.default.gray?i.default.gray(t):t}return a.slice(s,l).map(function(e,n){var r=s+1+n,i=" "+(" "+r).slice(-c)+" | ";if(r===t.line){var o=d(i.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return u(">")+d(i)+e+"\n "+o+u("^")}return" "+d(i)+e}).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();t.default=s,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.css.valueOf(),T=t.ignoreErrors,C=void 0,O=void 0,A=void 0,N=void 0,I=void 0,M=void 0,j=void 0,L=void 0,P=void 0,D=void 0,R=void 0,F=void 0,B=void 0,U=void 0,q=n.length,z=-1,H=1,W=0,$=[],Y=[];function V(t){throw e.error("Unclosed "+t,H,W-z)}return{back:function(e){Y.push(e)},nextToken:function(){if(Y.length)return Y.pop();if(W>=q)return;((C=n.charCodeAt(W))===s||C===c||C===d&&n.charCodeAt(W+1)!==s)&&(z=W,H+=1);switch(C){case s:case l:case u:case d:case c:O=W;do{O+=1,(C=n.charCodeAt(O))===s&&(z=O,H+=1)}while(C===l||C===s||C===u||C===d||C===c);U=["space",n.slice(W,O)],W=O-1;break;case f:U=["[","[",H,W-z];break;case p:U=["]","]",H,W-z];break;case g:U=["{","{",H,W-z];break;case v:U=["}","}",H,W-z];break;case _:U=[":",":",H,W-z];break;case y:U=[";",";",H,W-z];break;case h:if(F=$.length?$.pop()[1]:"",B=n.charCodeAt(W+1),"url"===F&&B!==r&&B!==i&&B!==l&&B!==s&&B!==u&&B!==c&&B!==d){O=W;do{if(D=!1,-1===(O=n.indexOf(")",O+1))){if(T){O=W;break}V("bracket")}for(R=O;n.charCodeAt(R-1)===o;)R-=1,D=!D}while(D);U=["brackets",n.slice(W,O+1),H,W-z,H,O-z],W=O}else O=n.indexOf(")",W+1),M=n.slice(W,O+1),-1===O||x.test(M)?U=["(","(",H,W-z]:(U=["brackets",M,H,W-z,H,O-z],W=O);break;case m:U=[")",")",H,W-z];break;case r:case i:A=C===r?"'":'"',O=W;do{if(D=!1,-1===(O=n.indexOf(A,O+1))){if(T){O=W+1;break}V("string")}for(R=O;n.charCodeAt(R-1)===o;)R-=1,D=!D}while(D);M=n.slice(W,O+1),N=M.split("\n"),(I=N.length-1)>0?(L=H+I,P=O-N[I].length):(L=H,P=z),U=["string",n.slice(W,O+1),H,W-z,L,O-P],z=P,H=L,W=O;break;case w:E.lastIndex=W+1,E.test(n),O=0===E.lastIndex?n.length-1:E.lastIndex-2,U=["at-word",n.slice(W,O+1),H,W-z,H,O-z],W=O;break;case o:for(O=W,j=!0;n.charCodeAt(O+1)===o;)O+=1,j=!j;if(C=n.charCodeAt(O+1),j&&C!==a&&C!==l&&C!==s&&C!==u&&C!==d&&C!==c&&(O+=1,S.test(n.charAt(O)))){for(;S.test(n.charAt(O+1));)O+=1;n.charCodeAt(O+1)===l&&(O+=1)}U=["word",n.slice(W,O+1),H,W-z,H,O-z],W=O;break;default:C===a&&n.charCodeAt(W+1)===b?(0===(O=n.indexOf("*/",W+2)+1)&&(T?O=n.length:V("comment")),M=n.slice(W,O+1),N=M.split("\n"),(I=N.length-1)>0?(L=H+I,P=O-N[I].length):(L=H,P=z),U=["comment",M,H,W-z,L,O-P],z=P,H=L,W=O):(k.lastIndex=W+1,k.test(n),O=0===k.lastIndex?n.length-1:k.lastIndex-2,U=["word",n.slice(W,O+1),H,W-z,H,O-z],$.push(U),W=O)}return W++,U},endOfFile:function(){return 0===Y.length&&W>=q}}};var r=39,i=34,o=92,a=47,s=10,l=32,c=12,u=9,d=13,f=91,p=93,h=40,m=41,g=123,v=125,y=59,b=42,_=58,w=64,E=/[ \n\t\r\f\{\(\)'"\\;\/\[\]#]/g,k=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,x=/.[\\\/\("'\n]/,S=/[a-f0-9]/i;e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(838)),o=s(n(1581)),a=s(n(388));function s(e){return e&&e.__esModule?e:{default:e}}var l=0,c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&""!==this.css[0]||(this.css=this.css.slice(1)),n.from&&(/^\w+:\/\//.test(n.from)?this.file=n.from:this.file=a.default.resolve(n.from));var r=new o.default(this.css,n);if(r.text){this.map=r;var i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}this.file||(l+=1,this.id="<input css "+l+">"),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,a=this.origin(t,n);return(o=a?new i.default(e,a.line,a.column,a.source,a.file,r.plugin):new i.default(e,t,n,this.css,this.file,r.plugin)).input={line:t,column:n,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var n=this.map.consumer(),r=n.originalPositionFor({line:e,column:t});if(!r.source)return!1;var i={file:this.mapResolve(r.source),line:r.line,column:r.column},o=n.sourceContentFor(r.source);return o&&(i.source=o),i},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:a.default.resolve(this.map.consumer().sourceRoot||".",e)},r(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();t.default=c,e.exports=t.default},function(e,t,n){t.SourceMapGenerator=n(843).SourceMapGenerator,t.SourceMapConsumer=n(1584).SourceMapConsumer,t.SourceNode=n(1587).SourceNode},function(e,t,n){var r=n(844),i=n(448),o=n(845).ArraySet,a=n(1583).MappingList;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new o,this._names=new o,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping(function(e){var r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=t&&(r.source=i.relative(t,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),n.addMapping(r)}),e.sources.forEach(function(r){var o=r;null!==t&&(o=i.relative(t,r)),n._sources.has(o)||n._sources.add(o);var a=e.sourceContentFor(r);null!=a&&n.setSourceContent(r,a)}),n},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),n=i.getArg(e,"original",null),r=i.getArg(e,"source",null),o=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,r,o),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=o&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:o})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=i.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var r=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var a=this._sourceRoot;null!=a&&(r=i.relative(a,r));var s=new o,l=new o;this._mappings.unsortedForEach(function(t){if(t.source===r&&null!=t.originalLine){var o=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=o.source&&(t.source=o.source,null!=n&&(t.source=i.join(n,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=o.line,t.originalColumn=o.column,null!=o.name&&(t.name=o.name))}var c=t.source;null==c||s.has(c)||s.add(c);var u=t.name;null==u||l.has(u)||l.add(u)},this),this._sources=s,this._names=l,e.sources.forEach(function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=i.join(n,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,r))},this)},s.prototype._validateMapping=function(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,o,a=0,s=1,l=0,c=0,u=0,d=0,f="",p=this._mappings.toArray(),h=0,m=p.length;h<m;h++){if(e="",(t=p[h]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(h>0){if(!i.compareByGeneratedPositionsInflated(t,p[h-1]))continue;e+=","}e+=r.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-d),d=o,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),f+=e}return f},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var r=n(1582);t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,o,a,s,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),c+=(o&=31)<<u,u+=5}while(i);n.value=(s=(a=c)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var r=n(448),i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function a(){this._array=[],this._set=o?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,r=0,i=e.length;r<i;r++)n.add(e[r],t);return n},a.prototype.size=function(){return o?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=o?e:r.toSetString(e),a=o?this.has(e):i.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(o?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(o)return this._set.has(e);var t=r.toSetString(e);return i.call(this._set,t)},a.prototype.indexOf=function(e){if(o){var t=this._set.get(e);if(t>=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){"use strict";t.__esModule=!0;var r={colon:": ",indent:"    ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" "};var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.builder=t}return e.prototype.stringify=function(e,t){this[e.type](e,t)},e.prototype.root=function(e){this.body(e),e.raws.after&&this.builder(e.raws.after)},e.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)},e.prototype.decl=function(e,t){var n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)},e.prototype.rule=function(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")},e.prototype.atrule=function(e,t){var n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{var i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}},e.prototype.body=function(e){for(var t=e.nodes.length-1;t>0&&"comment"===e.nodes[t].type;)t-=1;for(var n=this.raw(e,"semicolon"),r=0;r<e.nodes.length;r++){var i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}},e.prototype.block=function(e,t){var n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",e,"start");var r=void 0;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,"after")):r=this.raw(e,"after","emptyBody"),r&&this.builder(r),this.builder("}",e,"end")},e.prototype.raw=function(e,t,n){var i=void 0;if(n||(n=t),t&&void 0!==(i=e.raws[t]))return i;var o=e.parent;if("before"===n&&(!o||"root"===o.type&&o.first===e))return"";if(!o)return r[n];var a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);var s,l="raw"+((s=n)[0].toUpperCase()+s.slice(1));return this[l]?i=this[l](a,e):a.walk(function(e){if(void 0!==(i=e.raws[t]))return!1}),void 0===i&&(i=r[n]),a.rawCache[n]=i,i},e.prototype.rawSemicolon=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&void 0!==(t=e.raws.semicolon))return!1}),t},e.prototype.rawEmptyBody=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&0===e.nodes.length&&void 0!==(t=e.raws.after))return!1}),t},e.prototype.rawIndent=function(e){if(e.raws.indent)return e.raws.indent;var t=void 0;return e.walk(function(n){var r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){var i=n.raws.before.split("\n");return t=(t=i[i.length-1]).replace(/[^\s]/g,""),!1}}),t},e.prototype.rawBeforeComment=function(e,t){var n=void 0;return e.walkComments(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeDecl=function(e,t){var n=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.before)return-1!==(n=e.raws.before).indexOf("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/[^\s]/g,"")),n},e.prototype.rawBeforeRule=function(e){var t=void 0;return e.walk(function(n){if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return-1!==(t=n.raws.before).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeClose=function(e){var t=void 0;return e.walk(function(e){if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},e.prototype.beforeAfter=function(e,t){var n=void 0;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var r=e.parent,i=0;r&&"root"!==r.type;)i+=1,r=r.parent;if(-1!==n.indexOf("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var a=0;a<i;a++)n+=o}return n},e.prototype.rawValue=function(e,t){var n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n},e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if(r[e])return;r[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e)};var r={};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n(849),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="6.0.16",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.default(this,e,t)},e.prototype.normalize=function(e){var t=[],n=e,r=Array.isArray(n),o=0;for(n=r?n:n[Symbol.iterator]();;){var a;if(r){if(o>=n.length)break;a=n[o++]}else{if((o=n.next()).done)break;a=o.value}var s=a;if(s.postcss&&(s=s.postcss),"object"===(void 0===s?"undefined":i(s))&&Array.isArray(s.plugins))t=t.concat(s.plugins);else{if("function"!=typeof s)throw"object"===(void 0===s?"undefined":i(s))&&(s.parse||s.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(s+" is not a PostCSS plugin");t.push(s)}}return t},e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n(1589)),a=u(n(661)),s=u(n(847)),l=u(n(1590)),c=u(n(662));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){return"object"===(void 0===e?"undefined":i(e))&&"function"==typeof e.then}var f=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringified=!1,this.processed=!1;var o=void 0;if("object"===(void 0===n?"undefined":i(n))&&"root"===n.type)o=n;else if(n instanceof e||n instanceof l.default)o=n.root,n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{var a=c.default;r.syntax&&(a=r.syntax.parse),r.parser&&(a=r.parser),a.parse&&(a=a.parse);try{o=a(n,r)}catch(e){this.error=e}}this.result=new l.default(t,o,r)}return e.prototype.warnings=function(){return this.sync().warnings()},e.prototype.toString=function(){return this.css},e.prototype.then=function(e,t){return"from"in this.opts||(0,s.default)("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."),this.async().then(e,t)},e.prototype.catch=function(e){return this.async().catch(e)},e.prototype.handleError=function(e,t){try{if(this.error=e,"CssSyntaxError"!==e.name||e.plugin){if(t.postcssVersion){var n=t.postcssPlugin,r=t.postcssVersion,i=this.result.processor.version,o=r.split("."),a=i.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+n+" uses "+r+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var n=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var r=this.processor.plugins[this.plugin],i=this.run(r);this.plugin+=1,d(i)?i.then(function(){n.asyncTick(e,t)}).catch(function(e){n.handleError(e,r),n.processed=!0,t(e)}):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise(function(t,n){e.error?n(e.error):t(e.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(t,n){if(e.error)return n(e.error);e.plugin=0,e.asyncTick(t,n)}).then(function(){return e.processed=!0,e.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var i=r;if(d(this.run(i)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=a.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var n=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result},r(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();t.default=f,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={split:function(e,t,n){for(var r=[],i="",o=!1,a=0,s=!1,l=!1,c=0;c<e.length;c++){var u=e[c];s?l?l=!1:"\\"===u?l=!0:u===s&&(s=!1):'"'===u||"'"===u?s=u:"("===u?a+=1:")"===u?a>0&&(a-=1):0===a&&-1!==t.indexOf(u)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=u}return(n||""!==i)&&r.push(i.trim()),r},space:function(e){return r.split(e,[" ","\n","\t"])},comma:function(e){return r.split(e,[","],!0)}};t.default=r,e.exports=t.default},function(e,t,n){var r=n(87),i=n(352),o=n(449);e.exports=r(function(e){return!!i(e)||!!e&&("object"==typeof e&&(!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})},function(e,t){e.exports=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},function(t){return new e(t)}}()},function(e,t,n){var r=n(87),i=n(449);e.exports=r(function(e){return i(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})},function(e,t,n){var r=n(250);e.exports=function(){var e=Object.prototype.toString;return"[object Arguments]"===e.call(arguments)?function(t){return"[object Arguments]"===e.call(t)}:function(e){return r("callee",e)}}()},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(164),i=n(452),o=n(134)("species");e.exports=function(e,t){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[o])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){"use strict";var r=n(70),i=n(137),o=n(452),a=n(164),s=n(222),l=n(221),c=n(669),u=n(856),d=n(525),f=n(134),p=n(654),h=f("isConcatSpreadable"),m=p>=51||!i(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),g=d("concat"),v=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!g},{concat:function(e){var t,n,r,i,o,a=s(this),d=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],v(o)){if(f+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&c(d,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");c(d,f++,o)}return d.length=f,d}})},function(e,t,n){var r=n(811),i=n(650).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(40);e.exports=function(e,t,n){var i,o;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(i=1/t;n<e.length;){if(0===(o=e[n])&&1/o===i)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(o=e[n])&&o!=o)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(r(e[n],t))return n;n+=1}return-1}},function(e,t,n){var r=n(1674);e.exports="function"==typeof Object.assign?Object.assign:r},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){var r=n(34),i=n(35);e.exports=r(function(e,t){return function(n){return function(r){return i(function(e){return t(e,r)},n(e(r)))}}})},function(e,t,n){var r=n(205),i=n(519);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){var r=n(34),i=n(248),o=n(1698),a=n(255);e.exports=r(i(["take"],o,function(e,t){return a(0,e<0?1/0:e,t)}))},function(e,t,n){"use strict";t.__esModule=!0,t.isFSA=function(e){return o.default(e)&&void 0!==e.type&&Object.keys(e).every(s)},t.isError=function(e){return!0===e.error};var r,i=n(1701),o=(r=i)&&r.__esModule?r:{default:r},a=["type","payload","error","meta"];function s(e){return a.indexOf(e)>-1}},function(e,t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=Object.prototype,s=a.hasOwnProperty,l=a.toString,c=a.propertyIsEnumerable;e.exports=function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?l.call(e):"";return t==i||t==o}(e)}(e)}(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||l.call(e)==r)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(286),i=n(869);e.exports=function(e){return i(e)&&r("of",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(286),i=n(1711);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(224),i=n(874),o=n(1723),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],l=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),c=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},u=r("function"!=typeof Object.keys||l?function(e){if(Object(e)!==e)return[];var t,n,r=[],u=l&&o(e);for(t in e)!i(t,e)||u&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)i(t=s[n],e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r}:function(e){return Object(e)!==e?[]:Object.keys(e)});e.exports=u},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(224)(function(e){return function(){return e}});e.exports=r},function(e,t,n){var r=n(195)(function(e,t){return t>e?t:e});e.exports=r},function(e,t,n){var r=n(679)(n(678));e.exports=r},function(e,t,n){var r=n(224),i=n(382),o=r(function(e){return i(e.length,e)});e.exports=o},function(e,t,n){var r=n(122);e.exports=r(function(e,t){return{type:e,payload:t}})},function(e,t,n){n(149)("iterator")},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),i=s(n(0)),o=s(n(103)),a=n(882);n(883);function s(e){return e&&e.__esModule?e:{default:e}}var l="unmounted";t.UNMOUNTED=l;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;t.EXITING="exiting";var f=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=c,r.appearStatus=u):i=d:i=t.unmountOnExit||t.mountOnEnter?l:c,r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=r.appear),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts();t||r?(this.props.onEnter(e,i),this.safeSetState({status:u},function(){n.props.onEntering(e,i),n.onTransitionEnd(e,o.enter,function(){n.safeSetState({status:d},function(){n.props.onEntered(e,i)})})})):this.safeSetState({status:d},function(){n.props.onEntered(e)})},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,function(){t.safeSetState({status:c},function(){t.props.onExited(e)})})})):this.safeSetState({status:c},function(){t.props.onExited(e)})},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function p(){}f.contextTypes={transitionGroup:r.object},f.childContextTypes={transitionGroup:function(){}},f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},f.UNMOUNTED=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;var h=(0,a.polyfill)(f);t.default=h},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}},t.classNamesShape=t.timeoutsShape=void 0;var r,i=(r=n(1))&&r.__esModule?r:{default:r};var o=i.default.oneOfType([i.default.number,i.default.shape({enter:i.default.number,exit:i.default.number}).isRequired]);t.timeoutsShape=o;var a=i.default.oneOfType([i.default.string,i.default.shape({enter:i.default.string,exit:i.default.string,active:i.default.string}),i.default.shape({enter:i.default.string,enterDone:i.default.string,enterActive:i.default.string,exit:i.default.string,exitDone:i.default.string,exitActive:i.default.string})]);t.classNamesShape=a},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1)),i=s(n(0)),o=n(882),a=n(1776);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(c(c(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.setState(function(t){var n=l({},t.children);return delete n[e.key],{children:n}}))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);d.childContextTypes={transitionGroup:r.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var f=(0,o.polyfill)(d);t.default=f,e.exports=t.default},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(69))},function(e,t,n){var r=n(252),i=n(532),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,g=function(){return f.Date.now()};function v(e,t,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function v(t){var n=i,r=o;return i=o=void 0,u=t,s=e.apply(r,n)}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=a}function w(){var e=g();if(_(e))return E(e);l=setTimeout(w,function(e){var n=t-(e-c);return f?m(n,a-(e-u)):n}(e))}function E(e){return l=void 0,p&&i?v(e):(i=o=void 0,s)}function k(){var e=g(),n=_(e);if(i=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),d?v(e):s}(c);if(f)return l=setTimeout(w,t),v(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=b(t)||0,y(r)&&(d=!!r.leading,a=(f="maxWait"in r)?h(b(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),k.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0},k.flush=function(){return void 0===l?s:E(g())},k}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),v(e,t,{leading:i,maxWait:t,trailing:o})}}).call(this,n(69))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=(s(n(458)),s(n(1817))),o=s(n(1818)),a=s(n(684));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){return i.default[e.smooth]||i.default.defaultEasing},c=function(){if("undefined"!=typeof window)return window.requestAnimationFrame||window.webkitRequestAnimationFrame}()||function(e,t,n){window.setTimeout(e,n||1e3/60,(new Date).getTime())},u=function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return t.scrollTop;var n=void 0!==window.pageXOffset,r="CSS1Compat"===(document.compatMode||"");return n?window.pageYOffset:r?document.documentElement.scrollTop:document.body.scrollTop},d=function(e){e.data.containerElement=e?e.containerId?document.getElementById(e.containerId):e.container&&e.container.nodeType?e.container:document:null},f=function(e,t,n,r){if(t.data=t.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},window.clearTimeout(t.data.delayTimeout),o.default.subscribe(function(){t.data.cancel=!0}),d(t),t.data.start=null,t.data.cancel=!1,t.data.startPositionY=u(t),t.data.targetPositionY=t.absolute?e:e+t.data.startPositionY,t.data.startPositionY!==t.data.targetPositionY){var i;t.data.deltaTop=Math.round(t.data.targetPositionY-t.data.startPositionY),t.data.duration=("function"==typeof(i=t.duration)?i:function(){return i})(t.data.deltaTop),t.data.duration=isNaN(parseFloat(t.data.duration))?1e3:parseFloat(t.data.duration),t.data.to=n,t.data.target=r;var s=l(t),f=function e(t,n,r){var i=n.data;if(n.ignoreCancelEvents||!i.cancel)if(i.deltaTop=Math.round(i.targetPositionY-i.startPositionY),null===i.start&&(i.start=r),i.progress=r-i.start,i.percent=i.progress>=i.duration?1:t(i.progress/i.duration),i.currentPositionY=i.startPositionY+Math.ceil(i.deltaTop*i.percent),i.containerElement&&i.containerElement!==document&&i.containerElement!==document.body?i.containerElement.scrollTop=i.currentPositionY:window.scrollTo(0,i.currentPositionY),i.percent<1){var o=e.bind(null,t,n);c.call(window,o)}else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY);else a.default.registered.end&&a.default.registered.end(i.to,i.target,i.currentPositionY)}.bind(null,s,t);t&&t.delay>0?t.data.delayTimeout=window.setTimeout(function(){c.call(window,f)},t.delay):c.call(window,f)}else a.default.registered.end&&a.default.registered.end(t.data.to,t.data.target,t.data.currentPositionY)},p=function(e){return(e=r({},e)).data=e.data||{currentPositionY:0,startPositionY:0,targetPositionY:0,progress:0,duration:0,cancel:!1,target:null,containerElement:null,to:null,start:null,deltaTop:null,percent:null,delayTimeout:null},e.absolute=!0,e};t.default={animateTopScroll:f,getAnimationType:l,scrollToTop:function(e){f(0,p(e))},scrollToBottom:function(e){e=p(e),d(e),f(function(e){var t=e.data.containerElement;if(t&&t!==document&&t!==document.body)return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight);var n=document.body,r=document.documentElement;return Math.max(n.scrollHeight,n.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}(e),e)},scrollTo:function(e,t){f(e,p(t))},scrollMore:function(e,t){t=p(t),d(t),f(u(t)+e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(683);var r,i=n(458),o=(r=i)&&r.__esModule?r:{default:r};var a={mountFlag:!1,initialized:!1,scroller:null,containers:{},mount:function(e){this.scroller=e,this.handleHashChange=this.handleHashChange.bind(this),window.addEventListener("hashchange",this.handleHashChange),this.initStateFromHash(),this.mountFlag=!0},mapContainer:function(e,t){this.containers[e]=t},isMounted:function(){return this.mountFlag},isInitialized:function(){return this.initialized},initStateFromHash:function(){var e=this,t=this.getHash();t?window.setTimeout(function(){e.scrollTo(t,!0),e.initialized=!0},10):this.initialized=!0},scrollTo:function(e,t){var n=this.scroller;if(n.get(e)&&(t||e!==n.getActiveLink())){var r=this.containers[e]||document;n.scrollTo(e,{container:r})}},getHash:function(){return o.default.getHash()},changeHash:function(e){this.isInitialized()&&o.default.getHash()!==e&&o.default.pushHash(e)},handleHashChange:function(){this.scrollTo(this.getHash())},unmount:function(){this.scroller=null,this.containers=null,window.removeEventListener("hashchange",this.handleHashChange)}};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),a=(l(n(103)),l(n(533))),s=l(n(534));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,o.default.Component),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;a.default.unregister(this.props.name)}},{key:"registerElems",value:function(e){a.default.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return o.default.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:s.default.string,id:s.default.string},t}},function(e,t,n){var r=n(679)(function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r});e.exports=r},function(e,t,n){var r=n(195),i=n(871),o=n(382),a=n(876),s=n(1827),l=n(877),c=r(function(e,t){return o(l(a,0,s("length",t)),function(){var n=arguments,r=this;return e.apply(r,i(function(e){return e.apply(r,n)},t))})});e.exports=c},function(e,t,n){var r=n(195),i=n(1828),o=r(function(e,t){return i([e],t)});e.exports=o},function(e,t,n){var r=n(195),i=n(382),o=r(function(e,t){return i(e,function(){for(var n,r=1,i=t,o=0;r<=e&&"function"==typeof i;)n=r===e?arguments.length:o+i.length,i=i.apply(this,Array.prototype.slice.call(arguments,o,n)),r+=1,o=n;return i})});e.exports=o},function(e,t){
/** @license ISC License (c) copyright 2016 original and current authors */
var n=Object.prototype.toString;e.exports=function(e){return!!e&&"[object Object]"===n.call(e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(e){return"Const("+e+")"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Tuple:function(e){return e+"-Tuple"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e,t){return{type:function(){return r(e)(t)}}},type:r,typeFn:function(e,t,n){return"crocks/"+r(e)(n)+"@"+(t||0)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(354),i=n(1840);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(896),i=n(354);e.exports=function(e){return r(e)||!!e&&i("concat",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(287);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(196);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))}))}),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(196),i=n(1862),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(905):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(s=n(905)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){l.headers[e]={}}),r.forEach(["post","put","patch"],function(e){l.headers[e]=r.merge(o)}),e.exports=l}).call(this,n(284))},function(e,t,n){"use strict";var r=n(196),i=n(1863),o=n(902),a=n(1865),s=n(1868),l=n(1869),c=n(906);e.exports=function(e){return new Promise(function(t,u){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password||"";f.Authorization="Basic "+btoa(h+":"+m)}var g=a(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?s(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};i(t,u,r),p=null}},p.onabort=function(){p&&(u(c("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){u(c("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(c(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var v=n(1870),y=(e.withCredentials||l(g))&&e.xsrfCookieName?v.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(f,function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:p.setRequestHeader(t,e)}),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){p&&(p.abort(),u(e),p=null)}),void 0===d&&(d=null),p.send(d)})}},function(e,t,n){"use strict";var r=n(1864);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(196);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,function(e){void 0!==t[e]&&(n[e]=t[e])}),r.forEach(o,function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])}),r.forEach(a,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])});var s=i.concat(o).concat(a),l=Object.keys(t).filter(function(e){return-1===s.indexOf(e)});return r.forEach(l,function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(286),i=n(869);e.exports=function(e){return i(e)&&r("chain",e)}},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(688),i=n(288),o=n(1878),a=n(1879);function s(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(s).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" {}":a(e)?' "'+e+'"':" "+e;var t}e.exports=s},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
var n={unk:function(){return"unknown"},All:function(){return"All"},Any:function(){return"Any"},Arrow:function(){return"Arrow"},Assign:function(){return"Assign"},Async:function(){return"Async"},Const:function(){return"Const"},Either:function(){return"Either"},Endo:function(){return"Endo"},Equiv:function(){return"Equiv"},First:function(){return"First"},Identity:function(){return"Identity"},IO:function(){return"IO"},Last:function(){return"Last"},List:function(){return"List"},Max:function(){return"Max"},Maybe:function(){return"Maybe"},Min:function(){return"Min"},Pair:function(){return"Pair"},Pred:function(){return"Pred"},Prod:function(){return"Prod"},Reader:function(){return"Reader"},Result:function(){return"Result"},Star:function(){return"Star"},State:function(){return"State"},Sum:function(){return"Sum"},Unit:function(){return"Unit"},Writer:function(){return"Writer"}},r=function(e){return n[e]||n.unk};e.exports={proxy:function(e){return{type:r(e)}},type:r}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1888),i=n(288),o=n(1889);e.exports=r(function(e,t){var n=o(e),r=o(t);return n===r||i(e)&&e.name===r||i(t)&&t.name===n})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(910),i=n(911),o=n(912).type("IO"),a=n(913),s=n(288),l=n(914),c=function(e){return u(function(){return e})};function u(e){if(!s(e))throw new TypeError("IO: Must wrap a function");function t(t){if(!s(t))throw new TypeError("IO.chain: Function required");return u(function(){var n=t(e());if(!l(u,n))throw new TypeError("IO.chain: Function must return an IO");return n.run()})}return{inspect:function(){return"IO"+i(e)},run:e,type:o,map:function(t){if(!s(t))throw new TypeError("IO.map: Function required");return u(a(t,e))},ap:function(e){if(!l(u,e))throw new TypeError("IO.ap: IO required");return t(function(t){return e.map(t)})},of:c,chain:t,constructor:u}}u.of=c,u.type=o,u["@@implements"]=r(["ap","chain","map","of"]),e.exports=u},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],o=i.obj[i.prop],a=Object.keys(o),s=0;s<a.length;++s){var l=a[s],c=o[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:o,prop:l}),n.push(c))}return function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],i=0;i<t.length;++i)void 0!==t[i]&&r.push(t[i]);n.obj[n.prop]=r}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),n="",r=0;r<t.length;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=t.charAt(r):o<128?n+=i[o]:o<2048?n+=i[192|o>>6]+i[128|63&o]:o<55296||o>=57344?n+=i[224|o>>12]+i[128|o>>6&63]+i[128|63&o]:(r+=1,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),n+=i[240|o>>18]+i[128|o>>12&63]+i[128|o>>6&63]+i[128|63&o])}return n},isBuffer:function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(Array.isArray(t))t.push(n);else{if("object"!=typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!=typeof t)return[t].concat(n);var a=t;return Array.isArray(t)&&!Array.isArray(n)&&(a=o(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach(function(n,o){r.call(t,o)?t[o]&&"object"==typeof t[o]?t[o]=e(t[o],n,i):t.push(n):t[o]=n}),t):Object.keys(n).reduce(function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t},a)}}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){var r=n(383),i=n(252),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(921),i=n(691),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(1935);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(1937),i=n(923),o=n(253),a=n(694),s=n(924),l=n(925),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},function(e,t,n){var r=n(1938),i=n(316),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(1940),i=n(544),o=n(545),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(922),i=n(1944),o=n(697);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(931),i=n(932),o=n(698),a=n(929),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(926)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(934),i=n(698),o=n(384);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(931),i=n(253);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(225).Uint8Array;e.exports=r},function(e,t,n){var r=n(129),i=n(667),o=n(1970);e.exports=r(function e(t,n,r){return o(function(n,r,o){return i(r)&&i(o)?e(t,r,o):t(n,r,o)},n,r)})},function(e,t,n){var r=n(538),i=n(356)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=i},function(e,t,n){var r=n(355),i=n(356),o=n(537);e.exports=function(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i(function(t,r){return e(n,t,r)});case 2:return o(n)&&o(a)?t:o(n)?i(function(t,n){return e(t,a,n)}):o(a)?i(function(t,r){return e(n,t,r)}):r(function(t){return e(n,a,t)});default:return o(n)&&o(a)&&o(s)?t:o(n)&&o(a)?i(function(t,n){return e(t,n,s)}):o(n)&&o(s)?i(function(t,n){return e(t,a,n)}):o(a)&&o(s)?i(function(t,r){return e(n,t,r)}):o(n)?r(function(t){return e(t,a,s)}):o(a)?r(function(t){return e(n,t,s)}):o(s)?r(function(t){return e(n,a,t)}):e(n,a,s)}}}},function(e,t){e.exports=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(939);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return r(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));for(var a=n.exec(e||""),s={},l=14;l--;)s[r[l]]=a[l]||"";return-1!=i&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t,n){(function(t){var r=n(1986),i=Object.prototype.toString,o="function"==typeof t.Blob||"[object BlobConstructor]"===i.call(t.Blob),a="function"==typeof t.File||"[object FileConstructor]"===i.call(t.File);e.exports=function e(n){if(!n||"object"!=typeof n)return!1;if(r(n)){for(var i=0,s=n.length;i<s;i++)if(e(n[i]))return!0;return!1}if("function"==typeof t.Buffer&&t.Buffer.isBuffer&&t.Buffer.isBuffer(n)||"function"==typeof t.ArrayBuffer&&n instanceof ArrayBuffer||o&&n instanceof Blob||a&&n instanceof File)return!0;if(n.toJSON&&"function"==typeof n.toJSON&&1===arguments.length)return e(n.toJSON(),!0);for(var l in n)if(Object.prototype.hasOwnProperty.call(n,l)&&e(n[l]))return!0;return!1}}).call(this,n(69))},function(e,t,n){(function(t){e.exports=function(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}}).call(this,n(69))},function(e,t,n){var r=n(1989),i=n(950),o=n(385),a=n(701),s=n(951),l=n(952),c=n(289)("socket.io-client:manager"),u=n(949),d=n(2003),f=Object.prototype.hasOwnProperty;function p(e,t){if(!(this instanceof p))return new p(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||a;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=p,p.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)f.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},p.prototype.updateSocketIds=function(){for(var e in this.nsps)f.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},p.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},o(p.prototype),p.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},p.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},p.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,t){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=s(n,"open",function(){i.onopen(),e&&e()}),a=s(n,"error",function(t){if(c("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else i.maybeReconnectOnOpen()});if(!1!==this._timeout){var l=this._timeout;c("connect attempt will timeout after %d",l);var u=setTimeout(function(){c("connect attempt timed out after %d",l),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",l)},l);this.subs.push({destroy:function(){clearTimeout(u)}})}return this.subs.push(o),this.subs.push(a),this},p.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",l(this,"ondata"))),this.subs.push(s(e,"ping",l(this,"onping"))),this.subs.push(s(e,"pong",l(this,"onpong"))),this.subs.push(s(e,"error",l(this,"onerror"))),this.subs.push(s(e,"close",l(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",l(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(e){this.decoder.add(e)},p.prototype.ondecoded=function(e){this.emit("packet",e)},p.prototype.onerror=function(e){c("error",e),this.emitAll("error",e)},p.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new i(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",o),n.on("connect",function(){n.id=r.generateId(e)}),this.autoConnect&&o()}function o(){~u(r.connecting,n)||r.connecting.push(n)}return n},p.prototype.destroy=function(e){var t=u(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},p.prototype.packet=function(e){c("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},p.prototype.cleanup=function(){c("cleanup");for(var e=this.subs.length,t=0;t<e;t++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(e){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(c("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(c("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(c("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){(function(e){var r=n(702),i=n(1992),o=n(1999),a=n(2e3);t.polling=function(t){var n=!1,a=!1,s=!1!==t.jsonp;if(e.location){var l="https:"===location.protocol,c=location.port;c||(c=l?443:80),n=t.hostname!==location.hostname||c!==t.port,a=t.secure!==l}if(t.xdomain=n,t.xscheme=a,"open"in new r(t)&&!t.forceJSONP)return new i(t);if(!s)throw new Error("JSONP disabled");return new o(t)},t.websocket=a}).call(this,n(69))},function(e,t,n){var r=n(703),i=n(547),o=n(386),a=n(548),s=n(948),l=n(289)("engine.io-client:polling");e.exports=u;var c=null!=new(n(702))({xdomain:!1}).responseType;function u(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}a(u,r),u.prototype.name="polling",u.prototype.doOpen=function(){this.poll()},u.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){l("pre-pause polling complete"),--r||n()})),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",function(){l("pre-pause writing complete"),--r||n()}))}else n()},u.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},u.prototype.onData=function(e){var t=this;l("polling got data %s",e);o.decodePayload(e,this.socket.binaryType,function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},u.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},u.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};o.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},u.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){"use strict";var r,i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),o=64,a={},s=0,l=0;function c(e){var t="";do{t=i[e%o]+t,e=Math.floor(e/o)}while(e>0);return t}function u(){var e=c(+new Date);return e!==r?(s=0,r=e):e+"."+c(s++)}for(;l<o;l++)a[i[l]]=l;u.encode=c,u.decode=function(e){var t=0;for(l=0;l<e.length;l++)t=t*o+a[e.charAt(l)];return t},e.exports=u},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(701),i=n(385),o=n(2002),a=n(951),s=n(952),l=n(289)("socket.io-client:socket"),c=n(547);e.exports=f;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=i.prototype.emit;function f(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(f.prototype),f.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[a(e,"open",s(this,"onopen")),a(e,"packet",s(this,"onpacket")),a(e,"close",s(this,"onclose"))]}},f.prototype.open=f.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},f.prototype.send=function(){var e=o(arguments);return e.unshift("message"),this.emit.apply(this,e),this},f.prototype.emit=function(e){if(u.hasOwnProperty(e))return d.apply(this,arguments),this;var t=o(arguments),n={type:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(l("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),delete this.flags,this},f.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},f.prototype.onopen=function(){if(l("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;l("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},f.prototype.onclose=function(e){l("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},f.prototype.onpacket=function(e){if(e.nsp===this.nsp)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},f.prototype.onevent=function(e){var t=e.data||[];l("emitting event %j",t),null!=e.id&&(l("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?d.apply(this,t):this.receiveBuffer.push(t)},f.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);l("sending ack %j",i),t.packet({type:r.ACK,id:e,data:i})}}},f.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(l("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):l("bad ack %s",e.id)},f.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},f.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)d.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},f.prototype.ondisconnect=function(){l("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},f.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},f.prototype.close=f.prototype.disconnect=function(){return this.connected&&(l("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},f.prototype.compress=function(e){return this.flags=this.flags||{},this.flags.compress=e,this}},function(e,t){e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t,n){var r=n(954),i=n(550);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(253),i=n(704),o=n(2057),a=n(549);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(457),i=n(956),o=n(253),a=n(532),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n],n);n++);}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={keys:["Enter"],keyCode:13},i=function(e){var t=e.keyCode,n=e.keys;return function(e){return e.keyCode?e.keyCode===t:-1!==n.indexOf(e.key)}},o=(t.isEnterOrSpaceBarKey=function(e){return i(r)(e)||o(e)},t.isTabKey=i({keys:["Tab"],keyCode:9}),t.isSpaceBarKey=i({keys:[" "],keyCode:32}));t.isEscapeKey=i({keys:["Escape","Esc"],keyCode:27})},function(e,t){e.exports=function(e){var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t){e.exports={toUnsigned:function(e){return e>>>0},toHexString:function(e){return("00"+e.toString(16)).slice(-2)}}},function(e,t,n){"use strict";e.exports={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},parseUserData:function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[2+(i=3*n)],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},discardEmulationPreventionBytes:function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},USER_DATA_REGISTERED_ITU_T_T35:4}},function(e,t,n){"use strict";var r=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};r.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),this.on("partialdone",function(t){e.partialFlush(t)}),this.on("endedtimeline",function(t){e.endTimeline(t)}),this.on("reset",function(t){e.reset(t)}),e},r.prototype.push=function(e){this.trigger("data",e)},r.prototype.flush=function(e){this.trigger("done",e)},r.prototype.partialFlush=function(e){this.trigger("partialdone",e)},r.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},r.prototype.reset=function(e){this.trigger("reset",e)},e.exports=r},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Align left":n,o=t.desc,a=void 0===o?"Three vertical lines aligned to the left":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"12":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 12",width:l,height:u,className:i()("i",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),e.createElement("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),e.createElement("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){t.a=function(t){var n=t.width,r=void 0===n?"17":n,i=t.height,o=void 0===i?"15":i,a=t.title,s=void 0===a?"Book":a,l=t.desc,c=void 0===l?"Book":l,u=t.focusable,d=void 0===u?"false":u,f=t.className;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:r,height:o,viewBox:"0 0 17 15",focusable:d,className:f},e.createElement("title",null,s),e.createElement("desc",null,c),e.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Check mark filled":n,o=t.desc,a=void 0===o?"Check mark inside of a circle that is filled in with a color":o,s=t.width,l=void 0===s?"21":s,c=t.height,u=void 0===c?"21":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 21 21",width:l,height:u,className:i()("i i-checkMarkFilled",d),focusable:p,role:"img"},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(4),n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"DestinationArrow":n,o=t.desc,a=void 0===o?"DestinationArrow":o,s=t.width,l=void 0===s?"13":s,c=t.height,u=void 0===c?"10":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 13 10",width:l,height:u,className:i()("i i-destinationArrow",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Download":n,o=t.desc,a=void 0===o?"Arrow down with horizontal line beneath it":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"19":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 19",width:l,height:u,className:i()("i i-download",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{y:"17",width:"16",height:"2",rx:"1"}),e.createElement("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),e.createElement("path",{d:"M7 0h2v12H7z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Draggable":n,o=t.desc,a=void 0===o?"Three dots stacked on top of one another":o,s=t.width,l=void 0===s?"4":s,c=t.height,u=void 0===c?"14":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 4 14",width:l,height:u,className:i()("i i-ellipsis--vert",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(.158 .445)"},e.createElement("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),e.createElement("circle",{cx:"1.5",cy:"1.5",r:"1.5"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Incorrect":n,o=t.desc,a=void 0===o?"Image of an X":o,s=t.width,l=void 0===s?"10":s,c=t.height,u=void 0===c?"10":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 10 10",width:l,height:u,className:i()("i i-exMark",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"File":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-file",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M13.5335,22.9865 L13.5335,24.4165 L10.2445,24.4165 L10.2445,26.446 L12.9835,26.446 L12.9835,27.8815 L10.2445,27.8815 L10.2445,31 L8.3745,31 L8.3745,22.9865 L13.5335,22.9865 Z M17.0365,31 L15.1665,31 L15.1665,22.9865 L17.0365,22.9865 L17.0365,31 Z M20.8805,29.515 L23.8505,29.515 L23.8505,31 L19.0215,31 L19.0215,22.9865 L20.8805,22.9865 L20.8805,29.515 Z M30.3895,22.9865 L30.3895,24.4165 L27.1005,24.4165 L27.1005,26.2865 L29.6195,26.2865 L29.6195,27.6615 L27.1005,27.6615 L27.1005,29.57 L30.3895,29.57 L30.3895,31 L25.2305,31 L25.2305,22.9865 L30.3895,22.9865 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Document":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-fileDoc",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M14.5865,26.9905 C14.5865,27.5698362 14.4865843,28.1042476 14.28675,28.59375 C14.0869157,29.0832524 13.8055018,29.5067482 13.4425,29.86425 C13.0794982,30.2217518 12.6422526,30.5004157 12.13075,30.70025 C11.6192474,30.9000843 11.0518364,31 10.4285,31 L7.3155,31 L7.3155,22.9865 L10.4285,22.9865 C11.0518364,22.9865 11.6192474,23.0873323 12.13075,23.289 C12.6422526,23.4906677 13.0794982,23.7693316 13.4425,24.125 C13.8055018,24.4806684 14.0869157,24.9032476 14.28675,25.39275 C14.4865843,25.8822524 14.5865,26.4148305 14.5865,26.9905 L14.5865,26.9905 Z M12.6835,26.9905 C12.6835,26.594498 12.6321672,26.2370016 12.5295,25.918 C12.4268328,25.5989984 12.279251,25.3285844 12.08675,25.10675 C11.894249,24.8849156 11.6586681,24.7144173 11.38,24.59525 C11.1013319,24.4760827 10.7841684,24.4165 10.4285,24.4165 L9.1855,24.4165 L9.1855,29.57 L10.4285,29.57 C10.7841684,29.57 11.1013319,29.5104173 11.38,29.39125 C11.6586681,29.2720827 11.894249,29.1015844 12.08675,28.87975 C12.279251,28.6579156 12.4268328,28.3875016 12.5295,28.0685 C12.6321672,27.7494984 12.6835,27.3901687 12.6835,26.9905 L12.6835,26.9905 Z M23.8865,26.9905 C23.8865,27.5698362 23.7865843,28.1088308 23.58675,28.6075 C23.3869157,29.1061692 23.1055018,29.5397482 22.7425,29.90825 C22.3794982,30.2767518 21.9422526,30.565499 21.43075,30.7745 C20.9192474,30.983501 20.3518364,31.088 19.7285,31.088 C19.1051635,31.088 18.5368359,30.983501 18.0235,30.7745 C17.5101641,30.565499 17.0710852,30.2767518 16.70625,29.90825 C16.3414148,29.5397482 16.0590843,29.1061692 15.85925,28.6075 C15.6594157,28.1088308 15.5595,27.5698362 15.5595,26.9905 C15.5595,26.4111638 15.6594157,25.8721692 15.85925,25.3735 C16.0590843,24.8748308 16.3414148,24.4421685 16.70625,24.0755 C17.0710852,23.7088315 17.5101641,23.421001 18.0235,23.212 C18.5368359,23.002999 19.1051635,22.8985 19.7285,22.8985 C20.3518364,22.8985 20.9192474,23.0039156 21.43075,23.21475 C21.9422526,23.4255844 22.3794982,23.7143315 22.7425,24.081 C23.1055018,24.4476685 23.3869157,24.8803308 23.58675,25.379 C23.7865843,25.8776692 23.8865,26.4148305 23.8865,26.9905 L23.8865,26.9905 Z M21.9835,26.9905 C21.9835,26.594498 21.9321672,26.2379183 21.8295,25.92075 C21.7268328,25.6035817 21.579251,25.3350011 21.38675,25.115 C21.194249,24.8949989 20.9586681,24.7263339 20.68,24.609 C20.4013319,24.4916661 20.0841684,24.433 19.7285,24.433 C19.3691649,24.433 19.0492514,24.4916661 18.76875,24.609 C18.4882486,24.7263339 18.251751,24.8949989 18.05925,25.115 C17.866749,25.3350011 17.7191672,25.6035817 17.6165,25.92075 C17.5138328,26.2379183 17.4625,26.594498 17.4625,26.9905 C17.4625,27.3901687 17.5138328,27.7485817 17.6165,28.06575 C17.7191672,28.3829183 17.866749,28.6514989 18.05925,28.8715 C18.251751,29.0915011 18.4882486,29.2592494 18.76875,29.37475 C19.0492514,29.4902506 19.3691649,29.548 19.7285,29.548 C20.0841684,29.548 20.4013319,29.4902506 20.68,29.37475 C20.9586681,29.2592494 21.194249,29.0915011 21.38675,28.8715 C21.579251,28.6514989 21.7268328,28.3829183 21.8295,28.06575 C21.9321672,27.7485817 21.9835,27.3901687 21.9835,26.9905 L21.9835,26.9905 Z M30.662,28.9265 C30.7060002,28.9265 30.7499998,28.9347499 30.794,28.95125 C30.8380002,28.9677501 30.8801665,28.9961665 30.9205,29.0365 L31.6575,29.812 C31.3348317,30.2336688 30.9305858,30.5517489 30.44475,30.76625 C29.9589142,30.9807511 29.38417,31.088 28.7205,31.088 C28.1118303,31.088 27.5664191,30.9844177 27.08425,30.77725 C26.6020809,30.5700823 26.1932517,30.2840852 25.85775,29.91925 C25.5222483,29.5544148 25.2646676,29.1217525 25.085,28.62125 C24.9053324,28.1207475 24.8155,27.5771696 24.8155,26.9905 C24.8155,26.3928303 24.9181656,25.8437525 25.1235,25.34325 C25.3288344,24.8427475 25.6157482,24.4110018 25.98425,24.048 C26.3527518,23.6849982 26.7936641,23.4026677 27.307,23.201 C27.8203359,22.9993323 28.3868302,22.8985 29.0065,22.8985 C29.3071682,22.8985 29.5904153,22.9250831 29.85625,22.97825 C30.1220847,23.0314169 30.3704988,23.1047495 30.6015,23.19825 C30.8325012,23.2917505 31.0451657,23.4035827 31.2395,23.53375 C31.4338343,23.6639173 31.6061659,23.8078325 31.7565,23.9655 L31.1295,24.807 C31.0891665,24.8583336 31.0415003,24.9050831 30.9865,24.94725 C30.9314997,24.9894169 30.8545005,25.0105 30.7555,25.0105 C30.6894997,25.0105 30.627167,24.9958335 30.5685,24.9665 C30.509833,24.9371665 30.4475003,24.9014169 30.3815,24.85925 C30.3154997,24.8170831 30.2430837,24.7712502 30.16425,24.72175 C30.0854163,24.6722498 29.9919172,24.6264169 29.88375,24.58425 C29.7755828,24.5420831 29.6490841,24.5063335 29.50425,24.477 C29.3594159,24.4476665 29.1898343,24.433 28.9955,24.433 C28.658165,24.433 28.3501681,24.4925827 28.0715,24.61175 C27.7928319,24.7309173 27.5535843,24.9014156 27.35375,25.12325 C27.1539157,25.3450844 26.9980839,25.6136651 26.88625,25.929 C26.7744161,26.2443349 26.7185,26.5981647 26.7185,26.9905 C26.7185,27.4011687 26.7744161,27.7659984 26.88625,28.085 C26.9980839,28.4040016 27.150249,28.6725822 27.34275,28.89075 C27.535251,29.1089178 27.759832,29.2748328 28.0165,29.3885 C28.2731679,29.5021672 28.5481652,29.559 28.8415,29.559 C29.0101675,29.559 29.164166,29.5507501 29.3035,29.53425 C29.442834,29.5177499 29.5720827,29.4893335 29.69125,29.449 C29.8104173,29.4086665 29.9240828,29.356417 30.03225,29.29225 C30.1404172,29.228083 30.2494994,29.1483338 30.3595,29.053 C30.4035002,29.0163332 30.4511664,28.9860835 30.5025,28.96225 C30.5538336,28.9384165 30.6069997,28.9265 30.662,28.9265 L30.662,28.9265 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"PDF":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-filePdf",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26,0 L26,11.7296861 C26,12.8319383 26.8984843,13.7254902 27.999569,13.7254902 L39.0718954,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M10.6155,28.3215 L10.6155,31 L8.7565,31 L8.7565,22.9865 L11.5835,22.9865 C12.1481695,22.9865 12.6330813,23.053416 13.03825,23.18725 C13.4434187,23.321084 13.777082,23.5053322 14.03925,23.74 C14.301418,23.9746678 14.4948327,24.2514984 14.6195,24.5705 C14.7441673,24.8895016 14.8065,25.2341648 14.8065,25.6045 C14.8065,26.0041687 14.742334,26.3708317 14.614,26.7045 C14.485666,27.0381683 14.2895013,27.3241655 14.0255,27.5625 C13.7614987,27.8008345 13.4269187,27.986916 13.02175,28.12075 C12.6165813,28.254584 12.1371694,28.3215 11.5835,28.3215 L10.6155,28.3215 Z M10.6155,26.919 L11.5835,26.919 C12.0675024,26.919 12.4158323,26.8035012 12.6285,26.5725 C12.8411677,26.3414988 12.9475,26.0188354 12.9475,25.6045 C12.9475,25.4211657 12.9200003,25.2543341 12.865,25.104 C12.8099997,24.9536659 12.7265839,24.8244172 12.61475,24.71625 C12.5029161,24.6080828 12.3617509,24.524667 12.19125,24.466 C12.0207491,24.407333 11.8181678,24.378 11.5835,24.378 L10.6155,24.378 L10.6155,26.919 Z M23.5455,26.9905 C23.5455,27.5698362 23.4455843,28.1042476 23.24575,28.59375 C23.0459157,29.0832524 22.7645018,29.5067482 22.4015,29.86425 C22.0384982,30.2217518 21.6012526,30.5004157 21.08975,30.70025 C20.5782474,30.9000843 20.0108365,31 19.3875,31 L16.2745,31 L16.2745,22.9865 L19.3875,22.9865 C20.0108365,22.9865 20.5782474,23.0873323 21.08975,23.289 C21.6012526,23.4906677 22.0384982,23.7693316 22.4015,24.125 C22.7645018,24.4806684 23.0459157,24.9032476 23.24575,25.39275 C23.4455843,25.8822524 23.5455,26.4148305 23.5455,26.9905 L23.5455,26.9905 Z M21.6425,26.9905 C21.6425,26.594498 21.5911672,26.2370016 21.4885,25.918 C21.3858328,25.5989984 21.238251,25.3285844 21.04575,25.10675 C20.853249,24.8849156 20.6176681,24.7144173 20.339,24.59525 C20.0603319,24.4760827 19.7431684,24.4165 19.3875,24.4165 L18.1445,24.4165 L18.1445,29.57 L19.3875,29.57 C19.7431684,29.57 20.0603319,29.5104173 20.339,29.39125 C20.6176681,29.2720827 20.853249,29.1015844 21.04575,28.87975 C21.238251,28.6579156 21.3858328,28.3875016 21.4885,28.0685 C21.5911672,27.7494984 21.6425,27.3901687 21.6425,26.9905 L21.6425,26.9905 Z M30.0955,22.9865 L30.0955,24.4165 L26.8065,24.4165 L26.8065,26.446 L29.5455,26.446 L29.5455,27.8815 L26.8065,27.8815 L26.8065,31 L24.9365,31 L24.9365,22.9865 L30.0955,22.9865 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Presentation":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-filePpt",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M10.9565,28.3215 L10.9565,31 L9.0975,31 L9.0975,22.9865 L11.9245,22.9865 C12.4891695,22.9865 12.9740813,23.053416 13.37925,23.18725 C13.7844187,23.321084 14.118082,23.5053322 14.38025,23.74 C14.642418,23.9746678 14.8358327,24.2514984 14.9605,24.5705 C15.0851673,24.8895016 15.1475,25.2341648 15.1475,25.6045 C15.1475,26.0041687 15.083334,26.3708317 14.955,26.7045 C14.826666,27.0381683 14.6305013,27.3241655 14.3665,27.5625 C14.1024987,27.8008345 13.7679187,27.986916 13.36275,28.12075 C12.9575813,28.254584 12.4781694,28.3215 11.9245,28.3215 L10.9565,28.3215 Z M10.9565,26.919 L11.9245,26.919 C12.4085024,26.919 12.7568323,26.8035012 12.9695,26.5725 C13.1821677,26.3414988 13.2885,26.0188354 13.2885,25.6045 C13.2885,25.4211657 13.2610003,25.2543341 13.206,25.104 C13.1509997,24.9536659 13.0675839,24.8244172 12.95575,24.71625 C12.8439161,24.6080828 12.7027509,24.524667 12.53225,24.466 C12.3617491,24.407333 12.1591678,24.378 11.9245,24.378 L10.9565,24.378 L10.9565,26.919 Z M18.4745,28.3215 L18.4745,31 L16.6155,31 L16.6155,22.9865 L19.4425,22.9865 C20.0071695,22.9865 20.4920813,23.053416 20.89725,23.18725 C21.3024187,23.321084 21.636082,23.5053322 21.89825,23.74 C22.160418,23.9746678 22.3538327,24.2514984 22.4785,24.5705 C22.6031673,24.8895016 22.6655,25.2341648 22.6655,25.6045 C22.6655,26.0041687 22.601334,26.3708317 22.473,26.7045 C22.344666,27.0381683 22.1485013,27.3241655 21.8845,27.5625 C21.6204987,27.8008345 21.2859187,27.986916 20.88075,28.12075 C20.4755813,28.254584 19.9961694,28.3215 19.4425,28.3215 L18.4745,28.3215 Z M18.4745,26.919 L19.4425,26.919 C19.9265024,26.919 20.2748323,26.8035012 20.4875,26.5725 C20.7001677,26.3414988 20.8065,26.0188354 20.8065,25.6045 C20.8065,25.4211657 20.7790003,25.2543341 20.724,25.104 C20.6689997,24.9536659 20.5855839,24.8244172 20.47375,24.71625 C20.3619161,24.6080828 20.2207509,24.524667 20.05025,24.466 C19.8797491,24.407333 19.6771678,24.378 19.4425,24.378 L18.4745,24.378 L18.4745,26.919 Z M29.9525,22.9865 L29.9525,24.4605 L27.6975,24.4605 L27.6975,31 L25.8385,31 L25.8385,24.4605 L23.5835,24.4605 L23.5835,22.9865 L29.9525,22.9865 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Rich Text File":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-fileRtf",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26,0 L26,11.7296861 C26,12.8319383 26.8984843,13.7254902 27.999569,13.7254902 L39.0718954,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M11.4185,28.0355 L11.4185,31 L9.5595,31 L9.5595,22.9865 L12.1665,22.9865 C12.7458362,22.9865 13.2399146,23.0460827 13.64875,23.16525 C14.0575854,23.2844173 14.3912487,23.4503323 14.64975,23.663 C14.9082513,23.8756677 15.0961661,24.1268319 15.2135,24.4165 C15.3308339,24.7061681 15.3895,25.0214983 15.3895,25.3625 C15.3895,25.6228346 15.354667,25.8684988 15.285,26.0995 C15.215333,26.3305012 15.1117507,26.5440824 14.97425,26.74025 C14.8367493,26.9364176 14.6680843,27.1114992 14.46825,27.2655 C14.2684157,27.4195008 14.0383346,27.5459995 13.778,27.645 C13.9026673,27.7073336 14.0190828,27.7843329 14.12725,27.876 C14.2354172,27.9676671 14.3298329,28.0794993 14.4105,28.2115 L16.1155,31 L14.4325,31 C14.1208318,31 13.8971673,30.8826678 13.7615,30.648 L12.4305,28.3215 C12.371833,28.2188328 12.3030837,28.1455002 12.22425,28.1015 C12.1454163,28.0574998 12.0345007,28.0355 11.8915,28.0355 L11.4185,28.0355 Z M11.4185,26.754 L12.1665,26.754 C12.4195013,26.754 12.6349158,26.721917 12.81275,26.65775 C12.9905842,26.593583 13.1363328,26.5046672 13.25,26.391 C13.3636672,26.2773328 13.4461664,26.1444174 13.4975,25.99225 C13.5488336,25.8400826 13.5745,25.6760009 13.5745,25.5 C13.5745,25.1479982 13.4599178,24.873001 13.23075,24.675 C13.0015822,24.476999 12.6468357,24.378 12.1665,24.378 L11.4185,24.378 L11.4185,26.754 Z M22.8635,22.9865 L22.8635,24.4605 L20.6085,24.4605 L20.6085,31 L18.7495,31 L18.7495,24.4605 L16.4945,24.4605 L16.4945,22.9865 L22.8635,22.9865 Z M29.2925,22.9865 L29.2925,24.4165 L26.0035,24.4165 L26.0035,26.446 L28.7425,26.446 L28.7425,27.8815 L26.0035,27.8815 L26.0035,31 L24.1335,31 L24.1335,22.9865 L29.2925,22.9865 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Spreadsheet":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-fileXls",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M11.883,26.8805 L9.4025,22.9865 L11.2615,22.9865 C11.3825006,22.9865 11.4714164,23.0020832 11.52825,23.03325 C11.5850836,23.0644168 11.6354998,23.1166663 11.6795,23.19 L13.2745,25.8905 C13.2928334,25.8428331 13.3139165,25.7970002 13.33775,25.753 C13.3615835,25.7089998 13.3881665,25.6631669 13.4175,25.6155 L14.8145,23.2175 C14.9061671,23.0634992 15.0308325,22.9865 15.1885,22.9865 L16.9705,22.9865 L14.457,26.798 L17.0255,31 L15.1665,31 C15.0454994,31 14.947417,30.970667 14.87225,30.912 C14.797083,30.853333 14.7375002,30.7836671 14.6935,30.703 L13.0875,27.898 C13.0581665,27.9786671 13.0251668,28.048333 12.9885,28.107 L11.4925,30.703 C11.4484998,30.7800004 11.3898337,30.8487497 11.3165,30.90925 C11.2431663,30.9697503 11.1515005,31 11.0415,31 L9.3035,31 L11.883,26.8805 Z M20.0995,29.515 L23.0695,29.515 L23.0695,31 L18.2405,31 L18.2405,22.9865 L20.0995,22.9865 L20.0995,29.515 Z M28.9155,24.6145 C28.8604997,24.7025004 28.8027503,24.7684998 28.74225,24.8125 C28.6817497,24.8565002 28.6038338,24.8785 28.5085,24.8785 C28.4241662,24.8785 28.3334172,24.8519169 28.23625,24.79875 C28.1390828,24.7455831 28.0290839,24.6860003 27.90625,24.62 C27.7834161,24.5539997 27.6431675,24.4944169 27.4855,24.44125 C27.3278325,24.3880831 27.1481677,24.3615 26.9465,24.3615 C26.5981649,24.3615 26.3387509,24.4357493 26.16825,24.58425 C25.9977491,24.7327507 25.9125,24.9334987 25.9125,25.1865 C25.9125,25.3478341 25.9638328,25.4816661 26.0665,25.588 C26.1691672,25.6943339 26.3039158,25.7859996 26.47075,25.863 C26.6375842,25.9400004 26.8282489,26.010583 27.04275,26.07475 C27.2572511,26.138917 27.4763322,26.2104163 27.7,26.28925 C27.9236678,26.3680837 28.1427489,26.4606661 28.35725,26.567 C28.5717511,26.6733339 28.7624158,26.8089992 28.92925,26.974 C29.0960842,27.1390008 29.2308328,27.3397488 29.3335,27.57625 C29.4361672,27.8127512 29.4875,28.0978317 29.4875,28.4315 C29.4875,28.8018352 29.423334,29.1483317 29.295,29.471 C29.166666,29.7936683 28.9805846,30.0750821 28.73675,30.31525 C28.4929154,30.5554179 28.1922518,30.7442493 27.83475,30.88175 C27.4772482,31.0192507 27.0711689,31.088 26.6165,31.088 C26.3671654,31.088 26.1132513,31.0623336 25.85475,31.011 C25.5962487,30.9596664 25.3460012,30.8872505 25.104,30.79375 C24.8619988,30.7002495 24.6346677,30.589334 24.422,30.461 C24.2093323,30.332666 24.0241675,30.1896675 23.8665,30.032 L24.4165,29.163 C24.4568335,29.0969997 24.5136663,29.0438335 24.587,29.0035 C24.6603337,28.9631665 24.7391662,28.943 24.8235,28.943 C24.9335006,28.943 25.0444161,28.977833 25.15625,29.0475 C25.2680839,29.117167 25.3945826,29.1941662 25.53575,29.2785 C25.6769174,29.3628338 25.8391658,29.439833 26.0225,29.5095 C26.2058343,29.579167 26.4221654,29.614 26.6715,29.614 C27.008835,29.614 27.2709991,29.5397507 27.458,29.39125 C27.6450009,29.2427493 27.7385,29.0071683 27.7385,28.6845 C27.7385,28.4974991 27.6871672,28.3453339 27.5845,28.228 C27.4818328,28.1106661 27.3470842,28.0135004 27.18025,27.9365 C27.0134158,27.8594996 26.8236677,27.791667 26.611,27.733 C26.3983323,27.674333 26.1801678,27.6092504 25.9565,27.53775 C25.7328322,27.4662496 25.5146677,27.3782505 25.302,27.27375 C25.0893323,27.1692495 24.8995842,27.0317509 24.73275,26.86125 C24.5659158,26.6907491 24.4311672,26.4780846 24.3285,26.22325 C24.2258328,25.9684154 24.1745,25.6540019 24.1745,25.28 C24.1745,24.9793318 24.2349994,24.6860014 24.356,24.4 C24.4770006,24.1139986 24.6548322,23.8591678 24.8895,23.6355 C25.1241678,23.4118322 25.4119983,23.233084 25.753,23.09925 C26.0940017,22.965416 26.4844978,22.8985 26.9245,22.8985 C27.1701679,22.8985 27.4094155,22.9177498 27.64225,22.95625 C27.8750845,22.9947502 28.095999,23.051583 28.305,23.12675 C28.514001,23.201917 28.7092491,23.2917495 28.89075,23.39625 C29.0722509,23.5007505 29.2344993,23.6189993 29.3775,23.751 L28.9155,24.6145 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Zip":n,o=t.desc,a=void 0===o?"Paper icon with one corner bent inwards":o,s=t.width,l=void 0===s?"40":s,c=t.height,u=void 0===c?"50":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 40 50",width:l,height:u,className:i()("i i-fileZip",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),e.createElement("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"}),e.createElement("path",{d:"M16.649,22.9865 L16.649,23.6575 C16.649,23.7528338 16.6334168,23.8463329 16.60225,23.938 C16.5710832,24.0296671 16.5280003,24.1158329 16.473,24.1965 L12.711,29.57 L16.528,29.57 L16.528,31 L10.346,31 L10.346,30.285 C10.346,30.2006662 10.3606665,30.1172504 10.39,30.03475 C10.4193335,29.9522496 10.4596664,29.876167 10.511,29.8065 L14.284,24.4165 L10.654,24.4165 L10.654,22.9865 L16.649,22.9865 Z M20.031,31 L18.161,31 L18.161,22.9865 L20.031,22.9865 L20.031,31 Z M23.875,28.3215 L23.875,31 L22.016,31 L22.016,22.9865 L24.843,22.9865 C25.4076695,22.9865 25.8925813,23.053416 26.29775,23.18725 C26.7029187,23.321084 27.036582,23.5053322 27.29875,23.74 C27.560918,23.9746678 27.7543327,24.2514984 27.879,24.5705 C28.0036673,24.8895016 28.066,25.2341648 28.066,25.6045 C28.066,26.0041687 28.001834,26.3708317 27.8735,26.7045 C27.745166,27.0381683 27.5490013,27.3241655 27.285,27.5625 C27.0209987,27.8008345 26.6864187,27.986916 26.28125,28.12075 C25.8760813,28.254584 25.3966694,28.3215 24.843,28.3215 L23.875,28.3215 Z M23.875,26.919 L24.843,26.919 C25.3270024,26.919 25.6753323,26.8035012 25.888,26.5725 C26.1006677,26.3414988 26.207,26.0188354 26.207,25.6045 C26.207,25.4211657 26.1795003,25.2543341 26.1245,25.104 C26.0694997,24.9536659 25.9860839,24.8244172 25.87425,24.71625 C25.7624161,24.6080828 25.6212509,24.524667 25.45075,24.466 C25.2802491,24.407333 25.0776678,24.378 24.843,24.378 L23.875,24.378 L23.875,26.919 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Fill in the Blank":n,o=t.desc,a=void 0===o?"Pencil writing on a surface":o,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"15":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 15 15",width:l,height:u,className:i()("i i-fillInTheBlank",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"More":n,o=t.desc,a=void 0===o?"Filled caret pointing right":o,s=t.width,l=void 0===s?"7":s,c=t.height,u=void 0===c?"5":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 5 7",width:l,height:u,className:i()("i i-filledChevronRight",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",null,e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 3.625L1 1v5.25z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.className,r=t.decorative,o=void 0===r||r,a=t.desc,s=void 0===a?"Heart":a,l=t.focusable,c=void 0===l?"false":l,u=t.height,d=void 0===u?"16":u,f=t.isFilled,p=void 0===f||f,h=t.title,m=void 0===h?"Heart":h,g=t.width,v=void 0===g?"16":g;return e.createElement("svg",{"aria-hidden":o,viewBox:"0 0 16 16",width:v,height:d,className:i()("i i-heart".concat(p?"Filled":"Outline"),n),focusable:c},e.createElement("title",null,m),e.createElement("desc",null,s),e.createElement("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Lock":n,o=t.desc,a=void 0===o?"Closed padlock":o,s=t.width,l=void 0===s?"14":s,c=t.height,u=void 0===c?"19":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 14 19",width:l,height:u,className:i()("i",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("defs",null,e.createElement("rect",{height:"12",id:"lock-a",rx:"2",width:"14",y:"6"}),e.createElement("mask",{fill:"#fff",height:"12",id:"lock-d",width:"14",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-a"})),e.createElement("path",{d:"M0 0h8v4H0z",id:"lock-e"}),e.createElement("circle",{cx:"4",cy:"4",id:"lock-b",r:"4"}),e.createElement("mask",{fill:"#fff",height:"8",id:"lock-g",width:"8",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-b"})),e.createElement("path",{d:"M8 12.732V14c0 .552-.444 1-1 1-.552 0-1-.444-1-1v-1.268a2 2 0 1 1 2 0z",id:"lock-c"}),e.createElement("mask",{fill:"#fff",height:"6",id:"lock-h",width:"4",x:"0",y:"0"},e.createElement("use",{xlinkHref:"#lock-c"}))),e.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(0 .625)"},e.createElement("use",{mask:"url(#lock-d)",stroke:"#313537",strokeWidth:"2",xlinkHref:"#lock-a"}),e.createElement("g",{transform:"translate(3)"},e.createElement("mask",{fill:"#fff",id:"lock-f"},e.createElement("use",{xlinkHref:"#lock-e"})),e.createElement("g",{mask:"url(#lock-f)",stroke:"#313537",strokeWidth:"2"},e.createElement("use",{mask:"url(#lock-g)",xlinkHref:"#lock-b"}))),e.createElement("path",{d:"M3 4h1v2H3zM10 4h1v2h-1z",fill:"#313537"}),e.createElement("use",{mask:"url(#lock-h)",stroke:"#313537",strokeWidth:"2",xlinkHref:"#lock-c"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Matching":n,o=t.desc,a=void 0===o?"Two rows of stacked squares":o,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"15":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 15 15",width:l,height:u,className:i()("i i-matching",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Choice":n,o=t.desc,a=void 0===o?"Stacked circles to the left of stacked lines":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:i()("i i-multipleChoice",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),e.createElement("circle",{cx:"7.904",cy:"7.904",r:"1.904"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Multiple Response":n,o=t.desc,a=void 0===o?"A box with a checkmark in it":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:i()("i i-multipleResponse",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Not Allowed":n,o=t.desc,a=void 0===o?"A circle with a slanted line through it":o,s=t.width,l=void 0===s?"12":s,c=t.height,u=void 0===c?"12":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 12 12",width:l,height:u,className:i()("i i-notAllowed",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Pick One":n,o=t.desc,a=void 0===o?"Pick One":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"14":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:u,viewBox:"0 0 16 14",className:i()("i i-pickOne",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{fillRule:"evenodd"},e.createElement("path",{fillRule:"nonzero",d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z"}),e.createElement("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Question box":n,o=t.desc,a=void 0===o?"Question mark inside of a square":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"16":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 16",width:l,height:u,className:i()("i",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),e.createElement("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),e.createElement("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Sortable":n,o=t.desc,a=void 0===o?"Three horizontal lines stacked on top of each other":o,s=t.width,l=void 0===s?"22":s,c=t.height,u=void 0===c?"7":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 22 7",width:l,height:u,className:i()("i i-sortable",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("rect",{x:"0",y:"0",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"3",width:"100%",height:"1",strokeWidth:"1"}),e.createElement("rect",{x:"0",y:"6",width:"100%",height:"1",strokeWidth:"1"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Touch":n,o=t.desc,a=void 0===o?"Hand with a finger extended and a semi-circle around the finger":o,s=t.width,l=void 0===s?"15":s,c=t.height,u=void 0===c?"16":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 15 16",width:l,height:u,className:i()("i",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),e.createElement("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"Video camera":n,o=t.desc,a=void 0===o?"Video camera":o,s=t.width,l=void 0===s?"16":s,c=t.height,u=void 0===c?"12":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 16 12",width:l,height:u,className:i()("vgIcon",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("g",{transform:"translate(-1 -2)"},e.createElement("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"X mark filled":n,o=t.desc,a=void 0===o?"X mark inside of a circle that is filled in with a color":o,s=t.width,l=void 0===s?"20":s,c=t.height,u=void 0===c?"20":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 20 20",width:l,height:u,className:i()("i i-xMarkFilled",d),focusable:p,role:"img"},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"}))}}).call(this,n(0))},function(e,t,n){var r=n(2120);e.exports=function(e,t){var n=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++n<t;){var a=r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(313);e.exports=function(e){return r(e)?!Object.keys(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(2124),i=r.Nothing,o=r.Just,a=n(706);e.exports=function(e){return function(t){return a(e,t)?o(t):i()}}},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=n(22),a=function(e){var t=e.canProceed;return i()("quiz-card__actions",{"quiz-card__actions--proceed":t})},s=function(e){var t=e.canSubmit;return i()("quiz-card__button",{"quiz-card__button--disabled":!t,"brand--background":t})};t.a=function(t){var n=t.allowTabNavigation,r=t.canProceed,i=t.canSubmit,l=t.onSubmit,c=t.quizSubmit,u=n&&i;return e.createElement("div",{className:a({canProceed:r})},e.createElement("div",{className:"quiz-card__submit brand--ui"},e.createElement("button",{"aria-disabled":!i,"aria-hidden":!n,className:s({canSubmit:i}),onClick:l,tabIndex:Object(o.l)(u)},c)))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2127);var r=n(2),i=n.n(r),o=function(e){var t=e.isActive,n=e.isComplete;return i()("quiz-card",{"quiz-card--active":t,"quiz-card--done":n})};t.a=function(t){var n=t.children,r=t.isActive,i=t.isComplete;return e.createElement("div",{className:o({isActive:r,isComplete:i})},e.createElement("div",{className:"quiz-card__container"},e.createElement("div",{className:"quiz-card__row"},e.createElement("div",{className:"quiz-card__main"},n))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=n(22),a=function(e){var t=e.canProceed,n=e.hasFeedback;return i()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":n})},s=function(e){var t=e.isCorrect;return i()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct brand--color":t})},l=function(t){var n=t.allowFocus,r=t.onNext,i=t.quizNext;return e.createElement("div",{className:"quiz-card__feedback-button"},e.createElement("button",{"aria-hidden":!n,className:"quiz-card__button brand--background brand--ui",onClick:r,tabIndex:Object(o.l)(n)},i))};t.a=function(t){var n=t.allowTabNavigation,r=t.canProceed,i=t.feedbackRef,o=t.hasFeedback,c=t.isCorrect,u=t.labels,d=t.onNext,f=t.quizCorrect,p=t.quizIncorrect,h=t.quizNext,m=t.renderText,g=n&&r,v=u.feedbackGroup;return e.createElement("div",{"aria-hidden":!g,"aria-label":v,className:a({canProceed:r,hasFeedback:o}),role:"group",ref:i},e.createElement("div",{className:"quiz-card__main--feedback"},e.createElement("div",{className:"quiz-card__feedback-wrap"},e.createElement("div",{className:s({isCorrect:c})},e.createElement("i",{className:c?"icon icon-Master-05":"icon icon-Master-06"})),e.createElement("div",{className:"quiz-card__feedback-label brand--head"},c?f:p),m()),d?l({allowFocus:g,onNext:d,quizNext:h}):null))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=function(e){var t=e.hasNoBorder,n=e.isComplete,r=e.type;return i()("quiz-card__interactive",{"quiz-card__interactive--no-border":t,"quiz-card__interactive--done":n,"quiz-card__interactive--fill":"FILL_IN_THE_BLANK"===r})};t.a=function(t){var n=t.children,r=t.hasNoBorder,i=t.isComplete,a=t.type;return e.createElement("div",{className:o({hasNoBorder:r,isComplete:i,type:a})},n)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(184),i=n.n(r),o=n(398),a=n.n(o),s=n(1207),l=n.n(s),c=n(1208),u=n.n(c),d=n(25),f=n.n(d),p=n(1209),h=n(151),m=n(183),g=i()(u()(["tmp"]),f()({},["media"])),v=l()(g,h.a),y=a()(v,h.a),b=Object(p.a)(y,function(t){var n=t.allowTabNavigation,r=t.blockId,i=t.enableVideoPlaybackSpeed,o=t.index,a=t.labels,s=t.media,l=t.settings;return e.createElement("div",{className:"quiz-card__media"},e.createElement(m.a,{allowTabNavigation:n,blockId:r,enableVideoPlaybackSpeed:i,index:o,labels:a,media:s,opts:l}))});t.a=b}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(4),i=n.n(r),o=n(471);t.a=function(t){var n,r=t.num,a=t.total,s=t.quizQuestion;return e.createElement("div",{className:"quiz-card__number"},e.createElement("div",{className:"quiz-card__step-label brand--body"},s),e.createElement("div",{className:"quiz-card__counter brand--color brand--ui"},i()(n="".concat(Object(o.a)(r),"/")).call(n,Object(o.a)(a))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(52);t.a=function(t){var n=t.allowTabNavigation,i=t.value;return e.createElement(r.a,{className:"quiz-card__title brand--body brand--linkColor",value:i,allowTabNavigation:n})}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2128);var r=n(6),i=n.n(r),o=n(208),a=n.n(o),s=n(35),l=n.n(s),c=n(26),u=n.n(c),d=n(41),f=n.n(d),p=n(271),h=n.n(p),m=n(32),g=n.n(m),v=n(2),y=n.n(v),b=n(47),_=n(22),w=n(27),E=function(t){var n=t.isComplete,r=t.isCorrect;if(t.revealAnswers){var i=y()("quiz-fill__icon",{"quiz-fill__icon--visible":n});return e.createElement("div",{className:i},k(r))}},k=function(t){return t?e.createElement(b.e,{className:"brand--fill"}):e.createElement(b.G,null)},x=i()(a()(", "),l()(i()(h.a,f()("","title")))),S=function(t){var n=t.isComplete,r=t.options,i=t.revealAnswers,o=t.quizAcceptableResponses;if(i){var a=y()("quiz-fill__options",{"quiz-fill__options--visible":n});return e.createElement("div",{className:a},o,": ",x(r))}};t.a=function(t){var n=t.allowTabNavigation,r=t.isComplete,o=t.isCorrect,a=t.onChange,s=t.onEnterToSubmit,l=t.options,c=t.revealAnswers,d=t.value,f=t.quizAcceptableResponses,p=t.quizAnswerPlaceholder;return e.createElement("div",{className:"quiz-fill"},e.createElement("div",{className:"quiz-fill__container"},E({isComplete:r,isCorrect:o,revealAnswers:c}),e.createElement("input",{"aria-hidden":!n,className:"quiz-fill__input brand--body ignore-prefers",onChange:i()(a,u()(["target","value"])),onKeyDown:g()(w.c,s),placeholder:p,tabIndex:Object(_.l)(n),type:"text",value:d})),S({isComplete:r,options:l,revealAnswers:c,quizAcceptableResponses:f}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return fe});var r=n(37),i=n.n(r),o=n(31),a=n(159),s=n.n(a),l=n(3),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(13),m=n(12),g=(n(2129),n(2130),n(160)),v=n.n(g),y=n(322),b=n.n(y),_=n(108),w=n.n(_),E=n(2),k=n.n(E),x=n(6),S=n.n(x),T=n(44),C=n.n(T),O=n(1212),A=n.n(O),N=n(212),I=n.n(N),M=n(94),j=n.n(M),L=n(408),P=n.n(L),D=n(72),R=n.n(D),F=n(35),B=n.n(F),U=n(99),q=n.n(U),z=n(26),H=n.n(z),W=n(82),$=n.n(W),Y=n(264),V=n.n(Y),K=n(166),G=n.n(K),X=n(80),Q=n(746),Z=n(151),J=n(326),ee=n(78),te=n(90),ne=n(135),re=n.n(ne),ie=n(84),oe=n(22),ae=n(27),se=n(47),le=v()(B.a),ce=S()(q.a,R.a),ue=function(t){function n(e){var t,r;return Object(u.a)(this,n),(r=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={isDragging:!1},r.setDrag=c()(t=r.setDrag).call(t,Object(h.a)(r)),r}return Object(m.a)(n,t),Object(d.a)(n,[{key:"focus",value:function(){this.listItem.focus()}},{key:"setDrag",value:function(e){this.setState({isDragging:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,i=n.allowTabNavigation,o=n.id,a=n.isEnabled,s=n.isKeySelected,l=n.isMatched,c=n.height,u=n.nextIndex,d=n.onDragEnd,f=n.onDragStart,p=n.onKeyDown,h=n.prefersKeyboardNavigation,m=n.prevIndex,g=n.text,v=n.willBeReplaced,y=i&&r,b=ye({isMatched:l,prefersKeyboardNavigation:h,willBeReplaced:v});return e.createElement(ie.TransitionGroup,{className:this.state.isDragging?"".concat(b," dragging"):b,component:"li",onKeyDown:p,style:{height:c}},e.createElement(J.a,{key:o},e.createElement(Q.a,{childRef:function(e){t.listItem=e},isEnabled:a,key:o,nextIndex:u,onDragEnd:d,onDragStart:f,prevIndex:m,setDrag:this.setDrag},e.createElement("div",{className:"quiz-match__item-wrapper","aria-hidden":!y,tabIndex:Object(oe.l)(y)},e.createElement(pe,{className:me({isKeySelected:s})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement(se.D,{className:"quiz-match__item-sortable"}),e.createElement(se.j,{className:"quiz-match__item-sortable--dots"}),e.createElement("span",{"data-match-content":!0},g))))))}}]),n}(e.Component),de=function(t){function n(){return Object(u.a)(this,n),Object(f.a)(this,Object(p.a)(n).apply(this,arguments))}return Object(m.a)(n,t),Object(d.a)(n,[{key:"focus",value:function(){this.listItem.focus()}},{key:"render",value:function(){var t=this,n=this.props,r=n.allowMovableKeySelect,i=n.allowTabNavigation,o=n.id,a=n.isEnabled,s=n.height,l=n.onDrop,c=n.onKeyDown,u=n.onKeyUp,d=n.onEnter,f=n.onLeave,p=n.prefersKeyboardNavigation,h=n.text,m=i&&!r;return e.createElement(Q.b,{activeClassName:"quiz-match__item--active",childRef:function(e){t.listItem=e},isEnabled:a,key:o,onDrop:l,onEnter:d,onLeave:f},e.createElement("li",{"aria-hidden":!m,className:be({prefersKeyboardNavigation:p}),onKeyDown:c,onKeyUp:u,style:{height:s},tabIndex:Object(oe.l)(m)},e.createElement(he,{className:ge({isSelectable:!r})}),e.createElement("div",{className:"quiz-match__item-content"},e.createElement("span",{"data-match-content":!0},h))))}}]),n}(e.Component),fe=function(t){function n(e){var t,r,i;return Object(u.a)(this,n),(i=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,height:null,isLoaded:!1,keySelectedSourceIndex:null,titleIndices:e.titleIndices,toDropRow:null},i.moveableItems=[],i.matchItems=[],i.handleResize=re()(c()(t=i.handleResize).call(t,Object(h.a)(i)),100),i.handleCancelKeyDrop=c()(r=i.handleCancelKeyDrop).call(r,Object(h.a)(i)),i}return Object(m.a)(n,t),Object(d.a)(n,[{key:"componentDidMount",value:function(){this.setHeights(),window.addEventListener("resize",this.handleResize),window.addEventListener("keydown",this.handleCancelKeyDrop),document.addEventListener("mousedown",this.handleCancelKeyDrop)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),window.removeEventListener("keydown",this.handleCancelKeyDrop),document.removeEventListener("mousedown",this.handleCancelKeyDrop)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.titleIndices,n=this.props,r=n.isKnowledgeCheck,i=n.isLearner,o=n.isRetake,a=n.matches,l=e.isRetake,c=e.matches,u=e.matchIndices,d=e.titleIndices,f=a!==c,p=!o&&l;if(!R()(c)||r)if(f){var h,m=Object(ee.f)(u),g=s()(h=V()(c)).call(h,m,t);this.setState({titleIndices:g})}else if(r){var v=Ee({titleIndices:t,nextTitleIndices:d,isLearner:i,isNewRetake:p});this.setState({titleIndices:v})}}},{key:"componentDidUpdate",value:function(){var e=this.state,t=e.dragIndex,n=e.dropZoneIndex;b()(Z.b,[t,n])&&(this.props.onMatch({dragIndex:t,dropZoneIndex:n}),this.setState({dragIndex:null,dropZoneIndex:null}))}},{key:"render",value:function(){var t=this;return e.createElement("div",{className:this.getClassName(),ref:function(e){t.el=e}},this.buildResultsList(),this.buildMovableList(),this.buildMatchList())}},{key:"getClassName",value:function(){return k()("quiz-match",{"quiz-match--completed":this.props.isComplete,"quiz-match--hidden":!this.state.isLoaded})}},{key:"buildResultsList",value:function(){var e,t=le(c()(e=this.buildResultItem).call(e,this));return S()(we,t,ee.i)(this.props.matchIndices)}},{key:"buildResultItem",value:function(t){var n=this.props,r=n.isComplete,i=n.matchIndices,o=n.revealAnswers,a=this.state,s=a.height,l=r&&o,c=a.titleIndices[t],u=c===i[t],d=k()("quiz-match__item-feedback",{"quiz-match__item-feedback--hidden":!l});return l?u?e.createElement("li",{className:d,key:t,style:{height:s}},e.createElement(se.e,{className:"brand--fill"})):e.createElement("li",{className:d,key:t,style:{height:s}},e.createElement("span",{className:"quiz-match__item-feedback-bubble"},j()(P()(c,i)))):e.createElement("li",{className:d,key:t,style:{height:s}})}},{key:"buildMovableList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.answers,a=n.isActive,s=n.matches,l=n.prefersKeyboardNavigation,u=this.state,d=u.allowMovableKeySelect,f=u.dragIndex,p=u.height,h=u.keySelectedSourceIndex,m=u.titleIndices,g=u.toDropRow;return S()(_e,le(function(n,r){return e.createElement(ue,Object(o.a)({key:"movable-item-".concat(r),nextIndex:r,prevIndex:g,ref:function(e){t.moveableItems[r]=e}},n))}))(le(function(e,n){var o,u,v,y=H()([e],i),b=y.id,_=y.title,w=Object(Z.b)(f)&&n===g&&g!==P()(f,m);return{allowMovableKeySelect:d,allowTabNavigation:r,height:p,id:b,isEnabled:a,isKeySelected:e===h,isMatched:Object(Z.b)(s[e]),onDragEnd:c()(o=t.handleDragEnd).call(o,t),onDragStart:c()(u=t.handleDragStart).call(u,t,e),onKeyDown:c()(v=t.handleMovableKeyDown).call(v,t,e,n),prefersKeyboardNavigation:l,text:_,willBeReplaced:w}},m))}},{key:"buildMatchList",value:function(){var t=this,n=this.props,r=n.allowTabNavigation,i=n.answers,a=n.isActive,s=n.matchIndices,l=n.prefersKeyboardNavigation,u=this.state,d=u.allowMovableKeySelect,f=u.height;return S()(_e,le(function(n,r){return e.createElement(de,Object(o.a)({key:"match-item-".concat(r),ref:function(e){t.matchItems[r]=e}},n))}))(le(function(e,n){var o,s,u,p,h,m=H()([e],i),g=m.id,v=m.matchTitle;return{allowMovableKeySelect:d,allowTabNavigation:r,height:f,id:g,isEnabled:a,onDrop:c()(o=t.handleDrop).call(o,t,e),onEnter:c()(s=t.handleDropEnter).call(s,t,n),onKeyDown:c()(u=t.handleMatchKeyDown).call(u,t,e,n),onKeyUp:c()(p=t.handleMatchKeyUp).call(p,t),onLeave:c()(h=t.handleDropLeave).call(h,t),prefersKeyboardNavigation:l,text:v}},s))}},{key:"handleDragEnd",value:function(){var e=this;i()(function(){e.setState({dragIndex:null})},0)}},{key:"handleDragStart",value:function(e){this.setState({dragIndex:e})}},{key:"handleDropEnter",value:function(e){this.setState({toDropRow:e})}},{key:"handleDrop",value:function(e){this.setState({dropZoneIndex:e})}},{key:"handleDropLeave",value:function(){this.setState({toDropRow:null})}},{key:"handleResize",value:function(){this.setHeights()}},{key:"keySelectMovableAtIndex",value:function(e){this.state.dragIndex===e?this.resetKeySelection():this.setState({allowMovableKeySelect:!1,dragIndex:e,keySelectedSourceIndex:e})}},{key:"keySelectMatch",value:function(e,t){this.setState({dropZoneIndex:e,toDropRow:t})}},{key:"handleMovableKeyDown",value:function(e,t,n){var r=this,i=this.state.allowMovableKeySelect,o=Object(te.a)(function(){return r.keySelectMovableAtIndex(e)}),a=Object(te.a)(function(){return Object(oe.g)({list:r.moveableItems,currentIndex:t})}),s=Object(te.a)(function(){return Object(oe.f)({list:r.moveableItems,currentIndex:t})}),l=Object(te.a)(function(){return!i&&Object(oe.e)({list:r.matchItems,index:t})});C()([[ae.j,o],[ae.b,s],[ae.l,a],[ae.h,l]])(n)}},{key:"handleMatchKeyDown",value:function(e,t,n){var r=this,i=this.props,o=i.canSubmit,a=i.onEnterToSubmit;if(o&&Object(ae.c)(n))a();else{var s=Object(te.a)(function(){return r.keySelectMatch(e,t)}),l=Object(te.a)(function(){return Object(oe.g)({list:r.matchItems,currentIndex:t})}),c=Object(te.a)(function(){return Object(oe.f)({list:r.matchItems,currentIndex:t})}),u=Object(te.a)(function(){return Object(oe.e)({list:r.moveableItems,index:t})});C()([[ae.d,s],[ae.b,c],[ae.l,l],[ae.f,u]])(n)}}},{key:"handleMatchKeyUp",value:function(e){Object(ae.d)(e)&&this.resetKeySelection()}},{key:"handleCancelKeyDrop",value:function(e){("mousedown"===e.type||Object(ae.e)(e))&&this.setState({allowMovableKeySelect:!0,keySelectedSourceIndex:null})}},{key:"resetKeySelection",value:function(){this.setState({allowMovableKeySelect:!0,dragIndex:null,dropZoneIndex:null,keySelectedSourceIndex:null,toDropRow:null})}},{key:"setHeights",value:function(){var e=this.el.querySelectorAll("[data-match-content]"),t=$()(function(e,t){return Math.max(e,t.offsetHeight+32)},0,e);this.setState({height:t,isLoaded:!0})}}]),n}(e.Component),pe=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Draggable item"),e.createElement("desc",null,"Rectangular shape with an arrow on the right side"),e.createElement("polygon",{points:"0,0  298.5,0  312,27.5  298.5,54  0,54"}),e.createElement("rect",{x:"0",y:"0",width:"5",height:"54"}))},he=function(t){var n=t.className;return e.createElement("svg",{className:n,viewBox:"-0.5 -0.5 315 55",preserveAspectRatio:"none",focusable:"false"},e.createElement("title",null,"Drop zone item"),e.createElement("desc",null,"Rectangular shape with a fish-tail shape on the left side"),e.createElement("polygon",{points:"0,0  314,0  314,54  0,54  13.5,27.5  0,0"}))},me=function(e){var t=e.isKeySelected;return k()("quiz-match__item-arrow",{"quiz-match__item-arrow--selected":t})},ge=function(e){var t=e.isSelectable;return k()("quiz-match__item-tail",{"quiz-match__item-tail--selectable":t})},ve=X.a.isIe11||X.a.isEdge,ye=function(e){var t=e.isMatched,n=e.prefersKeyboardNavigation,r=e.willBeReplaced;return k()("quiz-match__item quiz-match__item--draggable",{"quiz-match__item--matched":t,"quiz-match__item--faded":r,"quiz-match__item--ms_browser-focus":n&&ve})},be=function(e){var t=e.prefersKeyboardNavigation;return k()("quiz-match__item quiz-match__item--immobile",{"quiz-match__item--ms_browser-focus":t&&ve})},_e=function(t){return e.createElement("ul",{className:"quiz-match__list brand--body"},t)},we=function(t){return e.createElement("ul",{className:"quiz-match__list quiz-match__list--results"},t)},Ee=function(e){var t=e.titleIndices,n=e.nextTitleIndices,r=e.isNewRetake,i=e.isLearner;if(r&&i)return n;var o=G()(t,n),a=A()(t,n);return ce(a)?G()(a,t):ce(o)?I()(w()(o,t)):t}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return F});var r=n(37),i=n.n(r),o=n(96),a=n.n(o),s=n(3),l=n.n(s),c=n(10),u=n(11),d=n(9),f=n(13),p=n(7),h=n(12),m=n(4),g=n.n(m),v=n(2),y=n.n(v),b=n(239),_=n(36),w=n.n(_),E=n(75),k=n.n(E),x=n(17),S=n.n(x),T=n(53),C=n.n(T),O=n(25),A=n.n(O),N=n(589),I=n.n(N),M=n(32),j=n.n(M),L=k()(["draggableOptions","autoScroll","container"]),P=I()(L),D=j()(w.a,function(){return document.querySelector(".page-wrap")||document.querySelector(".block-knowledge__wrapper")}),R=C()(L,D),F=function(t){function n(e){var t,r,i,o;return Object(c.a)(this,n),(o=Object(u.a)(this,Object(d.a)(n).call(this,e))).state={isDragging:!1,x:0,y:0,zIndex:0},o.handleEnd=l()(t=o.handleEnd).call(t,Object(f.a)(o)),o.handleMove=l()(r=o.handleMove).call(r,Object(f.a)(o)),o.handleStart=l()(i=o.handleStart).call(i,Object(f.a)(o)),o}return Object(h.a)(n,t),Object(p.a)(n,null,[{key:"defaultProps",get:function(){return{childRef:Function.prototype,draggableOptions:{autoScroll:{container:null}},interactOptions:{styleCursor:!1},isEnabled:!0,onDragEnd:Function.prototype,onDragStart:Function.prototype}}}]),Object(p.a)(n,[{key:"componentDidMount",value:function(){this.interact=Object(b.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillEnter",value:function(e){var t=this.props.prevIndex-this.props.nextIndex>0?"up":"down",n=this.el,r="movable-item__will-enter-".concat(t);this.animate({activeClass:"movable-item__will-enter-active",element:n,enterClass:r,timeout:300}).then(e)}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeoutRef)}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"animate",value:function(e){var t=this,n=e.activeClass,r=e.element,o=e.enterClass,s=e.timeout;return new a.a(function(e){r.classList.add(o),i()(function(){r.classList.add(n)},10),t.timeoutRef=i()(function(){r.classList.remove(o,n),e()},s)})}},{key:"enableInteract",value:function(){var e=R(this.props);this.interact.draggable(S()({onstart:this.handleStart,onmove:this.handleMove,onend:this.handleEnd},e.draggableOptions)),this.interactScrollHandler(e)}},{key:"interactScrollHandler",value:function(e){var t=this;this.yBefore=0,this.yAfter=0,P(e).addEventListener("scroll",function(e){t.yBefore=t.yAfter,t.yAfter=e.currentTarget.scrollTop,t.state.isDragging&&t.setState({y:t.state.y+(t.yAfter-t.yBefore)})})}},{key:"disableInteract",value:function(){this.interact.draggable(!1),delete this.yBefore,delete this.yAfter}},{key:"getClassName",value:function(){var e=A()("",["props","className"],this.props.children);return y()(e,"draggable",{"draggable--dragging":this.state.isDragging})}},{key:"getStyle",value:function(){var e,t,n,r,i,o=A()({},["props","style"],this.props.children);return S()(o,(e=this.state,n=e.x,r=e.y,i=e.zIndex,{transform:g()(t="translate(".concat(n,"px, ")).call(t,r,"px)"),zIndex:i}))}},{key:"handleStart",value:function(e){this.props.onDragStart(e),this.props.setDrag(!0),this.setState({isDragging:!0})}},{key:"handleEnd",value:function(e){this.props.onDragEnd(e),this.props.setDrag(!1),this.setState({isDragging:!1,x:0,y:0,zIndex:0})}},{key:"handleMove",value:function(e){var t=e.dx,n=e.dy,r=this.state.x+t,i=this.state.y+n;this.setState({x:r,y:i,zIndex:1})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return b});var r=n(5),i=n(3),o=n.n(i),a=n(10),s=n(11),l=n(9),c=n(13),u=n(7),d=n(12),f=n(2),p=n.n(f),h=n(239),m=n(17),g=n.n(m),v=n(25),y=n.n(v),b=function(t){function n(e){var t,r,i,u;return Object(a.a)(this,n),(u=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={isActive:!1},u.handleEnter=o()(t=u.handleEnter).call(t,Object(c.a)(u)),u.handleLeave=o()(r=u.handleLeave).call(r,Object(c.a)(u)),u.handleDrop=o()(i=u.handleDrop).call(i,Object(c.a)(u)),u}return Object(d.a)(n,t),Object(u.a)(n,null,[{key:"defaultProps",get:function(){return{activeClassName:"",childRef:Function.prototype,droppableOptions:{overlap:.015},interactOptions:{},isEnabled:!0,onDrop:Function.prototype,onEnter:Function.prototype,onLeave:Function.prototype}}}]),Object(u.a)(n,[{key:"componentDidMount",value:function(){this.interact=Object(h.a)(this.el,this.props.interactOptions),this.props.isEnabled&&this.enableInteract()}},{key:"componentWillReceiveProps",value:function(e){!this.props.isEnabled&&e.isEnabled?this.enableInteract():this.props.isEnabled&&!e.isEnabled&&this.disableInteract()}},{key:"render",value:function(){var t=this;return e.cloneElement(e.Children.only(this.props.children),{className:this.getClassName(),ref:function(e){t.el=e,t.props.childRef(e)},style:this.getStyle()})}},{key:"enableInteract",value:function(){this.interact.dropzone(g()({ondrop:this.handleDrop,ondragenter:this.handleEnter,ondragleave:this.handleLeave},this.props.droppableOptions))}},{key:"disableInteract",value:function(){this.interact.dropzone(!1)}},{key:"getClassName",value:function(){var e=this.state.isActive,t=this.props.activeClassName,n=y()("",["props","className"],this.props.children);return p()(n,"droppable",Object(r.a)({"droppable--active":e},t,e))}},{key:"getStyle",value:function(){return y()({},["props","style"],this.props.children)}},{key:"handleEnter",value:function(e){this.props.onEnter(e),this.setState({isActive:!0})}},{key:"handleLeave",value:function(e){this.props.onLeave(e),this.setState({isActive:!1})}},{key:"handleDrop",value:function(e){this.props.onDrop(e),this.setState({isActive:!1})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(3),i=n.n(r),o=n(4),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(12),f=(n(1085),n(160)),p=n.n(f),h=n(35),m=n.n(h),g=n(94),v=n.n(g),y=n(161),b=n.n(y),_=n(51),w=n.n(_),E=n(2),k=n.n(E),x=n(1213),S=n(95),T=n(85),C=p()(m.a),O=function(t){function n(e){var t;return Object(s.a)(this,n),(t=Object(c.a)(this,Object(u.a)(n).call(this,e))).options=[],t}return Object(d.a)(n,t),Object(l.a)(n,[{key:"navigateToNextOption",value:function(){var e=this.props.selectedIndex,t=v()(e||0),n=t<w()(this.options)?t:0;this.options[n].select()}},{key:"navigateToPreviousOption",value:function(){var e=this.props.selectedIndex,t=b()(e),n=t>=0?t:b()(w()(this.options));this.options[n].select()}},{key:"buildOption",value:function(t,n){var r,o,s,l,c=this,u=t.id,d=t.title,f=this.props,p=f.allowTabNavigation,h=f.correctId,m=f.isComplete,g=f.onChange,v=f.onEnterToSubmit,y=f.renderOptionText,b=f.selectedIndex,_=f.uniqueId,w=n===b;return e.createElement("li",{className:N({correctId:h,isComplete:m,optionId:u,optionIndex:n,selectedIndex:b}),key:a()(r="option-".concat(_,"-")).call(r,u)},e.createElement(x.a,{allowTabNavigation:p&&(w||A(n,b)),buttonClassName:I({isComplete:m}),className:"quiz-multiple-choice-option__radio-label",checked:w,id:a()(o="option-".concat(_,"-")).call(o,u),onChange:j({onChange:g,optionIndex:n}),onEnterToSubmit:v,onNavigateToNext:i()(s=this.navigateToNextOption).call(s,this),onNavigateToPrevious:i()(l=this.navigateToPreviousOption).call(l,this),radioIcon:L({correctId:h,isComplete:m,optionId:u}),ref:function(e){c.options[n]=e},title:Object(S.e)(d),value:u},y({optionId:u,title:d})),e.createElement("span",{className:M({correctId:h,isComplete:m,optionId:u,optionIndex:n,selectedIndex:b})}))}},{key:"render",value:function(){var t,n=this.props,r=n.options,o=n.title;return e.createElement("ul",{"aria-label":Object(S.e)(o),role:T.c},C(i()(t=this.buildOption).call(t,this),r))}}]),n}(e.Component),A=function(e,t){return!t&&0===e},N=function(e){var t=e.correctId,n=e.isComplete,r=e.optionId,i=e.optionIndex,o=e.selectedIndex;return k()("quiz-multiple-choice-option",{"quiz-multiple-choice-option--selected":i===o,"quiz-multiple-choice-option--correct":n&&r===t,"quiz-multiple-choice-option--incorrect":n&&r!==t})},I=function(e){var t=e.isComplete;return k()("quiz-multiple-choice-option__radio-btn",{"brand--afterBackground":!t})},M=function(e){var t=e.correctId,n=e.isComplete,r=e.optionId,i=e.optionIndex,o=e.selectedIndex;return k()("quiz-multiple-choice-option__border",{"brand--beforeBorder":n&&i===o&&r===t})},j=function(e){var t=e.onChange,n=e.optionIndex;return function(){return t({optionIndex:n})}},L=function(t){var n=t.correctId,r=t.isComplete,i=t.optionId,o=k()("icon icon-tick",{"brand--color":r&&i===n});return e.createElement("span",null,e.createElement("i",{className:o}),e.createElement("i",{className:"icon icon-close-media-panel"}))}}).call(this,n(0))},function(e,t,n){},function(e,t,n){"use strict";(function(e){var r=n(4),i=n.n(r),o=(n(1085),n(160)),a=n.n(o),s=n(79),l=n.n(s),c=n(35),u=n.n(c),d=n(2),f=n.n(d),p=n(1214),h=n(47),m=a()(u.a),g=function(t){var n=t.allowTabNavigation,r=t.correctIds,o=t.isComplete,a=t.onChange,s=t.onEnterToSubmit,c=t.renderOptionText,u=t.revealAnswers,d=t.selectedIndices,f=t.uniqueId;return function(t,h){var m,g,w=t.id,E=t.title,k=l()(w,r),x=l()(h,d),S=x&&!o||o&&u;return e.createElement("li",{className:v({isComplete:o,isCorrect:k,isSelected:x,revealAnswers:u}),key:i()(m="option-".concat(f,"-")).call(m,w)},e.createElement(p.a,{allowTabNavigation:n,className:"quiz-multiple-choice-option__checkbox-label brand--fill",checked:S,enabled:!o,icon:b({isComplete:o,isCorrect:k,revealAnswers:u}),id:i()(g="option-".concat(f,"-")).call(g,w),onChange:_({onChange:a,optionIndex:h}),onEnterToSubmit:s},c({optionId:w,title:E})),e.createElement("span",{className:y({isComplete:o,isCorrect:k,isSelected:x,revealAnswers:u})}))}},v=function(e){var t=e.isComplete,n=e.isCorrect,r=e.isSelected,i=e.revealAnswers;return f()("quiz-multiple-choice-option",{"quiz-multiple-choice-option--selected":r,"quiz-multiple-choice-option--correct":t&&n&&i,"quiz-multiple-choice-option--incorrect":t&&!n&&i})},y=function(e){var t=e.isComplete,n=e.isCorrect,r=e.isSelected,i=e.revealAnswers;return f()("quiz-multiple-choice-option__border",{"brand--beforeBorder":t&&i&&n&&r})},b=function(t){var n=t.isComplete,r=t.isCorrect;return t.revealAnswers?!n||r?e.createElement(h.d,{className:"brand--fill",width:"9",height:"7"}):e.createElement(h.k,{width:"8",height:"8"}):null},_=function(e){var t=e.onChange,n=e.optionIndex;return function(){return t({optionIndex:n})}};t.a=function(t){var n=t.allowTabNavigation,r=t.correctIds,i=void 0===r?[]:r,o=t.isComplete,a=t.onChange,s=t.onEnterToSubmit,l=t.options,c=t.renderOptionText,u=t.revealAnswers,d=t.selectedIndices,f=void 0===d?[]:d,p=t.uniqueId;return e.createElement("ul",null,m(g({allowTabNavigation:n,correctIds:i,isComplete:o,onChange:a,onEnterToSubmit:s,renderOptionText:c,revealAnswers:u,selectedIndices:f,uniqueId:p}),l))}}).call(this,n(0))},function(e,t,n){e.exports=n(2137)()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=a(n(0)),o=a(n(2141));function a(e){return e&&e.__esModule?e:{default:e}}t.default=(0,o.default)(function(e,t,n,o,a){var s=e[t],l=void 0===s?"undefined":r(s);return i.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected a ReactComponent or a DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===l&&"function"==typeof s.render||1===s.nodeType?null:new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected a ReactComponent or a DOMElement.")}),e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e="function"==typeof e?e():e,o.default.findDOMNode(e)||t};var r,i=n(103),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return(0,i.default)(r.default.findDOMNode(e))};var r=o(n(103)),i=o(n(2142));function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},function(e,t,n){var r=n(2183),i=n(2185),o=function(e){return e instanceof o?e:this instanceof o?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=i.getRgba(e))?this.setValues("rgb",t):(t=i.getHsla(e))?this.setValues("hsl",t):(t=i.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new o(e);var t};o.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return i.hexString(this.values.rgb)},rgbString:function(){return i.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return i.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return i.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return i.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return i.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return i.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return i.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new o,r=this.values,i=n.values;for(var a in r)r.hasOwnProperty(a)&&(e=r[a],"[object Array]"===(t={}.toString.call(e))?i[a]=e.slice(0):"[object Number]"===t?i[a]=e:console.error("unexpected color value:",e));return n}},o.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},o.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},o.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},o.prototype.setValues=function(e,t){var n,i,o=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)o[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)o[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[a[e][0]]){var c=a[e];for(n=0;n<e.length;n++)o[e][n]=t[c[n]];l=t.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===l?o.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(s[e][n],o[e][n])),o[e][n]=Math.round(i);for(var u in a)u!==e&&(o[u]=r[e][u](o[e]));return!0},o.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},o.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:n===r[t]?this:(r[t]=n,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=o),e.exports=o},function(e,t,n){"use strict";var r=n(254);t=e.exports=r.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});Object.defineProperty(t.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}})},function(e,t,n){"use strict";var r=n(126),i=n(98);r._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:i.noop,onComplete:i.noop}}),e.exports={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(e,t,n,r){var i,o,a=this.animations;for(t.chart=e,r||(e.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===e)return void(a[i]=t);a.push(t),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=i.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=i.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){var e=this,t=Date.now(),n=0;e.dropFrames>1&&(n=Math.floor(e.dropFrames),e.dropFrames=e.dropFrames%1),e.advance(1+n);var r=Date.now();e.dropFrames+=(r-t)/e.frameDuration,e.animations.length>0&&e.requestAnimationFrame()},advance:function(e){for(var t,n,r=this.animations,o=0;o<r.length;)n=(t=r[o]).chart,t.currentStep=(t.currentStep||0)+e,t.currentStep=Math.min(t.currentStep,t.numSteps),i.callback(t.render,[n,t],n),i.callback(t.onAnimationProgress,[t],n),t.currentStep>=t.numSteps?(i.callback(t.onAnimationComplete,[t],n),n.animating=!1,r.splice(o,1)):++o}}},function(e,t,n){"use strict";var r=n(98);function i(e,t){return e.native?{x:e.x,y:e.y}:r.getRelativePosition(e,t)}function o(e,t){var n,r,i,o,a;for(r=0,o=e.data.datasets.length;r<o;++r)if(e.isDatasetVisible(r))for(i=0,a=(n=e.getDatasetMeta(r)).data.length;i<a;++i){var s=n.data[i];s._view.skip||t(s)}}function a(e,t){var n=[];return o(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function s(e,t,n,r){var i=Number.POSITIVE_INFINITY,a=[];return o(e,function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=r(t,o);s<i?(a=[e],i=s):s===i&&a.push(e)}}),a}function l(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function c(e,t,n){var r=i(t,e);n.axis=n.axis||"x";var o=l(n.axis),c=n.intersect?a(e,r):s(e,r,!1,o),u=[];return c.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var r=e.getDatasetMeta(n).data[c[0]._index];r&&!r._view.skip&&u.push(r)}}),u):[]}e.exports={modes:{single:function(e,t){var n=i(t,e),r=[];return o(e,function(e){if(e.inRange(n.x,n.y))return r.push(e),r}),r.slice(0,1)},label:c,index:c,dataset:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=l(n.axis),c=n.intersect?a(e,r):s(e,r,!1,o);return c.length>0&&(c=e.getDatasetMeta(c[0]._datasetIndex).data),c},"x-axis":function(e,t){return c(e,t,{intersect:!1})},point:function(e,t){return a(e,i(t,e))},nearest:function(e,t,n){var r=i(t,e);n.axis=n.axis||"xy";var o=l(n.axis),a=s(e,r,n.intersect,o);return a.length>1&&a.sort(function(e,t){var n=e.getArea()-t.getArea();return 0===n&&(n=e._datasetIndex-t._datasetIndex),n}),a.slice(0,1)},x:function(e,t,n){var r=i(t,e),a=[],s=!1;return o(e,function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a},y:function(e,t,n){var r=i(t,e),a=[],s=!1;return o(e,function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(a=[]),a}}}},function(e,t,n){"use strict";var r=n(98),i=n(2191),o=n(2192),a=o._enabled?o:i;e.exports=r.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},function(e,t,n){"use strict";var r=n(126),i=n(98);r._set("global",{plugins:{}}),e.exports={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,i,o,a,s,l=this.descriptors(e),c=l.length;for(r=0;r<c;++r)if("function"==typeof(s=(o=(i=l[r]).plugin)[t])&&((a=[e].concat(n||[])).push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],o=[],a=e&&e.config||{},s=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=s[t];!1!==a&&(!0===a&&(a=i.clone(r.global.plugins[t])),n.push(e),o.push({plugin:e,options:a||{}}))}}),t.descriptors=o,t.id=this._cacheId,o},_invalidate:function(e){delete e.$plugins}}},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98);r._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:o.noop,title:function(e,t){var n="",r=t.labels,i=r?r.length:0;if(e.length>0){var o=e[0];o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:o.noop,beforeBody:o.noop,beforeLabel:o.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),n+=e.yLabel},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:o.noop,afterBody:o.noop,beforeFooter:o.noop,footer:o.noop,afterFooter:o.noop}}});var a={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){var a=e[t];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:Math.round(r/o),y:Math.round(i/o)}},nearest:function(e,t){var n,r,i,a=t.x,s=t.y,l=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var c=e[n];if(c&&c.hasValue()){var u=c.getCenterPoint(),d=o.distanceBetweenPoints(t,u);d<l&&(l=d,i=c)}}if(i){var f=i.tooltipPosition();a=f.x,s=f.y}return{x:a,y:s}}};function s(e,t){var n=o.color(e);return n.alpha(t*n.alpha()).rgbaString()}function l(e,t){return t&&(o.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function c(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function u(e){var t=r.global,n=o.valueOrDefault;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:n(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:n(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:n(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:n(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:n(e.titleFontStyle,t.defaultFontStyle),titleFontSize:n(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:n(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:n(e.footerFontStyle,t.defaultFontStyle),footerFontSize:n(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function d(e){return l([],c(e))}(e.exports=i.extend({initialize:function(){this._model=u(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),r=e.afterTitle.apply(this,arguments),i=[];return i=l(i,c(t)),i=l(i,c(n)),i=l(i,c(r))},getBeforeBody:function(){return d(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,i=[];return o.each(e,function(e){var o={before:[],lines:[],after:[]};l(o.before,c(r.beforeLabel.call(n,e,t))),l(o.lines,r.label.call(n,e,t)),l(o.after,c(r.afterLabel.call(n,e,t))),i.push(o)}),i},getAfterBody:function(){return d(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),r=e.afterFooter.apply(this,arguments),i=[];return i=l(i,c(t)),i=l(i,c(n)),i=l(i,c(r))},update:function(e){var t,n,r,i,s,l,c,d=this,f=d._options,p=d._model,h=d._model=u(f),m=d._active,g=d._data,v={xAlign:p.xAlign,yAlign:p.yAlign},y={x:p.x,y:p.y},b={width:p.width,height:p.height},_={x:p.caretX,y:p.caretY};if(m.length){h.opacity=1;var w=[],E=[];_=a[f.position].call(d,m,d._eventPosition);var k=[];for(t=0,n=m.length;t<n;++t)k.push((r=m[t],i=void 0,s=void 0,l=void 0,c=void 0,i=r._xScale,s=r._yScale||r._scale,l=r._index,c=r._datasetIndex,{xLabel:i?i.getLabelForIndex(l,c):"",yLabel:s?s.getLabelForIndex(l,c):"",index:l,datasetIndex:c,x:r._model.x,y:r._model.y}));f.filter&&(k=k.filter(function(e){return f.filter(e,g)})),f.itemSort&&(k=k.sort(function(e,t){return f.itemSort(e,t,g)})),o.each(k,function(e){w.push(f.callbacks.labelColor.call(d,e,d._chart)),E.push(f.callbacks.labelTextColor.call(d,e,d._chart))}),h.title=d.getTitle(k,g),h.beforeBody=d.getBeforeBody(k,g),h.body=d.getBody(k,g),h.afterBody=d.getAfterBody(k,g),h.footer=d.getFooter(k,g),h.x=Math.round(_.x),h.y=Math.round(_.y),h.caretPadding=f.caretPadding,h.labelColors=w,h.labelTextColors=E,h.dataPoints=k,b=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,i=0,a=t.body,s=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);s+=t.beforeBody.length+t.afterBody.length;var l=t.title.length,c=t.footer.length,u=t.titleFontSize,d=t.bodyFontSize,f=t.footerFontSize;r+=l*u,r+=l?(l-1)*t.titleSpacing:0,r+=l?t.titleMarginBottom:0,r+=s*d,r+=s?(s-1)*t.bodySpacing:0,r+=c?t.footerMarginTop:0,r+=c*f,r+=c?(c-1)*t.footerSpacing:0;var p=0,h=function(e){i=Math.max(i,n.measureText(e).width+p)};return n.font=o.fontString(u,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),n.font=o.fontString(d,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),p=t.displayColors?d+2:0,o.each(a,function(e){o.each(e.before,h),o.each(e.lines,h),o.each(e.after,h)}),p=0,n.font=o.fontString(f,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),{width:i+=2*t.xPadding,height:r}}(this,h),y=function(e,t,n,r){var i=e.x,o=e.y,a=e.caretSize,s=e.caretPadding,l=e.cornerRadius,c=n.xAlign,u=n.yAlign,d=a+s,f=l+s;return"right"===c?i-=t.width:"center"===c&&((i-=t.width/2)+t.width>r.width&&(i=r.width-t.width),i<0&&(i=0)),"top"===u?o+=d:o-="bottom"===u?t.height+d:t.height/2,"center"===u?"left"===c?i+=d:"right"===c&&(i-=d):"left"===c?i-=f:"right"===c&&(i+=f),{x:i,y:o}}(h,b,v=function(e,t){var n,r,i,o,a,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var f=(c.left+c.right)/2,p=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=f},r=function(e){return e>f}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),i=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},a=function(e){return e<=p?"top":"bottom"},n(s.x)?(u="left",i(s.x)&&(u="center",d=a(s.y))):r(s.x)&&(u="right",o(s.x)&&(u="center",d=a(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:u,yAlign:h.yAlign?h.yAlign:d}}(this,b),d._chart)}else h.opacity=0;return h.xAlign=v.xAlign,h.yAlign=v.yAlign,h.x=y.x,h.y=y.y,h.width=b.width,h.height=b.height,h.caretX=_.x,h.caretY=_.y,d._model=h,e&&f.custom&&f.custom.call(d,h),d},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(e,t,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var r,i,o,a,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,f=n.yAlign,p=e.x,h=e.y,m=t.width,g=t.height;if("center"===f)s=h+g/2,"left"===d?(i=(r=p)-c,o=r,a=s+c,l=s-c):(i=(r=p+m)+c,o=r,a=s-c,l=s+c);else if("left"===d?(r=(i=p+u+c)-c,o=i+c):"right"===d?(r=(i=p+m-u-c)-c,o=i+c):(r=(i=n.caretX)-c,o=i+c),"top"===f)s=(a=h)-c,l=a;else{s=(a=h+g)+c,l=a;var v=o;o=r,r=v}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(e,t,n,r){var i=t.title;if(i.length){n.textAlign=t._titleAlign,n.textBaseline="top";var a,l,c=t.titleFontSize,u=t.titleSpacing;for(n.fillStyle=s(t.titleFontColor,r),n.font=o.fontString(c,t._titleFontStyle,t._titleFontFamily),a=0,l=i.length;a<l;++a)n.fillText(i[a],e.x,e.y),e.y+=c+u,a+1===i.length&&(e.y+=t.titleMarginBottom-u)}},drawBody:function(e,t,n,r){var i=t.bodyFontSize,a=t.bodySpacing,l=t.body;n.textAlign=t._bodyAlign,n.textBaseline="top",n.font=o.fontString(i,t._bodyFontStyle,t._bodyFontFamily);var c=0,u=function(t){n.fillText(t,e.x+c,e.y),e.y+=i+a};n.fillStyle=s(t.bodyFontColor,r),o.each(t.beforeBody,u);var d=t.displayColors;c=d?i+2:0,o.each(l,function(a,l){var c=s(t.labelTextColors[l],r);n.fillStyle=c,o.each(a.before,u),o.each(a.lines,function(o){d&&(n.fillStyle=s(t.legendColorBackground,r),n.fillRect(e.x,e.y,i,i),n.lineWidth=1,n.strokeStyle=s(t.labelColors[l].borderColor,r),n.strokeRect(e.x,e.y,i,i),n.fillStyle=s(t.labelColors[l].backgroundColor,r),n.fillRect(e.x+1,e.y+1,i-2,i-2),n.fillStyle=c),u(o)}),o.each(a.after,u)}),c=0,o.each(t.afterBody,u),e.y-=a},drawFooter:function(e,t,n,r){var i=t.footer;i.length&&(e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=s(t.footerFontColor,r),n.font=o.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),o.each(i,function(r){n.fillText(r,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(e,t,n,r,i){n.fillStyle=s(t.backgroundColor,i),n.strokeStyle=s(t.borderColor,i),n.lineWidth=t.borderWidth;var o=t.xAlign,a=t.yAlign,l=e.x,c=e.y,u=r.width,d=r.height,f=t.cornerRadius;n.beginPath(),n.moveTo(l+f,c),"top"===a&&this.drawCaret(e,r),n.lineTo(l+u-f,c),n.quadraticCurveTo(l+u,c,l+u,c+f),"center"===a&&"right"===o&&this.drawCaret(e,r),n.lineTo(l+u,c+d-f),n.quadraticCurveTo(l+u,c+d,l+u-f,c+d),"bottom"===a&&this.drawCaret(e,r),n.lineTo(l+f,c+d),n.quadraticCurveTo(l,c+d,l,c+d-f),"center"===a&&"left"===o&&this.drawCaret(e,r),n.lineTo(l,c+f),n.quadraticCurveTo(l,c,l+f,c),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},i=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(this.drawBackground(r,t,e,n,i),r.x+=t.xPadding,r.y+=t.yPadding,this.drawTitle(r,t,e,i),this.drawBody(r,t,e,i),this.drawFooter(r,t,e,i))}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),(t=!o.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}})).positioners=a},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(358))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(358))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(358))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(358))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(358))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(358))},function(e,t,n){var r=n(555),i=n(2226),o=n(2227),a=n(2228),s=n(2229),l=n(2230);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(462),i=n(558),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==l}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(69))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(2249),i=n(2252),o=n(2253),a=1,s=2;e.exports=function(e,t,n,l,c,u){var d=n&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var m=-1,g=!0,v=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m<f;){var y=e[m],b=t[m];if(l)var _=d?l(b,y,m,t,e,u):l(y,b,m,e,t,u);if(void 0!==_){if(_)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(y===e||c(y,e,n,l,u)))return v.push(t)})){g=!1;break}}else if(y!==b&&!c(y,b,n,l,u)){g=!1;break}}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(2267),i=n(463),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(291),i=n(2268),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l}).call(this,n(223)(e))},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(2269),i=n(2270),o=n(2271),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(558);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(1117),i=n(563);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t,n){var r=n(292),i=n(713),o=n(2288),a=n(2291);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(2335);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(147))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}})}(n(147))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(147))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(147))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:1,doy:4}})}(n(147))},function(e,t,n){var r=n(30),i=n(718);e.exports=function(e,t){return function(){var n=arguments.length;if(0===n)return t();var o=arguments[n-1];return i(o)||"function"!=typeof o[e]?t.apply(this,arguments):o[e].apply(o,r(Array.prototype).call(arguments,0,n-1))}}},function(e,t,n){var r=n(30),i=n(718),o=n(2369);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var a=r(Array.prototype).call(arguments,0),s=a.pop();if(!i(s)){for(var l=0;l<e.length;){if("function"==typeof s[e[l]])return s[e[l]].apply(s,a);l+=1}if(o(s))return t.apply(null,a)(s)}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(2422),i=n(2435),o=n(2439),a=n(253),s=n(2440);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(2424),i=n(316);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(2425),i=n(2428),o=n(2429),a=1,s=2;e.exports=function(e,t,n,l,c,u){var d=n&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var m=-1,g=!0,v=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++m<f;){var y=e[m],b=t[m];if(l)var _=d?l(b,y,m,t,e,u):l(y,b,m,e,t,u);if(void 0!==_){if(_)continue;g=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(y===e||c(y,e,n,l,u)))return v.push(t)})){g=!1;break}}else if(y!==b&&!c(y,b,n,l,u)){g=!1;break}}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(252);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){"use strict";var r=n(1502),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";e.exports=n(1504)},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(445),i=n(837),o=n(1572),a=n(1573),s=n(1574),l=n(1575),c=n(1578);function u(e,t){e&&Object.keys(e).forEach(function(n){t(e[n],n)})}function d(e,t){return{}.hasOwnProperty.call(e,t)}function f(e,t){var n=[];return u(e,function(e){t(e)&&n.push(e)}),n}e.exports=h;var p=/^[^\0\t\n\f\r \/<=>]+$/;function h(e,t,n){var g="";function v(e,t){var n=this;this.tag=e,this.attribs=t||{},this.tagPosition=g.length,this.text="",this.updateParentNodeText=function(){S.length&&(S[S.length-1].text+=n.text)}}t?(t=i(h.defaults,t)).parser?t.parser=i(m,t.parser):t.parser=m:(t=h.defaults).parser=m;var y,b,_=t.nonTextTags||["script","style","textarea"];t.allowedAttributes&&(y={},b={},u(t.allowedAttributes,function(e,t){y[t]=[];var n=[];e.forEach(function(e){e.indexOf("*")>=0?n.push(o(e).replace(/\\\*/g,".*")):y[t].push(e)}),b[t]=new RegExp("^("+n.join("|")+")$")}));var w={};u(t.allowedClasses,function(e,t){y&&(d(y,t)||(y[t]=[]),y[t].push("class")),w[t]=e});var E,k={};u(t.transformTags,function(e,t){var n;"function"==typeof e?n=e:"string"==typeof e&&(n=h.simpleTransform(e)),"*"===t?E=n:k[t]=n});var x=0,S=[],T={},C={},O=!1,A=0,N=new r.Parser({onopentag:function(e,n){if(O)A++;else{var r=new v(e,n);S.push(r);var i,o=!1,h=!!r.text;d(k,e)&&(i=k[e](e,n),r.attribs=n=i.attribs,void 0!==i.text&&(r.innerText=i.text),e!==i.tagName&&(r.name=e=i.tagName,C[x]=i.tagName)),E&&(i=E(e,n),r.attribs=n=i.attribs,e!==i.tagName&&(r.name=e=i.tagName,C[x]=i.tagName)),t.allowedTags&&-1===t.allowedTags.indexOf(e)&&(o=!0,-1!==_.indexOf(e)&&(O=!0,A=1),T[x]=!0),x++,o||(g+="<"+e,(!y||d(y,e)||y["*"])&&u(n,function(n,i){if(p.test(i))if(!y||d(y,e)&&-1!==y[e].indexOf(i)||y["*"]&&-1!==y["*"].indexOf(i)||d(b,e)&&b[e].test(i)||b["*"]&&b["*"].test(i)){if(("href"===i||"src"===i)&&M(e,n))return void delete r.attribs[i];if("srcset"===i)try{var o;if(u(o=l.parse(n),function(e){M("srcset",e.url)&&(e.evil=!0)}),!(o=f(o,function(e){return!e.evil})).length)return void delete r.attribs[i];n=l.stringify(f(o,function(e){return!e.evil})),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter(function(e){return-1!==t.indexOf(e)}).join(" ")}(n,w[e])).length)return void delete r.attribs[i];if("style"===i)try{if(0===(n=function(e){return e.nodes[0].nodes.reduce(function(e,t){return e.push(t.prop+":"+t.value+";"),e},[]).join("")}(function(e,t){if(!t)return e;var n,r=a(e),i=e.nodes[0];n=t[i.selector]&&t["*"]?s(a(t[i.selector]),t["*"],function(e,t){if(Array.isArray(e))return e.concat(t)}):t[i.selector]||t["*"];n&&(r.nodes[0].nodes=i.nodes.reduce(function(e){return function(t,n){if(e.hasOwnProperty(n.prop)){var r=e[n.prop].some(function(e){return e.test(n.value)});r&&t.push(n)}return t}}(n),[]));return r}(c.parse(e+" {"+n+"}"),t.allowedStyles))).length)return void delete r.attribs[i]}catch(e){return void delete r.attribs[i]}g+=" "+i,n.length&&(g+='="'+I(n)+'"')}else delete r.attribs[i];else delete r.attribs[i]}),-1!==t.selfClosing.indexOf(e)?g+=" />":(g+=">",!r.innerText||h||t.textFilter||(g+=r.innerText)))}},ontext:function(e){if(!O){var n,r=S[S.length-1];if(r&&(n=r.tag,e=void 0!==r.innerText?r.innerText:e),"script"===n||"style"===n)g+=e;else{var i=I(e);t.textFilter?g+=t.textFilter(i):g+=i}if(S.length)S[S.length-1].text+=e}},onclosetag:function(e){if(O){if(--A)return;O=!1}var n=S.pop();if(n){if(O=!1,T[--x])return delete T[x],void n.updateParentNodeText();C[x]&&(e=C[x],delete C[x]),t.exclusiveFilter&&t.exclusiveFilter(n)?g=g.substr(0,n.tagPosition):(n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)&&(g+="</"+e+">"))}}},t.parser);return N.write(e),N.end(),g;function I(e){return"string"!=typeof e&&(e+=""),e.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/\>/g,"&gt;").replace(/\"/g,"&quot;")}function M(e,n){var r=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<\!\-\-.*?\-\-\>/g,"")).match(/^([a-zA-Z]+)\:/);if(!r)return!!n.match(/^[\/\\]{2}/)&&!t.allowProtocolRelative;var i=r[1].toLowerCase();return d(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}}var m={decodeEntities:!0};h.defaults={allowedTags:["h3","h4","h5","h6","blockquote","p","a","ul","ol","nl","li","b","i","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre"],allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowProtocolRelative:!0},h.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){var o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},function(e,t,n){e.exports=n(1613)},function(e,t,n){e.exports=n(1653)},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(130),i=n(313),o=n(378),a=n(673);e.exports=r(function(e,t,n){if(!o(e))throw new TypeError("assoc: String required for first argument");if(!i(n))throw new TypeError("assoc: Object required for third argument");return a.assign(((r={})[e]=t,r),n);var r})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(527),o=n(93);e.exports=r(function(e,t,n){if(!o(e))throw new TypeError("reduce: Function required for first argument");if(!i(n))throw new TypeError("reduce: Foldable required for third argument");return n.reduce(e,t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t,n){if(!i(e)||!i(t))throw new TypeError("substitution: Functions required for first two arguments");return r(e)(n,t(n))})},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e.apply(this,t)})},function(e,t,n){e.exports=n(1695)},function(e,t,n){var r=n(34),i=n(248),o=n(1697),a=n(1699);e.exports=r(i([],a,o))},function(e,t,n){(function(r){var i;!function(r,o){e.exports=function(r){"use strict";var o,a=r.Base64;if(e.exports)try{o=n(349).Buffer}catch(e){}var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e.charAt(n)]=n;return t}(s),c=String.fromCharCode,u=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?c(192|t>>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t)}var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(d,u)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),r=[s.charAt(n>>>18),s.charAt(n>>>12&63),t>=2?"=":s.charAt(n>>>6&63),t>=1?"=":s.charAt(63&n)];return r.join("")},h=r.btoa?function(e){return r.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,p)},m=o?o.from&&o.from!==Uint8Array.from?function(e){return(e.constructor===o.constructor?e:o.from(e)).toString("base64")}:function(e){return(e.constructor===o.constructor?e:new o(e)).toString("base64")}:function(e){return h(f(e))},g=function(e,t){return t?m(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):m(String(e))},v=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g"),y=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return c(55296+(n>>>10))+c(56320+(1023&n));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},b=function(e){return e.replace(v,y)},_=function(e){var t=e.length,n=t%4,r=(t>0?l[e.charAt(0)]<<18:0)|(t>1?l[e.charAt(1)]<<12:0)|(t>2?l[e.charAt(2)]<<6:0)|(t>3?l[e.charAt(3)]:0),i=[c(r>>>16),c(r>>>8&255),c(255&r)];return i.length-=[0,0,2,1][n],i.join("")},w=r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,_)},E=o?o.from&&o.from!==Uint8Array.from?function(e){return(e.constructor===o.constructor?e:o.from(e,"base64")).toString()}:function(e){return(e.constructor===o.constructor?e:new o(e,"base64")).toString()}:function(e){return b(w(e))},k=function(e){return E(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};if(r.Base64={VERSION:"2.4.0",atob:w,btoa:h,fromBase64:k,toBase64:g,utob:f,encode:g,encodeURI:function(e){return g(e,!0)},btou:b,decode:k,noConflict:function(){var e=r.Base64;return r.Base64=a,e}},"function"==typeof Object.defineProperty){var x=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",x(function(){return k(this)})),Object.defineProperty(String.prototype,"toBase64",x(function(e){return g(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",x(function(){return g(this,!0)}))}}r.Meteor&&(Base64=r.Base64);e.exports?e.exports.Base64=r.Base64:void 0===(i=function(){return r.Base64}.apply(t,[]))||(e.exports=i);return{Base64:r.Base64}}(r)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:this)}).call(this,n(69))},function(e,t,n){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function i(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function o(e,n){function r(){var e=o;i(e)&&e.a.parentNode&&n(e.g)}var o=e;t(e.b,r),t(e.c,r),i(e)}function a(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,l=null,c=null,u=null;function d(){return null===u&&(u=!!document.fonts),u}function f(){if(null===c){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}c=""!==e.style.font}return c}function p(e,t){return[e.style,e.weight,f()?e.stretch:"","100px",t].join(" ")}a.prototype.load=function(e,t){var i=this,a=e||"BESbswy",c=0,u=t||3e3,f=(new Date).getTime();return new Promise(function(e,t){if(d()&&!function(){if(null===l)if(d()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);l=!!e&&603>parseInt(e[1],10)}else l=!1;return l}()){var h=new Promise(function(e,t){!function n(){(new Date).getTime()-f>=u?t(Error(u+"ms timeout exceeded")):document.fonts.load(p(i,'"'+i.family+'"'),a).then(function(t){1<=t.length?e():setTimeout(n,25)},t)}()}),m=new Promise(function(e,t){c=setTimeout(function(){t(Error(u+"ms timeout exceeded"))},u)});Promise.race([m,h]).then(function(){clearTimeout(c),e(i)},t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t),e()}):document.attachEvent("onreadystatechange",function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())})}(function(){function l(){var t;(t=-1!=g&&-1!=v||-1!=g&&-1!=y||-1!=v&&-1!=y)&&((t=g!=v&&g!=y&&v!=y)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(g==b&&v==b&&y==b||g==_&&v==_&&y==_||g==w&&v==w&&y==w)),t=!t),t&&(E.parentNode&&E.parentNode.removeChild(E),clearTimeout(c),e(i))}var d=new n(a),h=new n(a),m=new n(a),g=-1,v=-1,y=-1,b=-1,_=-1,w=-1,E=document.createElement("div");E.dir="ltr",r(d,p(i,"sans-serif")),r(h,p(i,"serif")),r(m,p(i,"monospace")),E.appendChild(d.a),E.appendChild(h.a),E.appendChild(m.a),document.body.appendChild(E),b=d.a.offsetWidth,_=h.a.offsetWidth,w=m.a.offsetWidth,function e(){if((new Date).getTime()-f>=u)E.parentNode&&E.parentNode.removeChild(E),t(Error(u+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(g=d.a.offsetWidth,v=h.a.offsetWidth,y=m.a.offsetWidth,l()),c=setTimeout(e,50)}}(),o(d,function(e){g=e,l()}),r(d,p(i,'"'+i.family+'",sans-serif')),o(h,function(e){v=e,l()}),r(h,p(i,'"'+i.family+'",serif')),o(m,function(e){y=e,l()}),r(m,p(i,'"'+i.family+'",monospace'))})})},e.exports=a}()},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o).apply(null,arguments)}var s=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var i in n)n.hasOwnProperty(i)&&("style"==i?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r&&t.appendChild(e.c.createTextNode(r)),t}function d(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function f(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function h(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;r<i;r++)if(n[r]==t)return!0;return!1}function m(e,t,n){function r(){s&&i&&o&&(s(a),s=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var i=!1,o=!0,a=null,s=n||null;c?(t.onload=function(){i=!0,r()},t.onerror=function(){i=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout(function(){i=!0,r()},0),d(e,"head",t)}function g(e,t,n,r){var i=e.c.getElementsByTagName("head")[0];if(i){var o=u(e,"script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout(function(){a||(a=!0,n&&n(Error("Script load timeout")))},r||5e3),o}return null}function v(){this.a=0,this.c=null}function y(e){return e.a++,function(){e.a--,_(e)}}function b(e,t){e.c=t,_(e)}function _(e){0==e.a&&e.c&&(e.c(),e.c=null)}function w(e){this.a=e||"-"}function E(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function k(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function S(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function T(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new w("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function O(e){if(e.g){var t=h(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),p(e.f,n,r)}A(e,"inactive")}function A(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function N(){this.c={}}function I(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function M(e){d(e.c,"body",e.a)}function j(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+k(e.c)+";font-style:"+S(e)+";font-weight:"+e.f+"00;"}function L(e,t,n,r,i,o){this.g=e,this.j=t,this.a=r,this.c=n,this.f=i||3e3,this.h=o||void 0}function P(e,t,n,r,i,o,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=i||3e3,this.u=o||null,this.m=this.j=this.h=this.g=null,this.g=new I(this.c,this.s),this.h=new I(this.c,this.s),this.j=new I(this.c,this.s),this.m=new I(this.c,this.s),e=j(e=new E(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=j(e=new E(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=j(e=new E("serif",x(this.a))),this.j.a.style.cssText=e,e=j(e=new E("sans-serif",x(this.a))),this.m.a.style.cssText=e,M(this.g),M(this.h),M(this.j),M(this.m)}w.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},L.prototype.start=function(){var e=this.c.o.document,t=this,n=s(),r=new Promise(function(r,i){!function o(){s()-n>=t.f?i():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+k(e.c)}(t.a),t.h).then(function(e){1<=e.length?r():setTimeout(o,25)},function(){i()})}()}),i=null,o=new Promise(function(e,n){i=setTimeout(n,t.f)});Promise.race([o,r]).then(function(){i&&(clearTimeout(i),i=null),t.g(t.a)},function(){t.j(t.a)})};var D={D:"serif",C:"sans-serif"},R=null;function F(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function B(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function U(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=F()&&B(e,n,r)),t?s()-e.A>=e.w?F()&&B(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?q(e,e.v):q(e,e.B):function(e){setTimeout(a(function(){U(this)},e),50)}(e):q(e,e.v)}function q(e,t){setTimeout(a(function(){f(this.g.a),f(this.h.a),f(this.j.a),f(this.m.a),t(this.a)},e),0)}function z(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=s(),U(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&p(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),A(e,"active")):O(e.a))}function $(e){this.j=e,this.a=new N,this.h=0,this.f=this.g=!0}function Y(e,t,n,r,i){var o=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=i||null,s=r||{};if(0===n.length&&o)O(t.a);else{t.f+=n.length,o&&(t.j=o);var l,c=[];for(l=0;l<n.length;l++){var u=n[l],d=s[u.c],f=t.a,h=u;if(f.g&&p(f.f,[f.a.c("wf",h.c,x(h).toString(),"loading")]),A(f,"fontloading",h),f=null,null===H)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var m=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=h?42<parseInt(h[1],10):!m}else H=!1;f=H?new L(a(t.g,t),a(t.h,t),t.c,u,t.s,d):new P(a(t.g,t),a(t.h,t),t.c,u,t.s,e,d),c.push(f)}for(l=0;l<c.length;l++)c[l].start()}},0)}function V(e,t){this.c=e,this.a=t}function K(e,t){this.c=e,this.a=t}function G(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}z.prototype.g=function(e){var t=this.a;t.g&&p(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),A(t,"fontactive",e),this.m=!0,W(this)},z.prototype.h=function(e){var t=this.a;if(t.g){var n=h(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],i=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),p(t.f,r,i)}A(t,"fontinactive",e),W(this)},$.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],i=n.timeout;!function(e){e.g&&p(e.f,[e.a.c("wf","loading")]),A(e,"loading")}(t);var r=function(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.c[r];o&&i.push(o(t[r],n))}return i}(e.a,n,e.c),o=new z(e.c,t,i);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load(function(t,n,r){Y(e,o,t,n,r)})}(this,new C(this.c,e),e)},V.prototype.load=function(e){var t=this,n=t.a.projectId,r=t.a.version;if(n){var i=t.c.o;g(this.c,(t.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(r?"?v="+r:""),function(r){r?e([]):(i["__MonotypeConfiguration__"+n]=function(){return t.a},function t(){if(i["__mti_fntLst"+n]){var r,o=i["__mti_fntLst"+n](),a=[];if(o)for(var s=0;s<o.length;s++){var l=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(r=o[s].fontStyle+o[s].fontWeight,a.push(new E(l,r))):a.push(new E(l))}e(a)}else setTimeout(function(){t()},50)}())}).id="__MonotypeAPIScript__"+n}else e([])},K.prototype.load=function(e){var t,n,r=this.a.urls||[],i=this.a.families||[],o=this.a.testStrings||{},a=new v;for(t=0,n=r.length;t<n;t++)m(this.c,r[t],y(a));var s=[];for(t=0,n=i.length;t<n;t++)if((r=i[t].split(":"))[1])for(var l=r[1].split(","),c=0;c<l.length;c+=1)s.push(new E(r[0],l[c]));else s.push(new E(r[0]));b(a,function(){e(s,o)})};var X="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},J={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function ie(e,t){this.c=e,this.a=t}function oe(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new v,n=this.c,r=new G(this.a.api,this.a.text),i=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r].split(":");3==i.length&&e.f.push(i.pop());var o="";2==i.length&&""!=i[1]&&(o=":"),e.a.push(i.join(o))}}(r,i);var o=new Q(i);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),i=r[0].replace(/\+/g," "),o=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(f=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=f[2])||""==u?"n":ee[u],null==(f=f[1])||""==f)f="4";else var d=J[f],f=d||(isNaN(f)?"4":f.substr(0,1));u=[u,f].join("")}else u="";u&&a.push(u)}0<a.length&&(o=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[i]=r))}for(e.c[i]||(r=Z[i])&&(e.c[i]=r),r=0;r<o.length;r+=1)e.a.push(new E(i,o[r]))}}(o),m(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),y(t)),b(t,function(){e(o.a,o.c,re)})},ie.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new E(o,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}},2e3):e([])},oe.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;i<o;++i){var a=n.fonts[i];r.a.push(new E(a.name,T("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var ae=new $(window);ae.a.c.custom=function(e,t){return new K(t,e)},ae.a.c.fontdeck=function(e,t){return new oe(t,e)},ae.a.c.monotype=function(e,t){return new V(t,e)},ae.a.c.typekit=function(e,t){return new ie(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var se={load:a(ae.load,ae)};void 0===(r=function(){return se}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){
/*! iNoBounce - v0.1.0
* https://github.com/lazd/iNoBounce/
* Copyright (c) 2013 Larry Davis <lazdnet@gmail.com>; Licensed BSD */
!function(t){var n=0,r=!1,i=function(e){for(var t=e.target;t!==document.body&&t!==document;){var r=window.getComputedStyle(t);if(!r)break;if("INPUT"===t.nodeName&&"range"===t.getAttribute("type"))return;var i=r.getPropertyValue("-webkit-overflow-scrolling"),o=r.getPropertyValue("overflow-y"),a=parseInt(r.getPropertyValue("height"),10),s="touch"===i&&("auto"===o||"scroll"===o),l=t.scrollHeight>t.offsetHeight;if(s&&l){var c=e.touches?e.touches[0].screenY:e.screenY,u=n<=c&&0===t.scrollTop,d=n>=c&&t.scrollHeight-t.scrollTop===a;return void((u||d)&&e.preventDefault())}t=t.parentNode}e.preventDefault()},o=function(e){n=e.touches?e.touches[0].screenY:e.screenY},a=function(){window.addEventListener("touchstart",o,!1),window.addEventListener("touchmove",i,!1),r=!0},s=document.createElement("div");document.documentElement.appendChild(s),s.style.WebkitOverflowScrolling="touch";var l="getComputedStyle"in window&&"touch"===window.getComputedStyle(s)["-webkit-overflow-scrolling"];document.documentElement.removeChild(s),l&&a();var c={enable:a,disable:function(){window.removeEventListener("touchstart",o,!1),window.removeEventListener("touchmove",i,!1),r=!1},isEnabled:function(){return r}};e.exports&&(e.exports=c),"function"==typeof t.define?(0,t.define)("iNoBounce",[],function(){return c}):t.iNoBounce=c}(this)},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(0)),i=o(n(1785));function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||i.default,e.exports=t.default},function(e,t,n){"use strict";var r=n(1792),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(o[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=n(138),d=n.n(u),f=n(201),p=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentWillEnter",value:function(e){this.child&&this.child.componentWillEnter?this.child.componentWillEnter(e):e()}},{key:"componentDidEnter",value:function(){this.child&&this.child.componentDidEnter&&this.child.componentDidEnter()}},{key:"componentWillExit",value:function(e){this.child&&this.child.componentWillExit?this.child.componentWillExit(e):e()}},{key:"componentDidExit",value:function(){this.child&&this.child.componentDidExit&&this.child.componentDidExit()}},{key:"render",value:function(){var t,n=this,r=this.props.children,o=d()("children",this.props);return e.createElement(f.c,o,r&&i()(t=e.Children).call(t,r,function(t){return null!==t&&e.cloneElement(t,{ref:function(e){return n.child=e}})}))}}]),n}(e.Component);t.a=p}).call(this,n(0))},function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+="<style>\n  .brand--head, .brand--head *   { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n  .brand--body, .brand--body *   { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n  .brand--lhead, .brand--lhead * { font-family: "+(null==(__t=headingTypeface)?"":__t)+" !important; }\n  .brand--lbody, .brand--lbody * { font-family: "+(null==(__t=bodyTypeface)?"":__t)+" !important; }\n  .brand--ui, .brand--ui *       { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n  .brand--beforeHead:before { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n  .brand--afterHead:after   { font-family: "+(null==(__t=uiTypeface)?"":__t)+" !important; }\n\n  .brand--background             { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--background-transparent { background-color: "+(null==(__t=color+"1A")?"":__t)+" !important; }\n  .brand--background-all *       { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--border                 { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--color                  { color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--color-all *            { color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--shadow                 { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--shadow-all *           { box-shadow: 0 0 0 0.2rem "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--fill                   { fill: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--stroke                 { stroke: "+(null==(__t=color)?"":__t)+" !important; }\n\n\n  .brand--beforeBackground:before { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--beforeBorder:before     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--beforeColor:before      { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  .brand--afterBackground:after { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--afterBorder:after     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n  .brand--afterColor:after      { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  /* should be applied to containers where links\n     need to appear in brand color */\n  .brand--linkColor a {\n    color: "+(null==(__t=color)?"":__t)+" !important;\n    fill: "+(null==(__t=color)?"":__t)+" !important;\n  }\n\n  /* should be applied to containers where links\n     need to change to brand color on hover */\n  .brand--linkColorHover a:hover {\n    color: "+(null==(__t=color)?"":__t)+" !important;\n    fill: "+(null==(__t=color)?"":__t)+" !important;\n  }\n\n  /* should be applied to any single element that\n     needs to change color on hover */\n  .brand--hoverColor:hover { color: "+(null==(__t=color)?"":__t)+" !important; }\n\n  .brand--linkColor a:hover,\n  .button.brand--background:hover { opacity: .65 !important; }\n\n  .brandHover:hover .brandHover__target--fill { fill: "+(null==(__t=color)?"":__t)+" !important; }\n\n  @media (min-width: 47.9375em) { /* 768px */\n    .brand--min768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--min768--border     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--min768--color      { color: "+(null==(__t=color)?"":__t)+" !important; }\n  }\n\n  @media (max-width: 47.9375em) { /* 768px */\n    .brand--max768--background { background-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--max768--border     { border-color: "+(null==(__t=color)?"":__t)+" !important; }\n    .brand--max768--color      { color: "+(null==(__t=color)?"":__t)+" !important; }\n  }\n</style>\n";return __p}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(1794),{authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/}),d=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){return e=this.props.env,new RegExp(u[e],"i").test(window.navigator.userAgent)&&!window.sessionStorage.getItem("riseUnsupportedBrowser")?this.renderUnsupported():this.props.children;var e}},{key:"renderUnsupported",value:function(){var t;return e.createElement("div",null,this.props.children,e.createElement("div",{className:"browser-support"},e.createElement("div",{className:"browser-support__inner"},e.createElement("p",{className:"browser-support__text browser-support__text--full"},"You’re using an unsupported browser. For better results, use a modern browser. "),e.createElement("p",{className:"browser-support__text browser-support__text--mobile"},"Unsupported browser"),e.createElement("a",{href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",className:"browser-support__link"},e.createElement("span",null,"Learn more"),e.createElement("i",{className:"icon icon-chevron-right"})),e.createElement("div",{className:"browser-support__dismiss",onClick:i()(t=this.handleDismiss).call(t,this)},e.createElement("span",{className:"browser-support__dismiss-icon"},"×")))))}},{key:"handleDismiss",value:function(){window.sessionStorage.setItem("riseUnsupportedBrowser","true"),this.forceUpdate()}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return we});var r=n(31),i=n(256),o=n.n(i),a=n(4),s=n.n(a),l=n(127),c=n.n(l),u=n(3),d=n.n(u),f=n(229),p=n.n(f),h=n(15),m=n.n(h),g=n(10),v=n(11),y=n(9),b=n(13),_=n(7),w=n(12),E=n(160),k=n.n(E),x=n(19),S=n.n(x),T=n(2),C=n.n(T),O=n(28),A=n.n(O),N=n(46),I=n.n(N),M=n(72),j=n.n(M),L=n(35),P=n.n(L),D=n(26),R=n.n(D),F=n(23),B=n.n(F),U=n(14),q=n.n(U),z=n(112),H=n.n(z),W=n(135),$=n.n(W),Y=n(331),V=n(479),K=n(1156),G=n(1287),X=n(1288),Q=n(760),Z=n(326),J=n(366),ee=n(365),te=n(1),ne=n.n(te),re=n(1289),ie=n(402),oe=n(29),ae=n(84),se=n(198),le=n(65),ce=n(22),ue=n(50),de=n(605),fe=n(105),pe=n(323),he=n(486),me=n(272),ge=n(334),ve=n(617),ye=k()(P.a),be=H()(q()("type","section")),_e=function(e){return function(){if(e){var t=document.querySelector(".page-wrap");Object(ce.c)(t)}else{document.getElementById("no-menu").focus()}}},we=function(t){function n(e){var t,r,i,o,a,s,l,c,u,f,h,_;Object(g.a)(this,n),_=Object(v.a)(this,Object(y.a)(n).call(this,e));var w=e.course,E=e.lessons,k=e.match.params;return _.state={activeSections:m()(t=p()(E).call(E,function(e){return"section"===e.type})).call(t,function(e){return e.id}),isMobile:!1,isProgressSummary:oe.e&&"progress-summary"===k.id,isPreviewLesson:"preview-lesson"===k.mode,lastScreen:null,menuDisabled:!1,menuIsOpen:Object(me.c)(w),mobileMenuIsOpen:!1,selectedIndex:Object(ge.b)(k.id)(E),sidebarEnabled:Object(me.b)(w),xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null},_.forwardTransition=!0,_.root=window,_.closeMenu=d()(r=_.closeMenu).call(r,Object(b.a)(_)),_.handleLessonsListRowClick=d()(i=_.handleLessonsListRowClick).call(i,Object(b.a)(_)),_.handleMenuToggle=d()(o=_.handleMenuToggle).call(o,Object(b.a)(_)),_.handleNavigateDirection=d()(a=_.handleNavigateDirection).call(a,Object(b.a)(_)),_.handleNavigate=d()(s=_.handleNavigate).call(s,Object(b.a)(_)),_.handleNavHover=d()(l=_.handleNavHover).call(l,Object(b.a)(_)),_.handleStorylineFullscreen=d()(c=_.handleStorylineFullscreen).call(c,Object(b.a)(_)),_.renderLesson=d()(u=_.renderLesson).call(u,Object(b.a)(_)),_.renderSearchLesson=d()(f=_.renderSearchLesson).call(f,Object(b.a)(_)),_.setIsMobileState=d()(h=_.setIsMobileState).call(h,Object(b.a)(_)),_}return Object(w.a)(n,t),Object(_.a)(n,null,[{key:"propTypes",get:function(){return{children:ne.a.node,course:ne.a.object,courseProgress:ne.a.object,labels:ne.a.object,lessons:ne.a.array,location:ne.a.object.isRequired,match:ne.a.object.isRequired}}},{key:"defaultProps",get:function(){return{course:{},lessons:[]}}}]),Object(_.a)(n,[{key:"componentDidMount",value:function(){this.setIsMobileState(),this.root.addEventListener("resize",this.resizeRef=$()(this.setIsMobileState,1e3)),this.swipeEvents=Object(ie.a)(this.node,this,this.handleMenuToggle,Function.prototype),this.setFocusIfNecessary()}},{key:"componentWillReceiveProps",value:function(e){if(e.match.params.id!==this.props.match.params.id){var t=A()(Object(ge.a)(e.lessons,e.match.params.id),this.state.activeSections),n=oe.e&&"progress-summary"===e.match.params.id;this.setState({activeSections:t,isProgressSummary:n})}}},{key:"componentWillUnmount",value:function(){this.root.removeEventListener("resize",this.resizeRef),this.swipeEvents.removeListeners()}},{key:"setFocusIfNecessary",value:function(){var e=this.props.sessionPreferences.startedCourseWithLessonSelected,t=this.state.sidebarEnabled,n=_e(t);t?e?(n(),Object(ue.a)(Object(se.d)(!1))):this.sidebar.focus():n()}},{key:"handleLessonListRowComplete",value:function(e,t,n,r){var i=e.id,o=e.type,a=this.props,s=a.course,l=a.courseProgress,c=n.isRestricted;if(!Object(me.a)(s)&&!c&&"quiz"!==o)return r.preventDefault(),r.stopPropagation(),R()(["lessons",i,"isComplete"],l)?Object(ue.a)(Object(le.e)({id:i,type:o})):Object(ue.a)(Object(le.b)({id:i,type:o}))}},{key:"handleNavigateDirection",value:function(){return this.forwardTransition?"page-transition":"page-transition-back"}},{key:"handleMenuToggle",value:function(){var e=this,t=this.state,n=t.menuIsOpen,r=t.mobileMenuIsOpen;this.setState({menuIsOpen:!n,mobileMenuIsOpen:Object(he.c)()&&!r,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null},function(){e.resetSwipeListeners()})}},{key:"handleNavigate",value:function(e){var t=this,n=this.props.lessons,r=this.state,i=r.isProgressSummary,o=r.selectedIndex,a=Object(ge.b)(e)(n);this.forwardTransition=!i&&("progress-summary"===e||o<a),this.setState({mobileMenuIsOpen:!1,xTouchDown:null,yTouchDown:null,xTouchMove:null,yTouchMove:null,selectedIndex:a},function(){t.resetSwipeListeners()})}},{key:"handleStorylineFullscreen",value:function(e){this.setState({menuDisabled:e,menuIsOpen:!e})}},{key:"handleToggleSection",value:function(e){var t=this.state.activeSections;c()(t).call(t,e.id)?this.setState({activeSections:p()(t).call(t,function(t){return t!==e.id})}):this.setState({activeSections:s()(t).call(t,e.id)})}},{key:"resetSwipeListeners",value:function(){this.state.mobileMenuIsOpen?this.swipeEvents.addListeners():this.swipeEvents.removeListeners()}},{key:"allowTabNavigation",value:function(){var e=this.state,t=e.isMobile,n=e.isPreviewLesson,r=e.menuIsOpen,i=e.mobileMenuIsOpen,o=e.sidebarEnabled;return!n&&o&&(t?i:r)}},{key:"allowTabNavigationForLesson",value:function(e){var t=this.state.activeSections;return this.allowTabNavigation()&&(!e||!e.sectionId||c()(t).call(t,e.sectionId))}},{key:"handleLessonsListRowClick",value:function(e){var t=e.lesson,n=e.id;"section"===t.type?this.handleToggleSection(t):this.handleNavigate(n)}},{key:"handleNavHover",value:function(e){this.setState({isRestrictedNavHovering:e})}},{key:"renderLesson",value:function(t,n,r,i){var a,l=this.props,u=l.course,f=l.courseProgress,p=l.labels,h=l.lessons,g=l.location,v=this.state,y=v.activeSections,b=v.isRestrictedNavHovering,_=v.sidebarEnabled,w=r.id,E=r.type,k=r.title,x=r.icon,S=Object(fe.b)({course:u,courseProgress:f,lesson:r,restrictingQuiz:n}),T=Object(de.a)(f,w),C=T.percentComplete,O=T.passedQuiz;if(r.children){var A,N,I,M,j=c()(y).call(y,r.id),L=d()(A=this.renderLesson).call(A,this,t,n),P="section-".concat(w),D=s()(N="Course Section for ".concat(k,", with ")).call(N,r.children.length," Lessons");return e.createElement("div",{key:"item-".concat(w)},e.createElement(Q.a,{allowTabNavigation:t,allowTooltip:!b,focusLessonContent:_e(_),icon:x,id:w,isSectionActive:j,labels:p,lesson:r,lessonIndex:o()(h).call(h,r),location:g,markComplete:u.markComplete,onClick:this.handleLessonsListRowClick,onComplete:d()(I=this.handleLessonListRowComplete).call(I,this,r,i,S),onMobileActiveClick:this.closeMenu,onMouse:this.handleNavHover,passedQuiz:O,percentComplete:C,restrictions:S,sectionId:P,title:k,type:E}),e.createElement(re.a,{isActive:j,sectionId:P,sectionLabel:D},m()(M=r.children).call(M,L)))}return e.createElement(Q.a,{allowTabNavigation:this.allowTabNavigationForLesson(r),allowTooltip:!b,focusLessonContent:_e(_),icon:x,id:w,key:"item-".concat(w),labels:p,lesson:r,lessonIndex:o()(h).call(h,r),location:g,markComplete:u.markComplete,onClick:this.handleLessonsListRowClick,onComplete:d()(a=this.handleLessonListRowComplete).call(a,this,r,i,S),onMobileActiveClick:this.closeMenu,onMouse:this.handleNavHover,passedQuiz:O,percentComplete:C,restrictions:S,title:k,type:E})}},{key:"renderMenuButtons",value:function(){var t=this.props,n=t.course,r=t.labels,i=this.state.sidebarEnabled,o=n.lmsOptions,a=(void 0===o?{}:o).enableExitCourse,s=r.courseExit,l=this.allowTabNavigation(),c="Toggle ".concat("Course Overview");return e.createElement("div",{className:"page__menu"},i&&e.createElement(Y.a,{ariaExpanded:l,ariaLabel:c,ariaControls:"courseOverviewSidebar",icon:"menu",menu:!0,onClick:this.handleMenuToggle,onlyIcon:!0,tabIndex:ce.a}),e.createElement(V.a,{enableExitCourse:a,className:"courseExit courseExit--mobile",text:s}),e.createElement("div",{id:"no-menu",tabIndex:ce.h}))}},{key:"renderSidebar",value:function(t){var n,r=this,i=t.allowTabNavigation,o=t.restrictingQuiz,a=this.props,s=a.course,l=a.courseProgress,c=a.labels,u=a.lessons,f=a.search,p=a.sessionPreferences,h=this.state.sidebarEnabled,m=c.courseSkipToLesson,g=d()(n=this.renderLesson).call(n,this,i,o);return e.createElement(ve.b,{hidden:!i,id:"courseOverviewSidebar",label:"Course Overview"},e.createElement(J.b,{allowSearch:!Object(me.a)(s)&&s.allowSearch,courseTitle:s.title,container:this.wrap,coverImage:s.coverImage,allowTabNavigation:i,focusLessonContent:_e(h),labels:c,lessons:u,sessionPreferences:p,ref:function(e){r.sidebar=e},skipLinkText:m},e.createElement(ee.b,{lessonComplete:c.lessonComplete,value:l.percentComplete}),e.createElement(G.a,{labels:c,search:f},f.active?this.renderSearchResults(i):ye(g,Object(ge.c)(u)))))}},{key:"render",value:function(){var t=this,n=this.props,i=n.applySafariLandscapeHack,o=n.course,a=n.courseProgress,s=n.labels,l=n.lessons,c=n.location,u=n.match,d=n.previewType,f=n.safariLandscapeHackOffset,p=n.search,h=n.sessionPreferences,m=this.state,g=m.isPreviewLesson,v=m.isProgressSummary,y=m.menuIsOpen,b=m.mobileMenuIsOpen,_=m.sidebarEnabled,w=o.lmsOptions,E=(void 0===w?{}:w).enableExitCourse,k=s.courseExit,x=function(e){var t=e.course,n=e.search;return B()(S()("lessons",n.lessons),S()("lessonsOnly",be(n.lessons)))(t)}({course:o,search:p}),T=this.allowTabNavigation(),O=this.renderMenuButtons(),A=C()("lesson",{"lesson--preview":g,"lesson--open":y&&!g,"lesson--open-mobile":b&&!g}),N=Object(pe.a)({course:o,courseProgress:a}),I=i?{paddingBottom:f}:{},M={course:p.active&&!j()(p.lessons)?x:o,focusLessonContent:_e(_),handleStorylineFullscreen:this.handleStorylineFullscreen,isProgressSummary:v,key:c.pathname,labels:s,lessonProgress:a.lessons[u.params.id],match:u,menuButtons:O,menuOpen:!g&&y,mobileMenuOpen:b,navigateDirection:this.handleNavigateDirection,onNavigate:this.handleNavigate,previewType:d,courseProgress:a,sessionPreferences:h,sidebarEnabled:_},L=v?{courseProgress:a,lessons:l}:{};return e.createElement(ve.c,{className:A,contentRef:function(e){return t.node=e}},_&&this.renderSidebar({allowTabNavigation:T,restrictingQuiz:N}),e.createElement("div",{className:"lesson__wrap",ref:function(e){return t.wrap=e}}),e.createElement(ve.a,{onMobileMenuActiveClick:this.closeMenu},e.createElement("div",{className:"page-view page-view--visible"},e.createElement(V.a,{enableExitCourse:E,className:"courseExit courseExit--standard",text:k}),e.createElement(ae.TransitionGroup,{component:"div",className:"page-wrap",id:"page-wrap",style:I},e.createElement(Z.a,{key:c.pathname},e.createElement(K.a,Object(r.a)({},M,L)))))))}},{key:"closeMenu",value:function(){return this.state.mobileMenuIsOpen?this.handleMenuToggle:Function.prototype}},{key:"renderSearchLesson",value:function(t,n,r){var i=this.props.labels,o=this.state.sidebarEnabled,a=n.icon,s=n.id,l=n.results,c=n.title,u=n.type;return e.createElement(X.a,{allowTabNavigation:t,focusLessonContent:_e(o),icon:a,id:s,key:"item-".concat(s),labels:i,lessonIndex:r,onClick:this.handleNavigate,onMobileActiveClick:this.closeMenu,resultsCount:l,title:c,type:u})}},{key:"renderSearchResults",value:function(e){var t,n=this.props.search.activeLessons,r=d()(t=this.renderSearchLesson).call(t,this,e);return B()(I()(fe.g),ye(r))(n)}},{key:"setIsMobileState",value:function(){var e=this.state.lastScreen,t=getComputedStyle(this.node,":after").content.replace(/"/g,"");if(t!==e){var n="mobile"===t;this.setState({isMobile:n,lastScreen:t})}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Q});var r=n(3),i=n.n(r),o=n(31),a=n(4),s=n.n(a),l=n(10),c=n(11),u=n(9),d=n(7),f=n(12),p=n(54),h=n.n(p),m=n(136),g=n.n(m),v=n(25),y=n.n(v),b=n(41),_=n.n(b),w=n(1),E=n.n(w),k=n(103),x=n.n(k),S=n(257),T=n.n(S),C=n(65),O=n(50),A=n(105),N=n(323),I=n(334),M=n(258),j=n(1160),L=n(1238),P=n(1240),D=n(1241),R=n(616),F=n(753),B=n(1243),U=n(329),q=n(755),z=n(1267),H=n(603),W=n(1280),$=n(1282),Y=n(759),V=n(1285),K=n(29),G=n(260),X=n(81),Q=function(t){function n(e){var t;Object(l.a)(this,n),t=Object(c.a)(this,Object(u.a)(n).call(this,e));var r=e.course,i=e.isProgressSummary,o=e.lessonProgress,a=e.match.params,s=_()(null,"index",o),d=i?q.b:y()({},["lessons",s],r),f={course:r,lesson:d},p=i?g()(r.lessonsOnly):Object(A.j)(f),h=i?null:Object(A.i)(f);return t.state={color:r.color,hasTransitioned:!1,lessonNumber:i?0:Object(A.h)(f),mode:a.mode||"",model:d,next:h,nextNumber:Object(A.h)({course:r,lesson:h}),previous:p,previousNumber:Object(A.h)({course:r,lesson:p}),scrollPosition:0,totalLessons:Object(A.k)(r)},t}return Object(f.a)(n,t),Object(d.a)(n,null,[{key:"propTypes",get:function(){return{focusLessonContent:E.a.func,navigateDirection:E.a.func,onNavigate:E.a.func,match:E.a.object.isRequired,previewType:E.a.string,sidebarEnabled:E.a.bool}}}]),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.match.params.id;this.setState({hasTransitioned:!0}),this.props.isProgressSummary||Object(X.p)(e),this.props.isProgressSummary||Object(O.a)(Object(C.a)(e))}},{key:"componentWillReceiveProps",value:function(e){if(!this.props.isProgressSummary){var t=e.course,n=e.lessonProgress,r=_()(null,"index",n),i=y()(null,["lessons",r],t),o={course:t,lesson:i},a=Object(A.j)(o),s=Object(A.i)(o);i&&this.setState({model:i,next:s,previous:a})}}},{key:"displayFlex",value:function(e){e.css({display:"flex"})}},{key:"componentWillEnter",value:function(e){h()("[data-lesson-header]").css({top:""}),this.transition("enter",e)}},{key:"componentDidEnter",value:function(){var e=h()("[data-page]:first-child [data-previous-lesson]"),t=document.getElementsByClassName("page-wrap");if(this.setState({hasTransitioned:!0}),e.length>0){var n=e.height();e.hide(),this.displayFlex(e),h()(t).scrollTop(n),h()("[data-lesson-header]").css({top:n})}}},{key:"componentWillExit",value:function(e){var t=document.getElementsByClassName("page-wrap"),n=t[0].scrollTop;h()(t).scrollTop(0),this.lastScrollPosition=n,this.transition("leave",e),h()(x.a.findDOMNode(this)).scrollTop(this.lastScrollPosition)}},{key:"transitionComplete",value:function(){var e=x.a.findDOMNode(this);if(!e)return!1;var t=e.classList;return t&&(t.contains("page-transition-complete")||t.contains("page-transition-back-complete")||1===t.length&&t.contains("page"))}},{key:"transition",value:function(e,t){var n,r=this.props,i=r.focusLessonContent,o=(0,r.navigateDirection)(),a=x.a.findDOMNode(this);if(a){var l=s()(n="page ".concat(o,"-")).call(n,e);a.className=l,Y.a.addEventListeners(a,function n(){"enter"===e?(a.className="page ".concat(o,"-complete"),i()):a.className="page",Y.a.removeEventListeners(a,n),t()})}else t()}},{key:"handleNextClick",value:function(e){var t=this.props.course.lessonsOnly;Object(I.b)(e)(t)>=t.length-1?K.e&&this.props.onNavigate("progress-summary"):this.props.onNavigate(this.state.next.id)}},{key:"handlePreviousClick",value:function(e){var t=this.props.course.lessonsOnly;Object(I.b)(e)(t)<=0&&!this.props.isProgressSummary||this.props.onNavigate(this.state.previous.id)}},{key:"renderLessonType",value:function(t){var n=t.type,r=t.props,i=t.course,a=t.model;if(this.props.isProgressSummary)return e.createElement(q.a,Object(o.a)({},this.props,r));switch(n){case"blocks":return e.createElement(j.a,Object(o.a)({},r,{animateBlockEntrance:i.animateBlockEntrance,isFirstLesson:Object(A.f)({course:i,lesson:a})}));case"map":return e.createElement(D.a,r);case"process":return e.createElement(B.a,r);case"timeline":return e.createElement($.a,r);case"quiz":return e.createElement(z.a,r);case"sorting":return e.createElement(W.a,r);case"screencast":case"slidecast":case"video":return e.createElement(V.a,r);case"embed":return e.createElement(L.a,r);default:return null}}},{key:"render",value:function(){var t,n,r,o,a=this,s=this.state,l=s.color,c=s.lessonNumber,u=s.mode,d=s.model,f=s.next,p=s.nextNumber,h=s.previous,m=s.previousNumber,g=s.scrollPosition,v=s.totalLessons,y=this.props,b=y.course,w=y.courseProgress,E=y.handleStorylineFullscreen,k=y.isProgressSummary,x=y.labels,S=y.lessonProgress,C=y.location,O=y.match,I=y.menuButtons,j=y.menuOpen,L=y.mobileMenuOpen,D=y.onNavigate,B=y.previewType,q=y.sessionPreferences.prefersKeyboardNavigation,z=y.sidebarEnabled,W=d.author,$=d.selectedAuthorId,Y=d.type,V=b.authors,X=b.enableVideoPlaybackSpeed,Q=b.showLessonCount,Z=b.showNavigationButtons,J=x.courseFinish,ee=void 0===J?"Finish":J,te=x.courseHome,ne=Object(H.a)({authors:V,author:W,selectedAuthorId:$}),re=ne.avatar,ie=ne.authorName,oe=d.items?d.items.length:0,ae=Object(N.a)({course:b,courseProgress:w}),se=k?{}:Object(A.b)({course:b,courseProgress:w,lesson:f,restrictingQuiz:ae}),le=h&&"preview-lesson"!==u?e.createElement(F.b,{isLesson:Object(A.e)(h),key:"prev-".concat(d.id),labels:x,onPreviousClick:i()(t=this.handlePreviousClick).call(t,this,d.id),previous:h.id,previousNumber:m,previousTitle:h?h.title:"",ref:function(e){return a.previousLesson=e}}):"preview-lesson"!==u?e.createElement(F.a,{courseHomeLabel:te}):null,ce=f&&"preview-lesson"!==u?e.createElement(R.b,{id:d.id,isLesson:Object(A.e)(f),restrictions:se,key:"next-".concat(d.id),labels:x,next:f.id,nextNumber:p,nextTitle:f.title,onNextClick:i()(n=this.handleNextClick).call(n,this,d.id),ref:function(e){return a.nextLesson=e},type:Y}):K.e&&"preview-lesson"!==u?e.createElement(R.a,{courseFinishLabel:ee,onNextClick:i()(r=this.handleNextClick).call(r,this,d.id)}):null,ue=f&&"preview-lesson"!==u?e.createElement(R.b,{id:d.id,isContinue:!0,isLesson:Object(A.e)(f),restrictions:se,key:"next-".concat(d.id),labels:x,next:f.id,nextNumber:p,onNextClick:i()(o=this.handleNextClick).call(o,this,d.id),ref:function(e){return a.nextLesson=e},type:Y}):null,de=e.createElement(P.a,{authorName:ie,avatar:re,description:d.description,labels:x,length:d.length||"",lessonNumber:c,ref:"header",showLessonCount:Q,steps:oe,title:d.title,totalLessons:v,type:d.type},"audio"===d.mediaType&&d.mediaSrc&&e.createElement(M.b,{id:"audio-".concat(d.cid),key:"audio-".concat(d.cid),labels:x,mediaSrc:d.mediaSrc}),!k&&e.createElement(U.b,{id:d.id,items:d.items,lessonProgress:S,menuOpen:j,mobileMenuOpen:L,scrollPosition:g,type:d.type})),fe={authorName:ie,avatar:re,color:l,continueComponent:!Z&&!z&&ue,courseTitle:b.title,data:d,enableVideoPlaybackSpeed:X,handleStorylineFullscreen:E,handleNavigate:D,isLesson:Object(A.e)(d),labels:x,lessonHeader:de,lessonNumber:c,lessonProgress:S,loadMedia:this.state.hasTransitioned,location:C,match:O,menuButtons:I,menuOpen:j,mobileMenuOpen:L,nextComponent:Z&&ce,nextLesson:_()(null,"id",f),prefersKeyboardNavigation:q,previewType:B,previousComponent:Z&&le,scrollPosition:g,showLessonCount:Q,totalLessons:v};return e.createElement(T.a,{title:Object(G.a)(b.title+" - "+d.title)},e.createElement("main",{"aria-label":"Lesson Content"},this.renderLessonType({type:Y,props:fe,course:b,model:d})))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(129),i=n(40);e.exports=r(function(e,t,n){return i(t[e],n[e])})},function(e,t,n){var r=n(34),i=n(40),o=n(35),a=n(1804);e.exports=r(function(e,t){return a(o(i,e),t)})},function(e,t,n){var r=n(129),i=n(26);e.exports=r(function(e,t,n){return t.length>0&&e(i(t,n))})},function(e,t,n){"use strict";(function(e){var r=n(8),i=n.n(r),o=n(1161),a=n(89);t.a=function(t){var n=t.animateBlockEntrance,r=t.color,s=t.courseTitle,l=t.data,c=l.id,u=l.type,d=l.items,f=t.enableVideoPlaybackSpeed,p=t.handleNavigate,h=t.handleStorylineFullscreen,m=t.labels,g=t.lessonHeader,v=t.lessonProgress,y=t.loadMedia,b=t.match,_=t.menuButtons,w=t.menuOpen,E=t.nextComponent,k=t.nextLesson,x=t.previewType,S=t.previousComponent;return e.createElement(a.c,{type:u},S,e.createElement(a.b,{type:u},_,g,e.createElement(a.a,null,e.createElement(o.a,{animateBlockEntrance:n,blocks:d,color:r,courseTitle:s,enableVideoPlaybackSpeed:f,handleNavigate:p,handleStorylineFullscreen:h,isFirstLesson:!0,labels:m,lessonId:c,lessonProgress:v,loadMedia:y,match:b,menuOpen:w,nextLesson:k,previewType:x,type:u}))),i()("isComplete",v)?E:null)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(127),i=n.n(r),o=n(71),a=n(123),s=n(30),l=n.n(s),c=n(15),u=n.n(c),d=n(4),f=n.n(d),p=n(3),h=n.n(p),m=n(10),g=n(7),v=n(11),y=n(9),b=n(12),_=(n(1815),n(201)),w=n(6),E=n.n(w),k=n(161),x=n.n(k),S=n(40),T=n.n(S),C=n(46),O=n.n(C),A=n(39),N=n.n(A),I=n(115),M=n.n(I),j=n(94),L=n.n(j),P=n(136),D=n.n(P),R=n(51),F=n.n(R),B=n(17),U=n.n(B),q=n(62),z=n.n(q),H=n(25),W=n.n(H),$=n(23),Y=n.n($),V=n(8),K=n.n(V),G=n(14),X=n.n(G),Q=n(158),Z=n.n(Q),J=n(67),ee=n.n(J),te=n(50),ne=n(27),re=n(78),ie=n(300),oe=n(1162),ae=n(1237),se=n(600),le=n(22),ce=["timeline"],ue=function(t){function n(){return Object(m.a)(this,n),Object(v.a)(this,Object(y.a)(n).apply(this,arguments))}return Object(b.a)(n,t),Object(g.a)(n,[{key:"componentDidMount",value:function(){var e,t;this.handleKeyDown=h()(e=this.handleKeyDown).call(e,this),this.handleClick=h()(t=this.handleClick).call(t,this),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("click",this.handleClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("click",this.handleClick)}},{key:"componentDidUpdate",value:function(){this.scrollIfContinued()}},{key:"handleKeyDown",value:function(e){if(this.lastCompletedContinueIndex&&Object(ne.k)(e)){e.preventDefault();for(var t=!e.shiftKey,n=this.lastCompletedContinueIndex,r=document.querySelector(".page-wrap"),i=ke(t),o=Se(t);i(n,this.props.blocks.length);){n=xe(n,t);var a=W()(null,["blocks",n,"id"],this.props);if(o(r.querySelector('[data-block-id="'.concat(a,'"]'))))break}delete this.lastCompletedContinueIndex}}},{key:"handleClick",value:function(){delete this.lastCompletedContinueIndex}},{key:"render",value:function(){this.dividerNumber=0;var t=this.props.labels.lessonContentLandmark;return e.createElement("section",{"aria-label":t,className:"blocks-lesson"},this.renderBlocks())}},{key:"getBlockType",value:function(t){var n;"divider numbered divider"===f()(n="".concat(t.family," ")).call(n,t.variant)&&this.dividerNumber++;var r=this.props,i=r.animateBlockEntrance,o=r.color,a=r.courseTitle,s=r.enableVideoPlaybackSpeed,l=r.handleNavigate,c=r.handleStorylineFullscreen,u=r.lessonId,d=r.loadMedia,p=r.labels,h=r.lessonProgress,m=r.match,g=r.menuOpen,v=r.previewType,y=U()(z()(["type"],t),{animateBlockEntrance:i,color:o,courseTitle:a,dividerNumber:this.dividerNumber,enableVideoPlaybackSpeed:s,handleNavigate:l,handleStorylineFullscreen:c,isLearner:!0,lessonId:u,loadMedia:d,labels:p,match:m,menuOpen:g,progress:h,previewType:v});return e.createElement(oe.a,y)}},{key:"renderBlocks",value:function(){var e,t;return u()(e=function e(t,n,r){var i;if(t.length){var o=l()(t).call(t,-1)[0],a=W()(!1,["items",o.id,"isComplete"],r);if(!a)return t}var s=u()(i=Object(re.j)(fe(r),l()(n).call(n,t.length))).call(i,de);return s.length?e(f()(t).call(t,s),n,r):t}([],this.props.blocks,this.props.lessonProgress)).call(e,h()(t=this.buildBlock).call(t,this,this.props.lessonProgress))}},{key:"buildBlock",value:function(t,n,r,i){var s,c,u,d=function(e,t,n){var r=e.id,i=Object(a.a)(e,["id"]);if("continue"===i.family){var s=W()("",["items",0,"type"],i);return U()(Object(o.a)({blockId:r},i),{canContinue:_e({continueType:s,blocks:t,progress:n}),lessonProgress:n})}return Object(o.a)({blockId:r},i)}(n,l()(i).call(i,0,-1),t),f=this.getBlockType(d),p=d.blockId,m=d.family,g=d.variant,v=d.items,y="block-".concat(p),b=W()(!1,["items",p,"isComplete"],t);return pe({family:m,isComplete:b})?null:he({family:m,variant:g})?e.createElement("div",{key:y,"data-block-id":p},e.createElement(ae.a,{onStep:h()(c=this.handleStep).call(c,this,m,p,v),isFirstLesson:this.props.isFirstLesson,onViewed:h()(u=this.handleViewed).call(u,this,v,p)},f)):e.createElement("div",{key:y,"data-block-id":p},e.createElement(se.a,{key:y,onViewed:h()(s=this.handleViewed).call(s,this,v,p),isFirstLesson:this.props.isFirstLesson},f))}},{key:"handleStep",value:function(e,t,n,r){var i=this.props,o=i.blocks,a=i.lessonId,s=i.lessonProgress,l=i.nextLesson,c=i.history,u=N()(X()("id",r),n),d=W()(!1,["items",r,"isComplete"],s),f=Y()(D.a,X()("id",t))(o);"continue"!==e||d||(this.continueFromId=t),Object(te.a)(Object(ie.e)({id:t,lessonId:a,items:[u]})),"continue"===e&&f&&l&&c.push("/lessons/".concat(encodeURIComponent(l)))}},{key:"handleViewed",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=this.props.lessonId;Object(te.a)(Object(ie.e)({id:t,lessonId:n,items:e}))}},{key:"scrollIfContinued",value:function(){if(this.continueFromId){var e=this.props.blocks,t=M()(X()("id",this.continueFromId),e),n=L()(t),r=W()(null,["blocks",n,"id"],this.props);if(r){var i=document.querySelector(".page-wrap"),o=i.querySelector('[data-block-id="'.concat(r,'"]')),a=o?o.getBoundingClientRect().top:0;Z.a.animateScroll.scrollTo(a+i.scrollTop,{smooth:!0,containerId:"page-wrap"}),this.lastCompletedContinueIndex=t}delete this.continueFromId}}}]),n}(e.Component);function de(e,t,n){var r=l()(n).call(n,-1)[0]||{},i="continue"===r.family&&W()(!1,["items",0,"type"],r);return"continue"===e.variant||i&&("completeBlock"!==i||t===n.length-1||t===n.length-2)?U()(e,{requiresInteraction:!0}):e}t.a=Object(_.e)(ue);var fe=function(e){return function(t){var n=t.family,r=t.items,i=W()({},0,r);return"continue"===n&&!W()(!1,["items",i.id,"isComplete"],e)}},pe=function(e){var t=e.family,n=e.isComplete;return"continue"===t&&n},he=function(e){var t=e.family,n=e.variant;return(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(n))&&!i()(ce).call(ce,n)},me=O()(X()("isComplete",!0)),ge=E()(ee.a,K()("items")),ve=E()(me,ge),ye=E()(F.a,ve),be=E()(K()("id"),D.a),_e=function(e){var t=e.continueType,n=e.blocks,r=e.progress;switch(t){case"completeAll":return T()(F()(n),ye(r));case"completeBlock":return W()(!1,["items",be(n),"isComplete"],r);default:return!0}},we=function(e,t){return e<t},Ee=function(e){return e>=0},ke=function(e){return e?we:Ee},xe=function(e,t){return t?L()(e):x()(e)},Se=function(e){return e?le.c:le.d}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return K});var r=n(3),i=n.n(r),o=n(31),a=n(71),s=n(4),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(12),h=n(46),m=n.n(h),g=n(51),v=n.n(g),y=n(298),b=n.n(y),_=n(62),w=n.n(_),E=n(23),k=n.n(E),x=n(14),S=n.n(x),T=n(277),C=n(422),O=n(369),A=n(611),N=n(491),I=n(492),M=n(612),j=n(735),L=n(1201),P=n(741),D=n(423),R=n(1203),F=n(742),B=n(424),U=n(1215),q=n(1221),z=n(1224),H=n(1228),W=n(1231),$=n(762),Y=m()(S()("variant","storyline")),V=k()(Y,v.a,b()(1)),K=function(t){function n(){return Object(c.a)(this,n),Object(d.a)(this,Object(f.a)(n).apply(this,arguments))}return Object(p.a)(n,t),Object(u.a)(n,[{key:"render",value:function(){var t,n,r=this.props,s=r.dividerNumber,c=r.family,u=r.handleStorylineFullscreen,d=r.menuOpen,f=r.variant,p=r.enableVideoPlaybackSpeed,h=l()(t="".concat(c," ")).call(t,f),m=w()(["handleStorylineFullscreen","dividerNumber"],this.props),g=Object(a.a)({},m,{variant:f,enableVideoPlaybackSpeed:p});switch(h){case"text paragraph":case"text table":return e.createElement(T.h,g);case"text heading paragraph":return e.createElement(T.d,g);case"text subheading paragraph":return e.createElement(T.e,g);case"text heading":return e.createElement(T.b,g);case"text subheading":return e.createElement(T.c,g);case"text two column":return e.createElement(T.g,g);case"text three column":return e.createElement(T.f,g);case"text code":return e.createElement(T.a,g);case"impact a":return e.createElement(C.e,g);case"impact b":return e.createElement(C.a,g);case"impact c":return e.createElement(C.b,g);case"impact d":return e.createElement(C.c,g);case"impact note":return e.createElement(C.d,g);case"quote a":return e.createElement(O.f,g);case"quote b":return e.createElement(O.a,g);case"quote c":return e.createElement(O.c,g);case"quote d":return e.createElement(O.e,g);case"quote background":return e.createElement(O.b,g);case"quote carousel":return e.createElement(O.d,g);case"list numbered":return e.createElement(A.c,g);case"list checkboxes":return e.createElement(A.b,g);case"list bulleted":return e.createElement(A.a,g);case"image hero":return e.createElement(N.d,g);case"image full":return e.createElement(N.a,g);case"image text aside":return e.createElement(N.c,g);case"image text overlay":return e.createElement(N.b,g);case"gallery centered":case"gallery full":return e.createElement(I.b,g);case"gallery two column":return e.createElement(I.a,g);case"gallery three column":return e.createElement(I.a,Object(o.a)({width:3},g));case"gallery four column":return e.createElement(I.a,Object(o.a)({width:4},g));case"divider divider":return e.createElement(M.c,g);case"divider numbered divider":return e.createElement(M.a,Object(o.a)({number:s},g));case"divider spacing divider":return e.createElement(M.b,g);case"360 storyline":return e.createElement(L.a,Object(o.a)({},g,{isLesson:!0,menuOpen:d,handleStorylineFullscreen:u,hasManySlBlocks:i()(n=this.hasManySlBlocks).call(n,this)}));case"interactive accordion":return e.createElement(j.b,g);case"interactive tabs":return e.createElement(j.a,g);case"interactive-fullscreen labeledgraphic":return e.createElement(U.a,g);case"interactive-fullscreen process":return e.createElement(q.a,g);case"interactive-fullscreen scenario":return e.createElement(z.a,g);case"interactive-fullscreen sorting":return e.createElement(H.a,g);case"interactive-fullscreen timeline":return e.createElement(W.a,g);case"buttons button":return e.createElement(P.b,g);case"buttons button stack":return e.createElement(P.a,g);case"flashcard flashcard":return e.createElement(F.a,g);case"flashcard stack":return e.createElement(F.a,Object(o.a)({stack:!0},g));case"knowledge knowledge":return e.createElement(B.a,g);case"continue continue":return e.createElement(R.a,g);case"multimedia audio":return e.createElement(D.b,g);case"multimedia video":return e.createElement(D.d,g);case"multimedia custom video":return e.createElement(D.d,Object(o.a)({},g,{type:"customVideo"}));case"multimedia embed":return e.createElement(D.c,g);case"multimedia attachment":return e.createElement(D.a,g);case"multimedia code":return e.createElement(T.a,g);case"knowledgeCheck multiple choice":case"knowledgeCheck multiple response":case"knowledgeCheck fillin":case"knowledgeCheck matching":return e.createElement(B.a,g);case"chart bar":case"chart line":return e.createElement($.a,g);case"chart pie":return e.createElement($.b,g);default:return"Unknown type: ".concat(h)}}},{key:"hasManySlBlocks",value:function(){var e=this.props.items;return e&&V(e)}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(453),i=n(454),o=n(909),a=n(93),s="pipeK: Chain returning functions of the same type required";e.exports=function(e){if(!arguments.length||!a(e))throw new TypeError(s);if(1===arguments.length)return e;var t=r(arguments).slice(1).reduce(function(e,t){if(!a(t))throw new TypeError(s);return function(n){if(!o(n))throw new TypeError(s);return e(n).chain(t)}},i);return function(){return t(e.apply(null,arguments))}}},function(e,t,n){e.exports=n(1873)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(677).chain,i=n(130),o=n(314),a=n(909),s=n(93);e.exports=i(function(e,t){if(!s(e))throw new TypeError("chain: Chain returning function required for first argument");if(!a(t)&&!o(t))throw new TypeError("chain: Chain of the same type required for second argument");return o(t)?r(e,t):t.chain(e)})},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"callbackPath",function(){return Q}),n.d(t,"getToken",function(){return Z}),n.d(t,"initAuth",function(){return J}),n.d(t,"login",function(){return ee}),n.d(t,"logout",function(){return te}),n.d(t,"renderCallback",function(){return ne}),n.d(t,"request",function(){return re});var r=n(1167),i=n.n(r),o=n(155),a=n.n(o),s=n(71),l=n(236),c=n(18),u=n.n(c),d=n(179),f=n.n(d),p=n(585),h=n.n(p),m=n(104),g=n.n(m),v=n(6),y=n.n(v),b=n(1168),_=n.n(b),w=n(44),E=n.n(w),k=n(55),x=n.n(k),S=n(36),T=n.n(S),C=n(199),O=n.n(C),A=n(25),N=n.n(A),I=n(76),M=n.n(I),j=n(109),L=n.n(j),P=n(1169),D=n(609),R=n(29),F=n(419),B=n(413),U=n(187),q=n(200),z=Object(R.c)("THREESIXTY_FRONTEND_URI"),H=g()(T.a),W=y()(H,q.b),$=function(){return window.location.pathname===U.a},Y=function(e){if(!Object(B.c)(e))throw e},V=f()({accessToken:N()(null,[1,"accessToken"]),idToken:N()(null,[0,"idToken"])}),K=function(e){return function(){var t=Object(l.a)(a.a.mark(function t(n){var r,i,o,l,c,d,f,p,h,m,g,v,y,b;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return Object(U.f)(n),r=V(n),i=r.idToken,o=r.accessToken,l=O()(i),c=l.first_name,d=l.last_name,f=l.staff,p=O()(o),h=p.aid,m=Object(D.a)(h),g={author:h,profile:{avatars:m,first_name:c,user_id:h,last_name:d,staff:f}},v=function(){return te({onLogout:u()(null)})},y=function(t){return e(Object(s.a)({},g,Object(D.b)(t),{token:o}))},t.next=11,Object(F.a)(h,o,v).then(L()(y)).catch(function(){return e(Object(s.a)({},g,{token:o}))});case 11:return b=t.sent,Object(q.e)(o),Object(q.f)(h),Object(D.c)(b)&&te({onLogout:function(){return window.location="".concat(z,"/rise")}}),t.abrupt("return",o);case 16:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()},G=function(e){var t=e.onFetchTokens,n=e.onLogout;return Object(U.e)().then(K(t)).catch(function(e){return x()(B.a,function(){return te({onLogout:e})},function(e){return console.error("Error refreshing tokens; REPORT_ERROR",e)})}(n))},X=function(){var e=Object(l.a)(a.a.mark(function e(t){var n,r,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(U.b)();case 2:return n=e.sent,e.next=5,n.tokenManager.get("accessToken");case 5:return r=e.sent,e.next=8,n.tokenManager.get("idToken");case 8:i=e.sent,r&&i?G(t):ee(t);case 10:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Q=U.a,Z=q.a,J=function(){var e=Object(l.a)(a.a.mark(function e(){var t,n=arguments;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(U.b)();case 2:return t=e.sent,e.abrupt("return",E()([[$,u()(null)],[W,_()(L()(U.c),X)],[M.a,y()(ee,L()(t.tokenManager.clear))]]).apply(void 0,n));case 4:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=new i.a(window.location.search),t=e.has("redirect_url")?e.get("redirect_url"):window.location.href;return Object(U.d)(t)},te=y()(function(e){var t=e.onLogout;return Object(U.b)().then(function(e){return e.signOut()}).catch(Y).catch(function(e){return console.error("Error signing out; REPORT_ERROR",e)}).then(t)},L()(q.c),L()(q.d)),ne=function(t){var n=t.onFetchTokens;return function(){return e.createElement(P.a,{setupSession:K(n)})}},re=h.a}.call(this,n(0))},function(e,t,n){e.exports=n(1893)},function(e,t,n){var r=n(720),i=n(853);e.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){"use strict";var r=n(4),i=n.n(r),o=n(233),a=n.n(o),s=n(139),l=n.n(s),c=n(6),u=n.n(c),d=n(26),f=n.n(d),p=n(23),h=n.n(p),m=n(8),g=n.n(m),v=n(14),y=n.n(v),b=n(1170),_=n.n(b),w=n(255),E=n.n(w),k=n(0),x=n(201),S=n(187),T=n(29),C=n(413),O=Object(T.c)("AUTH_SERVICE_URI"),A=Object(T.c)("ID_MAPPER_URI"),N=u()(_.a.parse,E()(1,1/0)),I=function(e){return h()(g()("search"),N,l()(y()("type_hint",e),y()("session_hint","AUTHENTICATED")))},M=function(e){if(Object(C.d)(e))return a.a.get("".concat(O,"/api/v1/sessions/me"),{withCredentials:!0}).then(f()(["data","userId"])).then(function(e){var t;return a.a.get(i()(t="".concat(A,"/v1/users/")).call(t,encodeURIComponent(e)))}).then(S.e);throw e},j=function(e){var t=e.location,n=e.setupSession;return function(){var e=t.hash,r=t.pathname,i=N(e).state;Object(S.b)().then(function(e){return e.token.parseFromUrl()}).catch(function(e){return function(t){var n=I("PASSWORD_RECOVERY"),r=I("ACTIVATION"),i=n(e)||r(e);if(Object(C.b)(t)&&i)return Object(S.e)();throw t}}(t)).catch(M).then(n).catch(function(e){return console.error("Error in AuthCallback; REPORT_ERROR",e)}).then(function(){return e=r,t=i,n=window.localStorage.getItem(t)||"/",o=n===e?"/":n,window.localStorage.removeItem(t),void(window.location.href=o);var e,t,n,o})}};t.a=Object(x.e)(function(e){return Object(k.useEffect)(j(e),[]),null})},function(e,t,n){"use strict";var r=n(1898),i=n(1899),o=n(917);e.exports={formats:o,parse:i,stringify:r}},function(e,t,n){var r=n(878),i=n(456);e.exports=r(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Object]":return function(e,t){var n={},r=[],i=function(i){var o=e(t[i]).then(function(e){n[i]=e});r.push(o)};for(var o in t)i(o);return Promise.all(r).then(function(){return n})}(e,t);default:return function(e,t){return Promise.all(i(e,t))}(e,t)}})},function(e,t,n){var r=n(1903),i=n(1904);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){var r=n(87),i=n(60),o=n(319),a=n(197),s=n(82);e.exports=r(function(e){return i(s(o,0,a("length",e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})})},function(e,t,n){var r=n(129);e.exports=r(function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0})},function(e,t,n){var r=n(353),i=n(34),o=n(6),a=n(1967);e.exports=i(o(a,r))},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(6),i=n.n(r),o=n(60),a=n.n(o),s=n(42),l=n.n(s),c=n(14),u=n.n(c),d=n(32),f=n.n(d),p=n(64),h=n(91),m=n(217),g=l()(["author","courseId"]),v=h.a.send(m.b),y=(h.a.send(m.a),i()(v,g),h.a.send(m.c),f()(u()("type",m.b),a()(2,function(e,t,n){return e.payload.author===n().user.author?t(Object(p.c)()):t(e)})))},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r=n(37),i=n.n(r),o=n(20),a=n(396),s=n.n(a),l=n(19),c=n.n(l),u=n(6),d=n.n(u),f=n(60),p=n.n(f),h=n(368),m=n.n(h),g=(n(17),n(26),n(42)),v=n.n(g),y=n(8),b=n.n(y),_=n(14),w=n.n(_),E=n(32),k=n.n(E),x=n(21),S=n(237),T=n(482),C=n(91),O=n(170),A={},N=p()(2,function(e,t){I(t,e.payload),t(e)}),I=p()(2,function(e,t){var n=t.id,r=t.ttl;r&&(clearTimeout(A[n]),A[n]=i()(function(){delete A[n],Object(x.a)(e,Object(o.action)(T.a),{id:n})},r))}),M=(d()(v()(["author","session"]),b()("user")),d()(m()(N),C.a.send(O.a)),Object(S.c)([d()(Object(o.action)(O.a),c()("updatedAt",(new Date).toJSON())),d()(m()(m()(N)),C.a.throttle(500,O.b))]),k()(s()([w()("type",O.a),w()("type",O.b)]),N))},function(e,t,n){var r=n(87),i=n(60),o=n(360);e.exports=r(function(e){return i(e<0?1:e+1,function(){return o(e,arguments)})})},function(e,t,n){var r=n(879),i=n(687),o=n(937),a=n(1971),s=n(269),l=n(689),c=n(1981),u=n(1982),d=n(2004),f=n(2008),p=n(295),h=n(722),m=n(723),g=n(2014),v=l(function(e,t){return e+"/"+t.id});e.exports=function(e){void 0===e&&(e={});var t=e.query;void 0===t&&(t=Function.prototype);var n=e.uri;void 0===n&&(n="");var y={session:s()},b=p.parse(n),_=p.format(f(["protocol","slashes","host"],b)),w={autoConnect:!1,path:b.pathname,query:d(y,t())},E=u(_,w),k=o(E.connect,E),x=l(function(e,t,n){return E.emit("action",r(e,t),n)}),S=l(function(e,t){return i(function(n,r){x(e,t,function(e){e.error?n(c({payload:g},e)):r(e)})})}),T=function(){return E.io.opts.query=d(y,t())};return E.connect=a(k,T),E.debounce=l(function(e,t){return h(e,v(t),S(t))}),E.send=S,Object.assign(E,y),E.throttle=l(function(e,t){return m(e,v(t),S(t))}),E.on("reconnect_attempt",T),E}},function(e,t,n){e.exports=n(2035)},function(e,t,n){var r=n(666),i=n(34);e.exports=i(r("forEach",function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))},function(e,t,n){(function(t){var r;window,e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}({0:function(e,t){e.exports=r},1:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=r(0),s=(i=a)&&i.__esModule?i:{default:i},l=function(e){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.tag=null,t.defaultTag="div",t.listeningEvents=[],t.$element=null,t.editor=null,t.config={immediateReactModelUpdate:!1,reactIgnoreAttrs:null},t.editorInitialized=!1,t.SPECIAL_TAGS=["img","button","input","a"],t.INNER_HTML_ATTR="innerHTML",t.hasSpecialTag=!1,t.oldModel=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,s.default.Component),o(n,[{key:"componentWillMount",value:function(){this.tag=this.props.tag||this.defaultTag}},{key:"componentDidMount",value:function(){var e=this.refs.el.tagName.toLowerCase();-1!=this.SPECIAL_TAGS.indexOf(e)&&(this.tag=e,this.hasSpecialTag=!0),this.props.onManualControllerReady?this.generateManualController():this.createEditor()}},{key:"componentWillUnmount",value:function(){this.destroyEditor()}},{key:"componentDidUpdate",value:function(){JSON.stringify(this.oldModel)!=JSON.stringify(this.props.model)&&this.setContent()}},{key:"createEditor",value:function(){this.editorInitialized||(this.config=this.props.config||this.config,this.$element=t(this.refs.el),this.props.model&&(this.$element[0].innerHTML=this.props.model),this.setContent(!0),this.registerEvents(),this.$editor=this.$element.froalaEditor(this.config).data("froala.editor").$el,this.initListeners())}},{key:"setContent",value:function(e){(this.props.model||""==this.props.model)&&(this.oldModel=this.props.model,this.hasSpecialTag?this.setSpecialTagContent():this.setNormalTagContent(e))}},{key:"setNormalTagContent",value:function(e){var t=this,n=this;function r(){n.$element.froalaEditor("html.set",n.props.model||"",!0),n.editorInitialized&&(n.$element.froalaEditor("undo.reset"),n.$element.froalaEditor("undo.saveStep"))}e?this.config.initOnClick?(this.registerEvent(this.$element,"froalaEditor.initializationDelayed",function(){r()}),this.registerEvent(this.$element,"froalaEditor.initialized",function(){t.editorInitialized=!0})):this.registerEvent(this.$element,"froalaEditor.initialized",function(){t.editorInitialized=!0,r()}):r()}},{key:"setSpecialTagContent",value:function(){var e=this.props.model;if(e){for(var t in e)e.hasOwnProperty(t)&&t!=this.INNER_HTML_ATTR&&this.$element.attr(t,e[t]);e.hasOwnProperty(this.INNER_HTML_ATTR)&&(this.$element[0].innerHTML=e[this.INNER_HTML_ATTR])}}},{key:"destroyEditor",value:function(){this.$element&&(this.listeningEvents&&this.$element.off(this.listeningEvents.join(" ")),this.$editor.off("keyup"),this.$element.froalaEditor("destroy"),this.listeningEvents.length=0,this.$element=null,this.editorInitialized=!1)}},{key:"getEditor",value:function(){return this.$element?this.$element.froalaEditor.bind(this.$element):null}},{key:"generateManualController",value:function(){var e=this,t={initialize:function(){return e.createEditor.call(e)},destroy:function(){return e.destroyEditor.call(e)},getEditor:function(){return e.getEditor.call(e)}};this.props.onManualControllerReady(t)}},{key:"updateModel",value:function(){if(this.props.onModelChange){var e="";if(this.hasSpecialTag){for(var t=this.$element[0].attributes,n={},r=0;r<t.length;r++){var i=t[r].name;this.config.reactIgnoreAttrs&&-1!=this.config.reactIgnoreAttrs.indexOf(i)||(n[i]=t[r].value)}this.$element[0].innerHTML&&(n[this.INNER_HTML_ATTR]=this.$element[0].innerHTML),e=n}else{var o=this.$element.froalaEditor("html.get");"string"==typeof o&&(e=o)}this.oldModel=e,this.props.onModelChange(e)}}},{key:"initListeners",value:function(){var e=this;this.registerEvent(this.$element,"froalaEditor.contentChanged",function(){e.updateModel()}),this.config.immediateReactModelUpdate&&this.registerEvent(this.$editor,"keyup",function(){e.updateModel()})}},{key:"registerEvent",value:function(e,t,n){e&&t&&n&&(this.listeningEvents.push(t),e.on(t,n))}},{key:"registerEvents",value:function(){var e=this.config.events;if(e)for(var t in e)e.hasOwnProperty(t)&&this.registerEvent(this.$element,t,e[t])}}]),n}();n.default=l},12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(1));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),r(t,[{key:"render",value:function(){return i.default.createElement(this.tag,{ref:"el"},this.props.children)}}]),t}();t.default=s},13:function(e,t,n){e.exports=n(12)}}))}).call(this,n(54))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(26),i=n.n(r),o=n(109),a=n.n(o),s=a()(function(e){return e.preventDefault()});a()(function(e){return e.stopPropagation()}),i()(["target","value"])},function(e,t,n){"use strict";var r=n(394),i=n(4),o=n(15),a=n(146),s=n(37),l=n(3),c=n(469),u=n(721),d=n(290),f=n(467),p=n(226),h=n(583),m=n(465),g=n(464);g(t,"__esModule",{value:!0});var v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),g(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;r=!1,null===i&&(i=Function.prototype);var s=m(i,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var c=h(i);if(null===c)return;e=c,t=o,n=a,r=!0,s=c=void 0}};function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+d(t));e.prototype=u(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(c?c(e,t):e.__proto__=t)}var E=n(0),k=b(E),x=b(n(887)),S=b(n(2043)),T=function(e){function t(e){var n;_(this,t),y(h(t.prototype),"constructor",this).call(this,e),this.serverSide="undefined"==typeof window,this.listener=(0,x.default)(l(n=this.handleScroll).call(n,this),50),this.visibility={onScreen:!1,inViewport:!1},this.state={classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}}return w(t,E.Component),v(t,[{key:"getElementTop",value:function(e){for(var t=0;e&&void 0!==e.offsetTop&&void 0!==e.clientTop;)t+=e.offsetTop+e.clientTop,e=e.offsetParent;return t}},{key:"getScrollPos",value:function(){return void 0!==this.scrollableParent.pageYOffset?this.scrollableParent.pageYOffset:this.scrollableParent.scrollTop}},{key:"getScrollableParentHeight",value:function(){return void 0!==this.scrollableParent.innerHeight?this.scrollableParent.innerHeight:this.scrollableParent.clientHeight}},{key:"getViewportTop",value:function(){return this.getScrollPos()+this.props.offset}},{key:"getViewportBottom",value:function(){return this.getScrollPos()+this.getScrollableParentHeight()-this.props.offset}},{key:"isInViewport",value:function(e){return e>=this.getViewportTop()&&e<=this.getViewportBottom()}},{key:"isAboveViewport",value:function(e){return e<this.getViewportTop()}},{key:"isBelowViewport",value:function(e){return e>this.getViewportBottom()}},{key:"inViewport",value:function(e,t){return this.isInViewport(e)||this.isInViewport(t)||this.isAboveViewport(e)&&this.isBelowViewport(t)}},{key:"onScreen",value:function(e,t){return!this.isAboveScreen(t)&&!this.isBelowScreen(e)}},{key:"isAboveScreen",value:function(e){return e<this.getScrollPos()}},{key:"isBelowScreen",value:function(e){return e>this.getScrollPos()+this.getScrollableParentHeight()}},{key:"getVisibility",value:function(){var e=this.getElementTop(this.node)-this.getElementTop(this.scrollableParent),t=e+this.node.clientHeight;return{inViewport:this.inViewport(e,t),aboveViewport:this.isAboveViewport(e),belowViewport:this.isBelowViewport(e),onScreen:this.onScreen(e,t)}}},{key:"componentDidMount",value:function(){if(!this.serverSide){var e=this.props.scrollableParentSelector;this.scrollableParent=e?document.querySelector(e):window,this.scrollableParent&&this.scrollableParent.addEventListener?this.scrollableParent.addEventListener("scroll",this.listener):console.warn("Cannot find element by locator: "+this.props.scrollableParentSelector),this.handleScroll()}}},{key:"componentWillUnmount",value:function(){this.cleanup()}},{key:"cleanup",value:function(){clearTimeout(this.delayedAnimationTimeout),clearTimeout(this.callbackTimeout),window&&window.removeEventListener&&window.removeEventListener("scroll",this.listener)}},{key:"visibilityHasChanged",value:function(e,t){return e.inViewport!==t.inViewport||e.onScreen!==t.onScreen}},{key:"animate",value:function(e,t){var n=this;this.delayedAnimationTimeout=s(function(){n.animating=!0,n.setState({classes:"animated "+e,style:{animationDuration:n.props.duration+"s"}}),n.callbackTimeout=s(t,1e3*n.props.duration)},this.props.delay)}},{key:"animateIn",value:function(e){var t=this;this.animate(this.props.animateIn,function(){t.props.animateOnce||(t.setState({style:{animationDuration:t.props.duration+"s",opacity:1}}),t.animating=!1);var n=t.getVisibility();e&&e(n)})}},{key:"animateOut",value:function(e){var t=this;this.animate(this.props.animateOut,function(){t.setState({classes:"animated",style:{animationDuration:t.props.duration+"s",opacity:0}});var n=t.getVisibility();n.inViewport&&t.props.animateIn?t.animateIn(t.props.afterAnimatedIn):t.animating=!1,e&&e(n)})}},{key:"shouldNotAnimate",value:function(e){return this.props.animateIn&&this.props.animateOut?!e.onScreen:this.props.animateIn?!e.onScreen&&!e.aboveViewport:!e.onScreen&&!e.belowViewport}},{key:"shouldAnimateIn",value:function(e){return!!this.props.animateIn&&(this.props.animateOut?e.inViewport:e.inViewport||e.aboveViewport)}},{key:"shouldAnimateOut",value:function(e){return!(!this.props.animateOut||!e.onScreen||1!==this.state.style.opacity)&&(this.props.animateIn?e.inViewport:e.inViewport||e.belowViewport)}},{key:"handleScroll",value:function(){if(!this.animating){if(!this.node)return this.cleanup(),!0;var e=this.getVisibility();this.visibilityHasChanged(this.visibility,e)&&(clearTimeout(this.delayedAnimationTimeout),this.shouldNotAnimate(e)?this.setState({classes:"animated",style:{animationDuration:this.props.duration+"s",opacity:this.props.initiallyVisible?1:0}}):this.shouldAnimateIn(e)?this.animateIn(this.props.afterAnimatedIn):this.shouldAnimateOut(e)&&this.animateOut(this.props.afterAnimatedOut),this.visibility=e)}}},{key:"renderChild",value:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=this.props,i=r.initiallyVisible,o=r.siblingDelay*n,s=a({},this.state.style,this.props.style,{animationDelay:o+"s"});return k.default.createElement(C,{classes:t,initiallyVisible:i,style:s,key:n},e)}},{key:"renderChildren",value:function(e){var t,n,a,s=this,l=this.props,c=l.children;return l.siblingDelay&&p(c)?o(t=i(n=[]).call(n,function(e){if(p(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return f(e)}(r(a=Array(c.length)).call(a)))).call(t,function(t){return s.renderChild(c[t],e,t)}):this.renderChild(c,e)}},{key:"render",value:function(){var e=this,t=this.props.className?this.props.className+" "+this.state.classes:this.state.classes;return k.default.createElement("div",{ref:function(t){e.node=t}},this.renderChildren(t))}}]),t}();t.default=T,T.defaultProps={offset:150,duration:1,initiallyVisible:!1,delay:0,animateOnce:!1,siblingDelay:0},T.propTypes={animateIn:S.default.string,animateOut:S.default.string,offset:S.default.number,duration:S.default.number,delay:S.default.number,initiallyVisible:S.default.bool,animateOnce:S.default.bool,style:S.default.object,scrollableParentSelector:S.default.string,className:S.default.string,siblingDelay:S.default.number};var C=function(e){function t(e){_(this,t),y(h(t.prototype),"constructor",this).call(this,e),this.state={hasAnimated:!1}}return w(t,E.Component),v(t,[{key:"componentDidMount",value:function(){var e=this;this.animationEndListener=this.ref.addEventListener("animationend",function(){e.ref&&e.setState({hasAnimated:!0})})}},{key:"componentWillUnmount",value:function(){this.ref&&this.ref.removeEventListener("animationend",this.animationEndListener)}},{key:"componentWillReceiveProps",value:function(e){0===e.style.opacity&&this.setState({hasAnimated:!1})}},{key:"render",value:function(){var e=this,t=this.props,n=t.initiallyVisible,r=t.children,i=t.classes,o=this.state.hasAnimated,s=this.props.style,l=void 0===s.animationDelay||n?s.opacity:0,c=a({},s,{opacity:o?1:l});return k.default.createElement("div",{className:i,style:c,ref:function(t){return e.ref=t}},r)}}]),t}();C.propTypes={classes:S.default.string,style:S.default.object},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(2078),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default},function(e,t,n){e.exports=n(2084)},function(e,t,n){var r=n(34),i=n(248),o=n(2089);e.exports=r(i([],o,function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))},function(e,t){e.exports=playerjs},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(380),i=n(381),o=n(251).type("Any"),a=n(93),s=n(676),l=n(194),c=function(){return u(!1)};function u(e){var t=s(e)?c().value():e;if(!arguments.length||a(t))throw new TypeError("Any: Non-function value required");var n=function(){return!!t};return{inspect:function(){return"Any"+i(n())},value:n,type:o,concat:function(e){if(!l(u,e))throw new TypeError("Any.concat: Any required");return u(e.value()||n())},empty:c}}u["@@implements"]=r(["concat","empty"]),u.empty=c,u.type=o,e.exports=u},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t){if(!i(t))throw new TypeError("reverseApply: Function required for second argument");return t(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(527),o=n(93),a=n(2092),s=n(2093);e.exports=r(function(e,t,n){if(!e||!a(e))throw new TypeError("mreduceMap: Monoid required for first argument");if(!o(t))throw new TypeError("mreduceMap: Function required for second argument");if(!i(n))throw new TypeError("mreduceMap: Foldable required for third argument");return s(e,t,n).value()})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(251).proxy("Pred"),i=n(130),o=n(93),a=n(194),s=n(706);e.exports=i(function(e,t){if(!o(e)&&!a(r,e)||!o(t)&&!a(r,t))throw new TypeError("or: Preds or predicate functions required for first two arguments");return function(n){return!(!s(e,n)&&!s(t,n))}})},function(e,t,n){var r=n(34),i=n(40),o=n(865);e.exports=r(function(e,t){return i(o(e.length,t),e)})},function(e,t,n){var r=n(34),i=n(248),o=n(2095),a=n(255);e.exports=r(i(["drop"],o,function(e,t){return a(Math.max(0,e),1/0,t)}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),o=n(1),a=(r=n(728))&&r.__esModule?r:{default:r};function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){var e,n,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=this,(n=!(i=(e=c(t)).call.apply(e,[this].concat(a)))||"object"!==s(i)&&"function"!=typeof i?u(r):i).state={},n.setDimensions=n.setDimensions.bind(u(n)),n}var n,r,f;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,i.Component),n=t,f=[{key:"defaultProps",get:function(){return{aspectRatio:9/16,fullWidthAt:0,options:{preload:"auto",controls:!0,controlBar:{remainingTimeDisplay:!0,volumePanel:{inline:!1}}}}}},{key:"propTypes",get:function(){return{aspectRatio:o.PropTypes.number,fullWidthAt:o.PropTypes.number,options:o.PropTypes.shape({bigPlayButton:o.PropTypes.bool,preload:o.PropTypes.string,controls:o.PropTypes.bool,controlBar:o.PropTypes.object}),poster:o.PropTypes.string}}}],(r=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.setDimensions),this.player=(0,a.default)(this.video,this.props.options,function(){this.on("ended",function(){this.posterImage.show(),this.bigPlayButton.show(),this.currentTime(0)})}),this.setDimensions()}},{key:"componentWillUnmount",value:function(){this.player&&this.player.dispose(),window.removeEventListener("resize",this.setDimensions)}},{key:"getBoundingRect",value:function(){return this.container.parentNode.getBoundingClientRect()}},{key:"getParentPadding",value:function(){var e=window.getComputedStyle(this.container.parentNode,null),t=function(e,t){return parseInt(e.getPropertyValue(t),10)||0};return{top:t(e,"padding-top"),bottom:t(e,"padding-bottom")}}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"videoContainer",style:this.state.dimensions,ref:function(t){e.container=t}},i.default.createElement("video",{className:"video-js vjs-default-skin",ref:function(t){e.video=t},poster:this.props.poster},this.props.children))}},{key:"setDimensions",value:function(){var e=this.getBoundingRect(),t=e.width,n=e.height,r=this.getParentPadding();n=n-r.top-r.bottom;var i,o,a=this.props.aspectRatio;t*a<=n||this.props.fullWidthAt&&window.innerWidth<this.props.fullWidthAt?(i=t,o=t*a):(o=n,i=n*(1/a)),this.setState({dimensions:{width:i,height:o}})}},{key:"snapshot",value:function(){var e=document.createElement("canvas"),t=e.getContext("2d"),n=this.player.videoHeight(),r=this.player.videoWidth();return e.width=r,e.height=n,t.drawImage(this.video,0,0,r,n),e.toDataURL("image/png")}}])&&l(n.prototype,r),f&&l(n,f),t}();t.default=f},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){"use strict";var r=n(961).discardEmulationPreventionBytes,i=n(2104).CaptionStream,o=n(362),a=n(726),s=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},l=function(e,t){var n=o.findBox(e,["moof","traf"]),i=o.findBox(e,["mdat"]),l={},c=[];return i.forEach(function(e,t){var r=n[t];c.push({mdat:e,traf:r})}),c.forEach(function(e){var n,i=e.mdat,c=e.traf,u=o.findBox(c,["tfhd"]),d=a.parseTfhd(u[0]),f=d.trackId,p=o.findBox(c,["tfdt"]),h=p.length>0?a.parseTfdt(p[0]).baseMediaDecodeTime:0,m=o.findBox(c,["trun"]);t===f&&m.length>0&&(n=function(e,t,n){var i,o,a,l,c=new DataView(e.buffer,e.byteOffset,e.byteLength),u=[];for(o=0;o+4<e.length;o+=a)if(a=c.getUint32(o),o+=4,!(a<=0))switch(31&e[o]){case 6:var d=e.subarray(o+1,o+1+a),f=s(o,t);i={nalUnitType:"sei_rbsp",size:a,data:d,escapedRBSP:r(d),trackId:n},f?(i.pts=f.pts,i.dts=f.dts,l=f):(i.pts=l.pts,i.dts=l.dts),u.push(i)}return u}(i,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,s=n.trackId,l=[];return e.forEach(function(e){var t=a.parseTrun(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration}),l=l.concat(t)}),l}(m,h,d),f),l[f]||(l[f]=[]),l[f]=l[f].concat(n))}),l};e.exports=function(){var e,t,n,r,o,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new i,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,o.captions.push(e),o.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&r===t[n])},this.parse=function(e,i,a){var s;if(!this.isInitialized())return null;if(!i||!a)return null;if(this.isNewInit(i,a))n=i[0],r=a[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var c=t.shift();this.parse(c,i,a)}return null!==(s=function(e,t,n){return null===t?null:{seiNals:l(e,t)[t],timescale:n}}(e,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),o):null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach(function(t){e.push(t)})},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()}},function(e,t,n){"use strict";var r=n(963),i=n(2105).handleRollover,o={};o.ts=n(2106),o.aac=n(2107);var a=n(2108).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,l=0,c=188,u=!1;c<=e.byteLength;)if(71!==e[l]||71!==e[c]&&c!==e.byteLength)l++,c++;else{switch(r=e.subarray(l,c),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;l+=188,c+=188}for(l=(c=e.byteLength)-188,u=!1;l>=0;)if(71!==e[l]||71!==e[c]&&c!==e.byteLength)l--,c--;else{switch(r=e.subarray(l,c),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),u=!0)}if(u)break;l-=188,c-=188}},l=function(e,t,n){for(var r,i,a,s,l,c,u,d=0,f=188,p=!1,h={data:[],size:0};f<e.byteLength;)if(71!==e[d]||71!==e[f])d++,f++;else{switch(r=e.subarray(d,f),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!p&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),p=!0),!n.firstKeyFrame)){if(a&&0!==h.size){for(l=new Uint8Array(h.size),c=0;h.data.length;)u=h.data.shift(),l.set(u,c),c+=u.byteLength;if(o.ts.videoPacketContainsKeyFrame(l)){var m=o.ts.parsePesTime(l);m?(n.firstKeyFrame=m,n.firstKeyFrame.type="video"):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.")}h.size=0}h.data.push(r),h.size+=r.byteLength}}if(p&&n.firstKeyFrame)break;d+=188,f+=188}for(d=(f=e.byteLength)-188,p=!1;d>=0;)if(71!==e[d]||71!==e[f])d--,f--;else{switch(r=e.subarray(d,f),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),p=!0)}if(p)break;d-=188,f-=188}},c=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],l(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,l=0,c=0;e.length-c>=3;){switch(o.aac.parseType(e,c)){case"timed-metadata":if(e.length-c<10){n=!0;break}if((l=o.aac.parseId3TagSize(e,c))>e.length){n=!0;break}null===s&&(t=e.subarray(c,c+l),s=o.aac.parseAacTimestamp(t)),c+=l;break;case"audio":if(e.length-c<7){n=!0;break}if((l=o.aac.parseAdtsSize(e,c))>e.length){n=!0;break}null===i&&(t=e.subarray(c,c+l),i=o.aac.parseSampleRate(t)),r++,c+=l;break;default:c++}if(n)return null}if(null===i||null===s)return null;var u=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*u,pts:s+1024*r*u}]}}(e):c(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach(function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e,t,n){var r=n(528);e.exports=r(0,"toUpperCase")},function(e,t,n){
/*!
 * sweet-scroll
 * Modern and the sweet smooth scroll library.
 * @author tsuyoshiwada
 * @license MIT
 * @version 2.2.1
 */
e.exports=function(){"use strict";var e=Math.cos,t=Math.sin,n=Math.pow,r=Math.abs,i=Math.sqrt,o=Math.asin,a=Math.PI,s=Math.max,l=Math.min,c=Math.round,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(2,53)-1,h={};function m(e){return null==e?"":"object"===(void 0===e?"undefined":u(e))||"function"==typeof e?h[Object.prototype.toString.call(e)]||"object":void 0===e?"undefined":u(e)}function g(e){return"string"===m(e)}function v(e){return"function"===m(e)}function y(e){return Array.isArray(e)}function b(e){var t=null==e?null:e.length;return function(e){return"number"===m(e)}(t)&&t>=0&&t<=p}function _(e,t){return e&&e.hasOwnProperty(t)}function w(e,t,n){if(null==e)return e;var r=n||e;if(function(e){return!y(e)&&"object"===m(e)}(e)){for(var i in e)if(_(e,i)&&!1===t.call(r,e[i],i))break}else if(b(e))for(var o=0;o<e.length&&!1!==t.call(r,e[o],o);o++);return e}function E(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return w(n,function(t){w(t,function(t,n){e[n]=t})}),e}["Boolean","Number","String","Function","Array","Object"].forEach(function(e){h["[object "+e+"]"]=e.toLowerCase()});var k=!("undefined"==typeof window||!window.document||!window.document.createElement),x=function(){if(!k)return!1;var e=navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history&&"file:"!==window.location.protocol}(),S=k?window:null,T=k?document:null;function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelector(e)}function O(e,t){for(var n=(e.document||e.ownerDocument).querySelectorAll(t),r=n.length;--r>=0&&n.item(r)!==e;);return r>-1}var A={y:"scrollTop",x:"scrollLeft"},N={y:"pageYOffset",x:"pageXOffset"};function I(e){return e===T.documentElement||e===T.body}function M(e){for(var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=A[r],a=e instanceof Element?[e]:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e)return(null==t?T:t).querySelectorAll(e)}(e),s=[],l=T.createElement("div"),c=0;c<a.length;c++){var u=a[c];if(u[o]>0?s.push(u):(l.style.width=u.clientWidth+1+"px",l.style.height=u.clientHeight+1+"px",u.appendChild(l),u[o]=1.5/(t=void 0,n=void 0,t=S.outerWidth,n=S.innerWidth,t?t/n:1),u[o]>0&&s.push(u),u[o]=0,u.removeChild(l)),!i&&s.length>0)break}return s}function j(e,t){var n=M(e,t,!1);return n.length>=1?n[0]:null}function L(e){return null!=e&&e===e.window?e:9===e.nodeType&&e.defaultView}function P(e){return s(e.scrollHeight,e.clientHeight,e.offsetHeight)}function D(e){return s(e.scrollWidth,e.clientWidth,e.offsetWidth)}function R(e){return{width:D(e),height:P(e)}}function F(e){return I(e)?{viewport:{width:l(S.innerWidth,T.documentElement.clientWidth),height:S.innerHeight},size:{width:s(D(T.body),D(T.documentElement)),height:s(P(T.body),P(T.documentElement))}}:{viewport:{width:e.clientWidth,height:e.clientHeight},size:R(e)}}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",n=L(e);return n?n[N[t]]:e[A[t]]}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"y",r=L(e),i="y"===n;r?r.scrollTo(i?r[N.x]:t,i?t:r[N.y]):e[A[n]]=t}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e||e&&!e.getClientRects().length)return{top:0,left:0};var n=e.getBoundingClientRect();if(n.width||n.height){var r={},i=null;if(null==t||I(t))i=e.ownerDocument.documentElement,r.top=S.pageYOffset,r.left=S.pageXOffset;else{var o=(i=t).getBoundingClientRect();r.top=-1*o.top+i.scrollTop,r.left=-1*o.left+i.scrollLeft}return{top:n.top+r.top-i.clientTop,left:n.left+r.left-i.clientLeft}}return n}function z(e,t,n){var r=t.split(",");r.forEach(function(t){e.addEventListener(t.trim(),n,!1)})}function H(e,t,n){var r=t.split(",");r.forEach(function(t){e.removeEventListener(t.trim(),n,!1)})}function W(e,t,n,r,i){return(t/=i)<1/2.75?r*(7.5625*t*t)+n:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+n:r*(7.5625*(t-=2.625/2.75)*t+.984375)+n}function $(e,t,n,r,i){return r-W(0,i-t,0,r,i)+n}var Y=Object.freeze({linear:function(e){return e},InQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},OutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},InOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},InCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},OutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},InOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},InQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},OutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},InOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},InQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},OutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},InOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},InSine:function(t,n,r,i,o){return-i*e(n/o*(a/2))+i+r},OutSine:function(e,n,r,i,o){return i*t(n/o*(a/2))+r},InOutSine:function(t,n,r,i,o){return-i/2*(e(a*n/o)-1)+r},InExpo:function(e,t,r,i,o){return 0===t?r:i*n(2,10*(t/o-1))+r},OutExpo:function(e,t,r,i,o){return t===o?r+i:i*(1-n(2,-10*t/o))+r},InOutExpo:function(e,t,r,i,o){return 0===t?r:t===o?r+i:(t/=o/2)<1?i/2*n(2,10*(t-1))+r:i/2*(2-n(2,-10*--t))+r},InCirc:function(e,t,n,r,o){return-r*(i(1-(t/=o)*t)-1)+n},OutCirc:function(e,t,n,r,o){return r*i(1-(t=t/o-1)*t)+n},InOutCirc:function(e,t,n,r,o){return(t/=o/2)<1?-r/2*(i(1-t*t)-1)+n:r/2*(i(1-(t-=2)*t)+1)+n},InElastic:function(e,i,s,l,c){var u=1.70158,d=0,f=l;return 0===i?s:1==(i/=c)?s+l:(d||(d=.3*c),f<r(l)?(f=l,u=d/4):u=d/(2*a)*o(l/f),-f*n(2,10*(i-=1))*t(2*a*(i*c-u)/d)+s)},OutElastic:function(e,i,s,l,c){var u=1.70158,d=0,f=l;return 0===i?s:1==(i/=c)?s+l:(d||(d=.3*c),f<r(l)?(f=l,u=d/4):u=d/(2*a)*o(l/f),f*n(2,-10*i)*t(2*a*(i*c-u)/d)+l+s)},InOutElastic:function(e,i,s,l,c){var u=1.70158,d=0,f=l;return 0===i?s:2==(i/=c/2)?s+l:(d||(d=c*(.3*1.5)),f<r(l)?(f=l,u=d/4):u=d/(2*a)*o(l/f),i<1?f*n(2,10*(i-=1))*t(2*a*(i*c-u)/d)*-.5+s:f*n(2,-10*(i-=1))*t(2*a*(i*c-u)/d)*.5+l+s)},InBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*(t/=i)*t*((o+1)*t-o)+n},OutBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return r*((t=t/i-1)*t*((o+1)*t+o)+1)+n},InOutBack:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1.70158;return(t/=i/2)<1?r/2*(t*t*((1+(o*=1.525))*t-o))+n:r/2*((t-=2)*t*((1+(o*=1.525))*t+o)+2)+n},OutBounce:W,InBounce:$,InOutBounce:function(e,t,n,r,i){return t<i/2?.5*$(0,2*t,0,r,i)+n:.5*W(0,2*t-i,0,r,i)+.5*r+n}}),V=["ms","moz","webkit"],K=0,G=k?S.requestAnimationFrame:null,X=k?S.cancelAnimationFrame:null;if(k){for(var Q=0;Q<V.length&&!G;++Q)G=S[V[Q]+"RequestAnimationFrame"],X=S[V[Q]+"CancelAnimationFrame"]||S[V[Q]+"CancelRequestAnimationFrame"];G||(G=function(e){var t=Date.now(),n=s(0,16-(t-K)),r=setTimeout(function(){e(t+n)},n);return K=t+n,r}),X||(X=function(e){clearTimeout(e)})}var Z=function(){function e(t){d(this,e),this.el=t,this.props={},this.options={},this.progress=!1,this.easing=null,this.startTime=null,this.rafId=null}return f(e,[{key:"run",value:function(e,t,n){var r=this;this.progress||(this.props={x:e,y:t},this.options=n,this.easing=v(n.easing)?n.easing:Y[n.easing.replace("ease","")],this.progress=!0,setTimeout(function(){r.startProps=r.calcStartProps(e,t),r.rafId=G(function(e){return r._loop(e)})},this.options.delay))}},{key:"stop",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.options.complete;this.startTime=null,this.progress=!1,X(this.rafId),e&&(U(this.el,this.props.x,"x"),U(this.el,this.props.y,"y")),v(t)&&(t.call(this),this.options.complete=null)}},{key:"_loop",value:function(e){var t=this;if(this.startTime||(this.startTime=e),this.progress){var n=this.el,r=this.props,i=this.options,o=this.startTime,a=this.startProps,u=this.easing,d=i.duration,f=i.step,p={},h=e-o,m=l(1,s(h/d,0));w(r,function(e,t){var n=a[t],r=e-n;if(0===r)return!0;var i=u(m,d*m,0,1,d);p[t]=c(n+r*i)}),w(p,function(e,t){U(n,e,t)}),h<=d?(f.call(this,m,p),this.rafId=G(function(e){return t._loop(e)})):this.stop(!0)}else this.stop(!1)}},{key:"calcStartProps",value:function(e,t){var n={x:B(this.el,"x"),y:B(this.el,"y")};if(this.options.quickMode){var i=F(this.el),o=i.viewport,a=o.width,s=o.height;r(n.y-t)>s&&(n.y=n.y>t?t+s:t-s),r(n.x-e)>a&&(n.x=n.x>e?e+a:e-a)}return n}}]),e}(),J=(k?"onwheel"in T?"wheel":"onmousewheel"in T?"mousewheel":"DOMMouseScroll":"wheel")+", touchstart, touchmove",ee=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body, html";d(this,e),this.isSSR=!k,this.options=E({},e.defaults,t),this.container=this.getContainer(n),null==this.container?(this.header=null,this.tween=null,this.isSSR||(/comp|inter|loaded/.test(T.readyState)?this.log('Not found scrollable container. => "'+n+'"'):this.log("Should be initialize later than DOMContentLoaded."))):(this.header=C(this.options.header),this.tween=new Z(this.container),this._trigger=null,this._shouldCallCancelScroll=!1,this.bindContainerClick())}return f(e,[{key:"log",value:function(e){this.options.outputLog&&function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}("[SweetScroll] "+e)}},{key:"getScrollOffset",value:function(e,t){var n=this.container,r=this.header,i=this.parseCoodinate(t.offset),o=this.parseCoodinate(e);if(!o&&g(e))if("#"===e)o={top:0,left:0};else{var a=C(e),l=q(a,n);if(!l)return;o=l}return o?(i&&(o.top+=i.top,o.left+=i.left),r&&(o.top=s(0,o.top-R(r).height)),o):null}},{key:"normalizeScrollOffset",value:function(e,t){var n=this.container,r=E({},e),i=F(n),o=i.viewport,a=i.size;return r.top=t.verticalScroll?s(0,l(a.height-o.height,r.top)):B(n,"y"),r.left=t.horizontalScroll?s(0,l(a.width-o.width,r.left)):B(n,"x"),r}},{key:"to",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR){var r=this.container,i=E({},this.options,n),o=this._trigger,a=g(e)&&/^#/.test(e)?e:null;if(this._options=i,this._trigger=null,this._shouldCallCancelScroll=!1,this.stop(),!r)return this.log("Not found container element.");var s=this.getScrollOffset(e,i);if(!s)return this.log("Invalid parameter of distance. => "+e);!1!==this.hook(i,"beforeScroll",s,o)?(s=this.normalizeScrollOffset(s,i),this.tween.run(s.left,s.top,{duration:i.duration,delay:i.delay,easing:i.easing,quickMode:i.quickMode,complete:function(){null!=a&&a!==S.location.hash&&t.updateURLHash(a,i.updateURL),t.unbindContainerStop(),t._options=null,t._shouldCallCancelScroll?t.hook(i,"cancelScroll"):t.hook(i,"afterScroll",s,o),t.hook(i,"completeScroll",t._shouldCallCancelScroll)},step:function(e,n){t.hook(i,"stepScroll",e,n)}}),this.bindContainerStop()):this._options=null}}},{key:"toTop",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,E({},t,{verticalScroll:!0,horizontalScroll:!1}))}},{key:"toLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.to(e,E({},t,{verticalScroll:!1,horizontalScroll:!0}))}},{key:"toElement",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isSSR)if(e instanceof Element){var n=q(e,this.container);this.to(n,E({},t))}else this.log("Invalid parameter.")}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isSSR||(this.container?(this._stopScrollListener&&(this._shouldCallCancelScroll=!0),this.tween.stop(e)):this.log("Not found scrollable container."))}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.options=E({},this.options,e),this.header=C(this.options.header),this.bindContainerClick()):this.isSSR||this.log("Not found scrollable container.")}},{key:"destroy",value:function(){this.container?(this.stop(),this.unbindContainerClick(),this.unbindContainerStop(),this.container=null,this.header=null,this.tween=null):this.isSSR||this.log("Not found scrollable container.")}},{key:"beforeScroll",value:function(e,t){return!0}},{key:"cancelScroll",value:function(){}},{key:"afterScroll",value:function(e,t){}},{key:"completeScroll",value:function(e){}},{key:"stepScroll",value:function(e,t){}},{key:"parseCoodinate",value:function(e){var t,n=this._options?this._options.verticalScroll:this.options.verticalScroll,r={top:0,left:0};if(_(e,"top")||_(e,"left"))r=E(r,e);else if(y(e))2===e.length?(r.top=e[0],r.left=e[1]):(r.top=n?e[0]:0,r.left=n?0:e[0]);else if(!y(t=e)&&t-parseFloat(t)+1>=0)r.top=n?e:0,r.left=n?0:e;else{if(!g(e))return null;var i=e.replace(/\s*/g,"")||"";if(/^\d+,\d+$/.test(i))i=i.split(","),r.top=i[0],r.left=i[1];else if(/^(top|left):\d+,?(?:(top|left):\d+)?$/.test(i)){var o=i.match(/top:(\d+)/),a=i.match(/left:(\d+)/);r.top=o?o[1]:0,r.left=a?a[1]:0}else{if(!this.container||!/^(\+|-)=(\d+)$/.test(i))return null;var s=B(this.container,n?"y":"x"),l=i.match(/^(\+|-)=(\d+)$/),c=l[1],u=parseInt(l[2],10);"+"===c?(r.top=n?s+u:0,r.left=n?0:s+u):(r.top=n?s-u:0,r.left=n?0:s-u)}}return r.top=parseInt(r.top,10),r.left=parseInt(r.left,10),r}},{key:"updateURLHash",value:function(e,t){!this.isSSR&&x&&t&&S.history["replace"===t?"replaceState":"pushState"](null,null,e)}},{key:"getContainer",value:function(e){var t=this.options,n=t.verticalScroll,r=t.horizontalScroll,i=null;return this.isSSR?i:(n&&(i=j(e,"y")),!i&&r&&(i=j(e,"x")),i)}},{key:"bindContainerClick",value:function(){var e=this.container;e&&(this._containerClickListener=this.handleContainerClick.bind(this),z(e,"click",this._containerClickListener))}},{key:"unbindContainerClick",value:function(){var e=this.container;e&&this._containerClickListener&&(H(e,"click",this._containerClickListener),this._containerClickListener=null)}},{key:"bindContainerStop",value:function(){var e=this.container;e&&(this._stopScrollListener=this.handleStopScroll.bind(this),z(e,J,this._stopScrollListener))}},{key:"unbindContainerStop",value:function(){var e=this.container;e&&this._stopScrollListener&&(H(e,J,this._stopScrollListener),this._stopScrollListener=null)}},{key:"hook",value:function(e,t){for(var n=e[t],r=arguments.length,i=Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];if(v(n)){var a=n.apply(this,i);if(void 0===a)return a}return this[t].apply(this,i)}},{key:"handleStopScroll",value:function(e){var t=this._options?this._options.stopScroll:this.options.stopScroll;t?this.stop():e.preventDefault()}},{key:"handleContainerClick",value:function(e){for(var t=this.options,n=e.target;n&&n!==T;n=n.parentNode)if(O(n,t.trigger)){var r=n.getAttribute("data-scroll"),i=this.parseDataOptions(n),o=r||n.getAttribute("href");(t=E({},t,i)).preventDefault&&e.preventDefault(),t.stopPropagation&&e.stopPropagation(),this._trigger=n,t.horizontalScroll&&t.verticalScroll?this.to(o,t):t.verticalScroll?this.toTop(o,t):t.horizontalScroll&&this.toLeft(o,t)}}},{key:"parseDataOptions",value:function(e){var t=e.getAttribute("data-scroll-options");return t?JSON.parse(t):{}}}]),e}();return ee.defaults={trigger:"[data-scroll]",header:"[data-scroll-header]",duration:1e3,delay:0,easing:"easeOutQuint",offset:0,verticalScroll:!0,horizontalScroll:!1,stopScroll:!0,updateURL:!1,preventDefault:!0,stopPropagation:!0,outputLog:!1,quickMode:!1,beforeScroll:null,afterScroll:null,cancelScroll:null,completeScroll:null,stepScroll:null},ee}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return N});var r=n(4),i=n.n(r),o=n(3),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(2113),n(83)),h=n.n(p),m=n(86),g=n.n(m),v=n(6),y=n.n(v),b=n(2),_=n.n(b),w=n(331),E=n(56),k=n(29),x=n(58),S=n(68),T=n(740),C=n(107),O=n(81),A=n(218),N=function(t){function n(){var e,t,r,i,o,l,f;return Object(s.a)(this,n),(f=Object(c.a)(this,Object(u.a)(n).call(this))).state={fullscreen:!1,reopenMenu:!1},f.iframe=null,f.canFullscreen=a()(e=f.canFullscreen).call(e,Object(d.a)(f)),f.handleCourseUpdate=a()(t=f.handleCourseUpdate).call(t,Object(d.a)(f)),f.handleFullscreenEnter=a()(r=f.handleFullscreenEnter).call(r,Object(d.a)(f)),f.handleFullscreenExit=a()(i=f.handleFullscreenExit).call(i,Object(d.a)(f)),f.handleMessages=a()(o=f.handleMessages).call(o,Object(d.a)(f)),f.renderItem=a()(l=f.renderItem).call(l,Object(d.a)(f)),f}return Object(f.a)(n,t),Object(l.a)(n,[{key:"componentWillMount",value:function(){window.addEventListener("message",this.handleMessages)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handleMessages)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.onStep,r=h()(t),i=y()(A.b,A.f);g()(i,n,r)}},{key:"canFullscreen",value:function(e){var t=this.props,n=t.blockId,r=t.hasManySlBlocks;return n===e.windowName||!r()}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[n];r&&r(t)}},{key:"handleCourseUpdate",value:function(e){var t=this.props,n=t.items,r=t.onStep,i=t.blockId,o=h()(n);if(i===e.windowName&&Object(A.h)(e)){var a=Object(A.c)(e),s=a.score,l=a.success;if(Object(A.j)(e)){var c=100*s.scaled;Object(O.e)(i,l,!0,c)}else Object(O.e)(i,!0,!1);r(o)}}},{key:"handleFullscreenEnter",value:function(e){var t=this.props,n=t.menuOpen,r=t.handleStorylineFullscreen;this.canFullscreen(e)&&(n&&r(!0),this.setState({fullscreen:!0,reopenMenu:n}))}},{key:"handleFullscreenExit",value:function(e){var t=this.props.handleStorylineFullscreen,n=this.state.reopenMenu;this.canFullscreen(e)&&(n&&t(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}},{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.isLesson,i=t.isLearner,o=t.items,a=t.labels.storylineGroup,s=t.settings,l=t.takingSnapshot,c=h()(o),u=s.paddingTop,d=s.paddingBottom,f=s.backgroundColor,p=s.mediaWidth,m=void 0===p?"0":p,g={backgroundColor:Object(S.a)("",f),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*d,"px"),display:r&&!Object(A.g)(c)?"none":"block"},v=_()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":"0"===m,"blocks-storyline__wrapper--medium":"1"===m,"blocks-storyline__wrapper--full":"2"===m,"blocks-storyline__wrapper--snapshot":l});return e.createElement("div",{className:"blocks-storyline",style:g},e.createElement(E.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:i},e.createElement("div",{"aria-label":a,className:v},l?this.renderThumbnail(c):this.renderStorylineBlock(c))))}},{key:"renderStorylineBlock",value:function(e){return Object(A.i)(e)?this.renderProcessing():Object(A.g)(e)?this.renderItem(e):this.renderEmpty()}},{key:"renderThumbnail",value:function(t){var n,r=Object(A.e)(t),o=i()(n="".concat(Object(C.d)("CDN_USER_CONTENT_URI"),"/")).call(n,r);return e.createElement("img",{src:o})}},{key:"renderEmpty",value:function(){var t;return e.createElement("div",{className:"blocks-storyline__empty"},e.createElement("div",{className:"blocks-storyline__empty__icon"},e.createElement("img",{src:Object(k.g)("assets/images/storyline_product.svg")})),e.createElement("div",{className:"blocks-storyline__empty__heading"},"Add a Storyline 360 interaction from Review 360"),e.createElement("div",{className:"blocks-storyline__empty__button"},e.createElement(w.a,{outline:!0,onClick:a()(t=this.showModal).call(t,this)},"Browse Review 360")))}},{key:"renderItem",value:function(t){var n=this,r=this.state.fullscreen,i=this.props,o=i.blockId,a=i.isLesson,s=i.previewType,l=Object(A.d)(t),c=l.src,u=l.meta.player,d=Object(A.a)(c,a,s),f=u.height/u.width,p={paddingBottom:"".concat(100*f,"%")},h=_()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":r});return e.createElement("div",{className:"blocks-storyline__item",style:p},e.createElement("iframe",{allowtransparency:"true",ref:function(e){return n.iframe=e},name:o,className:h,src:Object(k.g)(d)}))}},{key:"renderProcessing",value:function(){var t;return e.createElement("div",{className:"blocks-storyline__empty"},e.createElement("div",{className:"blocks-storyline__empty__icon"},e.createElement("div",{className:"blocks-storyline__empty__spinner"})),e.createElement("div",{className:"blocks-storyline__empty__heading blocks-storyline__empty__heading--processing"},"Processing course..."),e.createElement("div",{className:"blocks-storyline__empty__text"},"Adding your Storyline 360 course to this block. Your course will ",e.createElement("br",null),"appear here when processing is complete."),e.createElement("div",{className:"blocks-storyline__empty__button"},e.createElement(w.a,{outline:!0,onClick:a()(t=this.onProcessingCancel).call(t,this)},"Cancel")))}},{key:"showModal",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.items,i=h()(r).id;Object(x.a)(Object(T.b)({lessonId:t,blockId:n,itemId:i}))}},{key:"onProcessingCancel",value:function(){var e=this.props,t=e.lessonId,n=e.blockId,r=e.items,i=h()(r).id;Object(x.a)(Object(T.a)({lessonId:t,blockId:n,itemId:i}))}}],[{key:"defaultProps",get:function(){return{isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(t){
/**
 * filesize
 *
 * @copyright 2017 Jason Mulligan <jason.mulligan@avoidwork.com>
 * @license BSD-3-Clause
 * @version 3.5.11
 */
!function(t){var n=/^(b|B)$/,r={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},i={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function o(e){var t,o,a,s,l,c,u,d,f,p,h,m,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},v=[],y=0,b=void 0,_=void 0;if(isNaN(e))throw new Error("Invalid arguments");return o=!0===g.bits,f=!0===g.unix,t=g.base||2,d=void 0!==g.round?g.round:f?1:2,p=void 0!==g.spacer?g.spacer:f?"":" ",m=g.symbols||g.suffixes||{},h=2===t&&g.standard||"jedec",u=g.output||"string",s=!0===g.fullform,l=g.fullforms instanceof Array?g.fullforms:[],b=void 0!==g.exponent?g.exponent:-1,a=t>2?1e3:1024,(c=(_=Number(e))<0)&&(_=-_),(-1===b||isNaN(b))&&(b=Math.floor(Math.log(_)/Math.log(a)))<0&&(b=0),b>8&&(b=8),0===_?(v[0]=0,v[1]=f?"":r[h][o?"bits":"bytes"][b]):(y=_/(2===t?Math.pow(2,10*b):Math.pow(1e3,b)),o&&(y*=8)>=a&&b<8&&(y/=a,b++),v[0]=Number(y.toFixed(b>0?d:0)),v[1]=10===t&&1===b?o?"kb":"kB":r[h][o?"bits":"bytes"][b],f&&(v[1]="jedec"===h?v[1].charAt(0):b>0?v[1].replace(/B$/,""):v[1],n.test(v[1])&&(v[0]=Math.floor(v[0]),v[1]=""))),c&&(v[0]=-v[0]),v[1]=m[v[1]]||v[1],"array"===u?v:"exponent"===u?b:"object"===u?{value:v[0],suffix:v[1],symbol:v[1]}:(s&&(v[1]=l[b]?l[b]:i[h][b]+(o?"bit":"byte")+(1===v[0]?"":"s")),v.join(p))}o.partial=function(e){return function(t){return o(t,e)}},e.exports=o}("undefined"!=typeof window&&window)}).call(this,n(69))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=(n(2116),n(2)),c=n.n(l),u=n(1),d=n.n(u),f=n(68),p=n(47),h=n(27),m=n(22),g=n(56),v=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,r=t.canContinue,i=t.isLearner,o=t.items,a=t.onStep,s=t.settings,l=o[0]||{};return e.createElement("div",{style:y(s)},e.createElement(g.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:i,offset:25},e.createElement("div",{className:"block-text--onecol"},e.createElement("div",{className:"block-text__container"},e.createElement("div",{className:"block-text__row"},e.createElement("div",{className:"block-text__col"},function(t){var n=t.canContinue,r=t.item,i=t.onStep;return!r.type||n?function(t){var n=t.item,r=t.onStep,i=n.buttonColor,o=n.id,a=n.title,s=function(){return r({id:o})},l=c()("block-continue","block-continue--btn",{"block-continue--btn--gray":"gray"===i,"block-continue--btn--black":"black"===i,"brand--background":"brand"===i});return e.createElement("div",{className:l,onClick:s,onKeyDown:Object(h.a)(s),role:"button",tabIndex:m.a},e.createElement("div",{className:"block-continue__content"},a))}({item:r,onStep:i}):(o=r,a=o.completeHint,e.createElement("div",{className:"block-continue block-continue--hint"},e.createElement(p.v,null),e.createElement("div",{className:"block-continue__content"},a)));var o,a}({canContinue:r,item:l,onStep:a})))))))}}],[{key:"propTypes",get:function(){return{items:d.a.array,settings:d.a.object.isRequired,canContinue:d.a.bool,onStep:d.a.func}}},{key:"defaultProps",get:function(){return{canContinue:!1,items:[],onStep:Function.prototype}}}]),n}(e.Component);function y(e){return{backgroundColor:Object(f.a)("",e.backgroundColor),paddingTop:"".concat(10*e.paddingTop,"px"),paddingBottom:"".concat(10*e.paddingBottom,"px")}}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){t.a=function(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"17",viewBox:"0 0 23 17",focusable:!1},e.createElement("path",{fillRule:"nonzero",d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z"}))}}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(1071)},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(1072),i=n(251).proxy("Pred"),o=n(130),a=n(93),s=n(194);e.exports=o(function(e,t){if(!a(e)&&!s(i,e))throw new TypeError("safe: Pred or predicate function required for first argument");return r(e)(t)})},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(315),i=n(130),o=n(93);e.exports=i(function(e,t){if(o(e)){if(o(t))return r(t,e);if(t&&o(t.contramap))return t.contramap(e);throw new TypeError("contramap: Function or Contavariant Functor of the same type required for second requirement")}throw new TypeError("contramap: Function required for first argument")})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(130),i=n(527),o=n(313);e.exports=r(function(e,t){if(!i(e))throw new TypeError("omit: Foldable required for first argument");if(!o(t))throw new TypeError("omit: Object required for second argument");return Object.keys(t).reduce(function(e,t){return function(n,r){return-1===e.indexOf(r)&&void 0!==t[r]?Object.assign(n,((i={})[r]=t[r],i)):n;var i}}(e,t),{})})},function(e,t,n){"use strict";var r=n(184),i=n.n(r),o=n(122),a=n.n(o),s=n(1210),l=n.n(s),c=n(1211),u=n.n(c),d=a()(function(e,t){return i()(l()(null),u()(e,t))});t.a=d},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130),i=n(93);e.exports=r(function(e,t){if(!t||!i(t.option))throw new TypeError("option: Last argument must be a Maybe");return t.option(e)})},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(251).proxy("Pred"),i=n(315),o=n(130),a=n(93),s=n(194),l=n(1072),c=function(e){return function(t){return t.map(e)}};e.exports=o(function(e,t){if(!a(e)&&!s(r,e))throw new TypeError("safeLift: Pred or predicate function required for first argument");if(!a(t))throw new TypeError("safeLift: Function required for second argument");return i(c(t),l(e))})},function(e,t,n){var r=n(379),i=n(34);e.exports=i(function(e,t){for(var n=[],i=0,o=e.length;i<o;)r(e[i],t)||r(e[i],n)||(n[n.length]=e[i]),i+=1;return n})},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var r=n(5),i=n(3),o=n.n(i),a=n(10),s=n(7),l=n(11),c=n(9),u=n(12),d=(n(2131),n(0)),f=n.n(d),p=n(2),h=n.n(p),m=n(6),g=n.n(m),v=n(26),y=n.n(v),b=n(44),_=n.n(b),w=n(124),E=n.n(w),k=n(27),x=n(90),S=n(22),T=n(85),C=function(e){function t(){return Object(a.a)(this,t),Object(l.a)(this,Object(c.a)(t).apply(this,arguments))}return Object(u.a)(t,e),Object(s.a)(t,[{key:"select",value:function(){var e=this.props,t=e.onChange,n=e.value;this.input.focus(),t(n)}},{key:"onKeyDown",value:function(e,t){var n=this.props,r=n.onChange,i=n.onEnterToSubmit,o=n.onNavigateToNext,a=n.onNavigateToPrevious,s=Object(x.a)(function(){r(e)}),l=Object(x.a)(a),c=Object(x.a)(o);_()([[k.j,s],[E()(k.f,k.l),l],[E()(k.h,k.b),c],[k.c,i]])(t)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.allowTabNavigation,i=n.buttonClassName,a=n.checked,s=n.children,l=n.className,c=n.disabled,u=n.id,d=n.name,p=n.onChange,h=n.radioIcon,m=n.readOnly,v=n.title,b=n.value;return f.a.createElement("label",{"aria-checked":a,"aria-label":v,className:O({className:l,disabled:c}),htmlFor:u,role:T.d},f.a.createElement("input",{checked:a,className:"radio-button__input",disabled:c,id:u,name:d,onChange:g()(p,y()(["target","value"])),readOnly:m,type:"radio",value:b}),f.a.createElement("div",{"aria-hidden":!r,className:A({buttonClassName:i}),tabIndex:Object(S.l)(r),onKeyDown:o()(e=this.onKeyDown).call(e,this,b),ref:function(e){t.input=e}},h),N(s))}}]),t}(d.Component);C.defaultProps={allowTabNavigation:!1,onEnterToSubmit:function(){},onNavigateToNext:function(){},onNavigateToPrevious:function(){}};var O=function(e){var t=e.className,n=e.disabled;return h()("radio-button",Object(r.a)({"radio-button--disabled":n},t,t))},A=function(e){var t=e.buttonClassName;return h()("radio-button__radio",Object(r.a)({},t,t))},N=function(e){if(e)return f.a.createElement("div",{className:"radio-button__label"},e)}},function(e,t,n){"use strict";var r=n(5),i=(n(2132),n(0)),o=n.n(i),a=n(2),s=n.n(a),l=n(6),c=n.n(l),u=n(26),d=n.n(u),f=n(44),p=n.n(f),h=n(47),m=n(22),g=n(27),v=n(90),y=function(e){var t=e.value,n=e.onChange,r=e.onEnterToSubmit;return function(e){var i=Object(v.a)(function(){n(t)});p()([[g.j,i],[g.c,r]])(e)}},b=function(e){var t=e.allowTabNavigation,n=e.checked,r=e.children,i=e.className,a=e.enabled,s=e.icon,l=e.id,u=e.onChange,f=e.onEnterToSubmit;return o.a.createElement("label",{htmlFor:l,className:_({checked:n,className:i})},o.a.createElement("input",{id:l,type:"checkbox",className:"checkbox__input",value:n,checked:n,onChange:a?c()(u,d()(["target","checked"])):void 0}),o.a.createElement("div",{"aria-hidden":!t,className:"checkbox__indicator",tabIndex:Object(m.l)(t),onKeyDown:a&&y({value:n,onChange:u,onEnterToSubmit:f})||null},s||o.a.createElement(h.d,null)),w(r))};b.defaultProps={allowTabNavigation:!1,enabled:!0,onEnterToSubmit:function(){}};var _=function(e){var t=e.checked,n=e.className;return s()("checkbox",Object(r.a)({"checkbox--checked":t},n,n))},w=function(e){if(e)return o.a.createElement("div",{className:"checkbox__label"},e)};t.a=b},function(e,t,n){"use strict";(function(e){var r=n(31),i=(n(2133),n(26)),o=n.n(i),a=n(68),s=n(591);t.a=function(t){var n=t.blockId,i=t.progress,l=t.settings,c=l.backgroundColor,u=l.paddingTop,d=l.paddingBottom,f={backgroundColor:Object(a.a)("",c),paddingTop:"".concat(10*u,"px"),paddingBottom:"".concat(10*d,"px")},p=o()(["items",n],i);return e.createElement("div",{className:"block-labeled-graphic",style:f},e.createElement(s.a,Object(r.a)({},t,{editable:!1,isBlock:!0,parentId:n,progress:p})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(4),i=n.n(r),o=n(15),a=n.n(o),s=n(37),l=n.n(s),c=n(3),u=n.n(c),d=n(10),f=n(11),p=n(9),h=n(13),m=n(7),g=n(12),v=(n(2135),n(2)),y=n.n(v),b=n(269),_=n.n(b),w=n(26),E=n.n(w),k=n(1217),x=n(1218),S=n(56),T=n(1220),C=n(183),O=function(t){function n(e){var t,r,i;Object(d.a)(this,n),i=Object(f.a)(this,Object(p.a)(n).call(this,e));var o=e.isLearner;return i.createMarker=u()(t=i.createMarker).call(t,Object(h.a)(i)),i.afterAnimatedIn=u()(r=i.afterAnimatedIn).call(r,Object(h.a)(i)),i.state={showMarkers:!o},i}return Object(g.a)(n,t),Object(m.a)(n,null,[{key:"defaultProps",get:function(){return{animateBlockEntrance:!1,editable:!0,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}}]),Object(m.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.isBlock,r=t.isLearner,i=t.isPreview,o=t.markerDelay;r&&!n&&(this.timeout=l()(function(){return e.setState({showMarkers:!0})},i?0:o))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,o=n.blockId,s=n.canvasClassNames,l=n.editable,c=n.hint,d=n.imageLoaded,f=void 0===d||d,p=n.isBlock,h=n.isLearner,m=n.isPreview,g=n.items,v=n.labels,b=n.lesson,_=n.media,w=n.onClose,O=n.onItemClear,A=n.onItemHint,N=n.onItemSelected,I=n.onNextClick,M=n.onPreviousClick,j=n.onShowAltDialog,L=n.parentId,P=n.progress,D=n.selected,R=n.showBubbles,F=n.enableVideoPlaybackSpeed,B=this.state.showMarkers,U=y()("map-item",{"map-item--animated":!l}),q=r?"fadeIn":"none",z=r?1:0;return e.createElement(S.a,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!m,animateIn:q,duration:m?0:z,initiallyVisible:!r,isLearner:h,offset:300},e.createElement(x.a,{canvasClassNames:s,editable:l,imageLoaded:f,lesson:b,media:_,onCreateMarker:this.createMarker,onShowAltDialog:j,ref:function(e){t.canvas=e}},a()(g).call(g,function(n,r){var a,s,d,f=n.description,h=n.id,m=n.icon,g=n.media,y=n.title,b=n.x,_=n.y,x={top:_+"%",left:b+"%"},S=E()(["items",h,"isComplete"],P),j=D===h;return e.createElement("div",{className:U,key:h},e.createElement(T.a,{editable:l,icon:m,isActive:c===h,isComplete:S,isSelected:j,isVisible:B,itemId:h,key:h,labels:v,onClick:function(){N(h)},onHover:function(){A()},onLeave:function(){O()},onSetPosition:u()(a=t.onSetPosition).call(a,t,h),parentId:L,styles:x,useLocalStateForCompletion:p}),!l&&R&&e.createElement(k.a,{description:f,isActive:j,key:"bubble-".concat(h),labels:v,onClose:function(){w()},onNextClick:function(){I(r)},onPreviousClick:function(){M(r)},title:y,x:b,y:_},g?e.createElement(C.a,{hasPadding:!1,index:i()(s=i()(d="".concat(o,"-")).call(d,h,"-")).call(s,r),labels:t.props.labels,media:g,enableVideoPlaybackSpeed:F}):null))})))}},{key:"createMarker",value:function(e){var t=this.props,n=t.editable,r=t.isBlock,i=t.lesson,o=t.onCreateMarker;if(n){var a=i.id,s=i.items,l=this.findItemCoordinates({e:e}),c=l.x,u=l.y;o({index:r?s[0].items.length:s.length,lessonId:a,items:s,payload:{description:"",hasMedia:!1,icon:"01",id:_()(),isActive:!1,title:"",x:String(c),y:String(u)}})}}},{key:"onSetPosition",value:function(e,t,n,r){var i=this.props,o=i.lesson,a=i.onSetMarkerPosition,s=o.id,l=o.items,c=this.findItemCoordinates({e:t,offsetX:n,offsetY:r}),u=c.x,d=c.y;a({itemId:e,lessonId:s,items:l,payload:{x:String(u),y:String(d)}})}},{key:"findItemCoordinates",value:function(e){var t=e.e,n=e.offsetX,r=void 0===n?0:n,i=e.offsetY,o=void 0===i?0:i,a=this.canvas.imageEl.getBoundingClientRect();return{x:this.findItemCoordinate({clientPos:t.clientX,clientOffset:r,rectSubtractor:a.left,rectDivisor:a.width,validOffsetAmount:20}),y:this.findItemCoordinate({clientPos:t.clientY,clientOffset:o,rectSubtractor:a.top,rectDivisor:a.height,validOffsetAmount:20})}}},{key:"findItemCoordinate",value:function(e){var t=e.clientPos,n=e.clientOffset,r=e.rectSubtractor,i=e.rectDivisor,o=e.validOffsetAmount/i*100,a=100-o,s=(t+n-r)/i*100;return s>a?s=a:s<o&&(s=o),s}},{key:"afterAnimatedIn",value:function(){this.props.isBlock&&this.setState({showMarkers:!0})}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return A});var r=n(15),i=n.n(r),o=n(37),a=n.n(o),s=n(3),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(13),h=n(12),m=(n(2136),n(2)),g=n.n(m),v=n(44),y=n.n(v),b=n(327),_=n.n(b),w=n(1),E=n.n(w),k=n(135),x=n.n(k),S=n(47),T=n(52),C=n(27),O=n(22),A=function(t){function n(e){var t,r,i,o,a,s,u;return Object(c.a)(this,n),(u=Object(d.a)(this,Object(f.a)(n).call(this,e))).state={hasOverflow:!1},u.renderOverflowMask=l()(t=u.renderOverflowMask).call(t,Object(p.a)(u)),u.handleScroll=l()(r=u.handleScroll).call(r,Object(p.a)(u)),u.handleBubbleClick=l()(i=u.handleBubbleClick).call(i,Object(p.a)(u)),u.handleKeyDown=l()(o=u.handleKeyDown).call(o,Object(p.a)(u)),u.handleNextClick=l()(a=u.handleNextClick).call(a,Object(p.a)(u)),u.handlePreviousClick=l()(s=u.handlePreviousClick).call(s,Object(p.a)(u)),u}return Object(h.a)(n,t),Object(u.a)(n,[{key:"componentWillUnmount",value:function(){this.contentRef.removeEventListener("scroll",this.scrollRef),this.videoContainer&&this.videoContainer.removeEventListener("click",this.handleBubbleClick)}},{key:"componentWillReceiveProps",value:function(e){e.isActive&&a()(this.renderOverflowMask,100)}},{key:"componentDidUpdate",value:function(e){var t=this.contentRef;!e.isActive&&this.props.isActive&&(t.scrollTop=0,this.bubble.focus()),this.state.hasOverflow&&e.isActive&&!this.props.isActive&&t.removeEventListener("scroll",this.scrollRef),this.stopVideoClickBubbling(e.isActive)}},{key:"render",value:function(){var t,n=this,r=this.props,o=r.children,a=r.description,s=r.isActive,l=r.labels,c=r.onClose,u=r.title,d=r.x,f=r.y,p=g()("bubble",{"bubble--active":s}),h=I({hasOverflow:this.state.hasOverflow,x:d,y:f}),m=l.labeledGraphicBubbleLabel,v=l.labeledGraphicNextMarkerLabel,y=l.labeledGraphicPreviousMarkerLabel,b=N({x:d,y:f}),w=e.createElement("div",{ref:function(e){n.el=e},className:p,style:b},e.createElement("div",{"aria-keyshortcuts":"ArrowRight ArrowLeft Escape","aria-label":m,className:h,onClick:this.handleBubbleClick,onKeyDown:this.handleKeyDown,ref:function(e){n.bubble=e},role:"dialog",tabIndex:O.a},e.createElement(T.a,{className:"bubble__title brand--head",value:u}),e.createElement("div",{className:"bubble__controls"},e.createElement("div",{"aria-label":y,className:"bubble__prev brand--hoverColor",onClick:this.handlePreviousClick,onKeyDown:Object(C.a)(this.handlePreviousClick),role:"button",tabIndex:O.a},e.createElement("i",{className:"icon icon-chevron-left"})),e.createElement("div",{"aria-label":v,className:"bubble__next brand--hoverColor",onClick:this.handleNextClick,onKeyDown:Object(C.a)(this.handleNextClick),role:"button",tabIndex:O.a},e.createElement("i",{className:"icon icon-chevron-right"}))),e.createElement("div",{className:"bubble__content",ref:function(e){n.contentRef=e},tabIndex:O.a,role:"button"},i()(t=e.Children).call(t,o,function(t){return t&&s?e.createElement("div",{className:"bubble__figure"},t):null}),e.createElement(T.a,{className:"bubble__description brand--body brand--linkColor",value:a})),e.createElement("button",{className:"bubble__close",onClick:c},e.createElement(S.g,null))));return window.matchMedia("(max-width: 767px)").matches?e.createElement(_.a,null,w):w}},{key:"renderOverflowMask",value:function(){if(this.contentRef){var e=this.contentRef,t=e.offsetHeight;e.scrollHeight>t?(e.addEventListener("scroll",this.scrollRef=x()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.onClose,r=t.onNextClick,i=t.onPreviousClick,o=Object(C.p)(this.contentRef,this.state.hasOverflow);y()([[C.f,i],[C.h,r],[C.e,n],[C.m,o]])(e)}},{key:"handleNextClick",value:function(e){var t=this.props.onNextClick;e.preventDefault(),t(e)}},{key:"handlePreviousClick",value:function(e){var t=this.props.onPreviousClick;e.preventDefault(),t(e)}},{key:"handleScroll",value:function(){var e=this.contentRef;e.scrollTop>=e.scrollHeight-e.offsetHeight-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}},{key:"stopVideoClickBubbling",value:function(e){if(!e&&this.props.isActive&&!this.videoContainer&&window.matchMedia("(max-width: 767px)").matches){var t=this.el.querySelector(".videoContainer");t&&(this.videoContainer=t,this.videoContainer.addEventListener("click",this.handleBubbleClick))}else e&&!this.props.isActive&&this.videoContainer&&(this.videoContainer.removeEventListener("click",this.handleBubbleClick),delete this.videoContainer)}},{key:"handleBubbleClick",value:function(e){e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}}],[{key:"propTypes",get:function(){return{description:E.a.string.isRequired,isActive:E.a.bool.isRequired,onClose:E.a.func.isRequired,onNextClick:E.a.func.isRequired,onPreviousClick:E.a.func.isRequired,title:E.a.string.isRequired}}},{key:"defaultProps",get:function(){return{onClose:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype}}}]),n}(e.Component),N=function(e){var t=e.x,n=e.y,r={top:"initial",bottom:"initial",left:0,right:0};return t>50?r.right=100-t+"%":r.left=t+"%",n>50?r.bottom=100-n+"%":r.top=n+"%",r},I=function(e){var t=e.hasOverflow,n=e.x,r=e.y,i=n<50,o="top";return r>33&&(o=r>66?"bottom":"middle"),g()("bubble__body","brand--border",{"bubble__body--has-overflow":t,"bubble__body--left":i,"bubble__body--right":!i,"bubble__body--top":"top"===o,"bubble__body--middle":"middle"===o,"bubble__body--bottom":"bottom"===o})}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return w});var r=n(71),i=n(10),o=n(7),a=n(11),s=n(9),l=n(12),c=(n(2144),n(2)),u=n.n(c),d=n(6),f=n.n(d),p=n(8),h=n.n(p),m=n(295),g=n.n(m),v=n(88),y=n(1219),b=n(216),_=f()(function(e){return e.substr(1)},h()("path"),g.a.parse),w=function(t){function n(e){var t;return Object(i.a)(this,n),(t=Object(a.a)(this,Object(s.a)(n).call(this,e))).state={style:{}},t}return Object(l.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this,n=this.props,i=n.canvasClassNames,o=n.children,a=n.editable,s=n.imageLoaded,l=n.media,c=void 0===l?{}:l,d=n.onCreateMarker,f=n.onShowAltDialog,p=this.state.style,h=c.image,m=void 0===h?{}:h,g=m.alt,w=m.key,E=m.src,k=!!m.alt,x='""'===g?"":g,S=Object(y.a)(m),T=u()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":a}),C=x||(a?"Labeled graphic lesson main image":void 0),O=w?Object(v.a)(m):Object(v.a)(Object(r.a)({key:_(E)},m));return e.createElement("div",{className:i||"labeled-graphic-canvas"},e.createElement("div",{className:"labeled-graphic-canvas__item"},e.createElement("div",{className:"labeled-graphic-canvas__bounds"},e.createElement("figure",{className:T},k&&a?e.createElement(b.a,{className:"item-media__tooltip"},e.createElement("div",{onClick:f,className:"labeled-graphic-canvas__alt-tag"},"ALT"),e.createElement(b.b,{side:"top"},"Edit alt text")):[],s&&e.createElement("img",{alt:C,"aria-describedby":C,className:"labeled-graphic-canvas__image",id:"graphic",onClick:d,onLoad:function(){return t.setState({style:S})},ref:function(e){t.imageEl=e},src:O,style:p,title:C}),o))))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n(18),i=n.n(r),o=n(6),a=n.n(o),s=n(79),l=n.n(s),c=n(55),u=n.n(c),d=n(41),f=n.n(d),p=a()(l()(".svg"),f()("","originalUrl")),h=u()(p,i()({width:"500rem"}),i()({}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var r=n(4),i=n.n(r),o=n(3),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(13),f=n(12),p=(n(2146),n(2)),h=n.n(p),m=n(1),g=n.n(m),v=n(22),y=n(27),b=n(80),_=function(t){function n(e){var t,r;return Object(s.a)(this,n),(r=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},r.onClick=a()(t=r.onClick).call(t,Object(d.a)(r)),r}return Object(f.a)(n,t),Object(l.a)(n,[{key:"parentCanvasElement",value:function(){return this.marker.parentElement.parentElement}},{key:"componentDidMount",value:function(){var e=this,t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=function(t){e.onItemDrag(t)}),t.addEventListener("mouseleave",this.onMouseLeave=function(t){e.onItemRelease(t)})}},{key:"componentWillUnmount",value:function(){var e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isSelected,n=e.useLocalStateForCompletion;t&&n&&!this.state.isComplete&&this.setState({isComplete:!0})}},{key:"render",value:function(){var t,n,r,i,o,s=this,l=this.props,c=l.editable,u=l.labels,d=l.isActive,f=l.isComplete,p=l.isSelected,m=l.isVisible,g=l.icon,b=l.styles,_=l.useLocalStateForCompletion,w=u?u.labeledGraphicMarkerLabel:void 0,E=h()("labeled-graphic-marker",{"labeled-graphic-marker--hint":d,"labeled-graphic-marker--active":p,"labeled-graphic-marker--dragged":this.state.isDragged,"labeled-graphic-marker--visible":m,"labeled-graphic-marker--complete":_?this.state.isComplete:f}),k=h()("labeled-graphic-marker__pin",{"brand--beforeBorder":!c&&!p&&this.state.hovering,"brand--color":!c&&!p,"brand--background":!c&&p});return e.createElement("div",{"aria-expanded":d,"aria-label":w,className:E,onClick:this.onClick,onContextMenu:a()(t=this.onItemRelease).call(t,this),onKeyDown:Object(y.a)(this.onClick),onMouseDown:a()(n=this.onItemGrab).call(n,this),onMouseEnter:a()(r=this.onHover).call(r,this),onMouseLeave:a()(i=this.onLeave).call(i,this),onMouseUp:a()(o=this.onItemRelease).call(o,this),ref:function(e){s.marker=e},role:"button",style:b,tabIndex:v.a},e.createElement("div",{className:k},e.createElement("i",{className:"icon icon-Master-".concat(g)})))}},{key:"onHover",value:function(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}},{key:"onLeave",value:function(){this.props.onLeave(),this.setState({hovering:!1})}},{key:"onClick",value:function(e){e.stopPropagation(),e.preventDefault(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation();var t=this.props,n=t.editable,r=t.itemId,i=t.onClick,o={detail:{itemId:r,parentId:t.parentId}},a=null;b.a.isIe11?(a=document.createEvent("UIEvents")).initUIEvent("labeledGraphicMarkerClick",!1,!1,window,o):a=new CustomEvent("labeledGraphicMarkerClick",o),document.dispatchEvent(a),n||i()}},{key:"onItemGrab",value:function(e){if(this.props.editable){var t=this.marker.getBoundingClientRect(),n=t.left-e.clientX+this.marker.offsetWidth/2,r=t.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:n,offsetY:r,isDragged:!0})}}},{key:"onItemDrag",value:function(e){if(this.state.isDragged){var t,n=e.clientX-this.state.posX,r=e.clientY-this.state.posY;this.marker.style.transform=i()(t="translate3d(".concat(n,"px, ")).call(t,r,"px, 0)")}}},{key:"onItemRelease",value:function(e){var t=this.props.editable,n={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():t&&e.currentTarget&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(n.offsetX=0,n.offsetY=0),this.setState(n)}}],[{key:"propTypes",get:function(){return{editable:g.a.bool,isActive:g.a.bool,isDragged:g.a.bool,isSelected:g.a.bool,onClick:g.a.func,onLeave:g.a.func,onSetPosition:g.a.func,styles:g.a.shape({top:g.a.string,left:g.a.string}).isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(71),i=n(3),o=n.n(i),a=n(10),s=n(7),l=n(11),c=n(9),u=n(12),d=(n(2147),n(44)),f=n.n(d),p=n(22),h=n(27),m=n(1222),g=function(t){function n(){return Object(a.a)(this,n),Object(l.a)(this,Object(c.a)(n).apply(this,arguments))}return Object(u.a)(n,t),Object(s.a)(n,[{key:"onKeyDown",value:function(e){var t,n;f()([[h.h,o()(t=this.triggerSlide).call(t,this,"next")],[h.f,o()(n=this.triggerSlide).call(n,this,"prev")]])(e)}},{key:"render",value:function(){var t,n=this,i=this.props.settings,a=i.paddingBottom,s=i.paddingTop,l={paddingBottom:"".concat(10*a,"px"),paddingTop:"".concat(10*s,"px")},c={className:"block-process",onKeyDown:o()(t=this.onKeyDown).call(t,this),style:l,tabIndex:p.a},u=Object(r.a)({ref:function(e){return n.process=e}},this.props);return e.createElement("div",c,e.createElement(m.a,u))}},{key:"triggerSlide",value:function(e){this.process.triggerSlide(e)}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return W});var r=n(15),i=n.n(r),o=n(4),a=n.n(o),s=n(406),l=n(3),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(13),m=n(12),g=n(103),v=n(54),y=n.n(v),b=n(108),_=n.n(b),w=n(19),E=n.n(w),k=n(6),x=n.n(k),S=n(46),T=n.n(S),C=n(39),O=n.n(C),A=n(45),N=n.n(A),I=n(36),M=n.n(I),j=n(35),L=n.n(j),P=n(14),D=n.n(P),R=n(1),F=n.n(R),B=n(112),U=n.n(B),q=n(748),z=n(80),H=n(56),W=function(t){function n(e){var t,r,i,o,a;return Object(u.a)(this,n),(a=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={entered:!1,visible:!1},a.getScrollTop=c()(t=a.getScrollTop).call(t,Object(h.a)(a)),a.handleEntranceEnd=c()(r=a.handleEntranceEnd).call(r,Object(h.a)(a)),a.handleScroll=c()(i=a.handleScroll).call(i,Object(h.a)(a)),a.triggerSlide=c()(o=a.triggerSlide).call(o,Object(h.a)(a)),a}return Object(m.a)(n,t),Object(d.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.onStep,n=e.previewType,r=document.getElementsByClassName("page-wrap")[0];this.container=M()(n)?window:r,this.container.addEventListener("scroll",this.handleScroll),this.handleScroll(),t&&this.setProgress()}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("scroll",this.handleScroll)}},{key:"getScrollTop",value:function(){var e=this.props.settings.paddingTop,t=this.container,n=Object(g.findDOMNode)(this),r=y()(n).offset().top,i=10*e;return t===window?r-i:y()(t).scrollTop()+r-y()(t).offset().top-i}},{key:"getSteps",value:function(){var e,t=this.props.items,n=O()(D()("type","intro"),t),r=O()(D()("type","summary"),t),o=T()(D()("type","step"),t),l=a()(e=[n]).call(e,Object(s.a)(o),[r]),c=U()(D()("isHidden",!0),l);return i()(c).call(c,function(e,t){return E()("index",t,e)})}},{key:"handleEntranceEnd",value:function(){this.setState({visible:!0})}},{key:"handleScroll",value:function(){this.state.entered||this.wrapper.getBoundingClientRect().bottom-100<=(this.container.innerHeight||this.container.offsetHeight)&&!this.state.entered&&this.setState({entered:!0})}},{key:"render",value:function(){var t=this,n=this.props,r=n.animateBlockEntrance,i=n.blockId,o=n.isLearner,a=n.labels,s=n.menuOpen,l=n.onStep,c=n.previewType,u=n.settings,d=n.enableVideoPlaybackSpeed,f=this.state,p=f.entered,h=f.visible,m=this.getSteps(),g=!M()(c),v=r?"fadeIn":"none",y=g&&r?1:0,b={afterAnimatedIn:this.handleEntranceEnd,animateBlockEntrance:g,animateIn:v,duration:y,initiallyVisible:!r,isLearner:o,offset:300},_={className:"process-block-wrapper",ref:function(e){return t.wrapper=e}},w={blockId:i,entered:p,getScrollTop:this.getScrollTop,labels:a,menuOpen:s,onStep:l,isPreview:g,settings:u,steps:m,visible:h,enableVideoPlaybackSpeed:d},k=E()("ref",function(e){return t.process=e},w),x=E()("ref",function(e){return t.processMobile=e},w),S=e.createElement(q.a,k),T=e.createElement(q.b,x);return e.createElement(H.a,b,e.createElement("div",_,z.a.isMobile?T:S))}},{key:"setProgress",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.getSteps(),i=T()(D()("isHidden",!0),t),o=r[0]?_()(r[0]):N.a;x()(L()(n),o)(i)}},{key:"shouldComponentUpdate",value:function(e,t){return e.menuOpen!==this.props.menuOpen||e.settings!==this.props.settings||t.entered!==this.state.entered||t.visible!==this.state.visible}},{key:"triggerSlide",value:function(e){z.a.isMobile?this.processMobile.handleSlide(e):this.process.handleSlide(e)}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:F.a.bool,blockId:F.a.string.isRequired,isLearner:F.a.bool,items:F.a.array.isRequired,labels:F.a.object.isRequired,menuOpen:F.a.bool,onStep:F.a.func,previewType:F.a.string,settings:F.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2150),n(18)),d=n.n(u),f=n(47),p=n(2),h=n.n(p),m=n(6),g=n.n(m),v=n(44),y=n.n(v),b=n(84),_=n(99),w=n.n(_),E=n(14),k=n.n(E),x=n(1),S=n.n(x),T=n(76),C=n.n(T),O=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"onClick",value:function(){var e=this.props,t=e.onClick;e.opacity>.5&&t()}},{key:"render",value:function(){var t,n=this.props,r=n.absolute,o=n.bottom,a=n.fixed,s=n.hidden,l=n.isSliding,c=n.offset,u=n.opacity,p=n.scroll,m=n.sidebar,g=n.top,v=n.type,_="next"===v,w="prev"===v,E=w&&"prev"===s||_&&"next"===s||"both"===s,x=p.active?a+m:r,S=p.active?a+c:r,T=y()([[k()("active",!0),d()(g)],[k()("end",!0),d()(o)],[C.a,d()(null)]])(p),O=h()("process-arrow",{"process-arrow--left":w,"process-arrow--right":_,"process-arrow--hidden":E,"process-arrow--scrolling":p.active,"process-arrow--disabled":u<=.5}),A={left:w?x:null,opacity:p.end?u:null,right:_?S:null,top:T},N={className:O,key:"arrow",onClick:i()(t=this.onClick).call(t,this),role:"button",style:A};return e.createElement(b.TransitionGroup,{component:"div"},!l&&e.createElement(b.CSSTransition,{classNames:"process-arrow",timeout:{enter:300,exit:200}},e.createElement("div",N,e.createElement(f.f,null))))}},{key:"shouldComponentUpdate",value:function(e){var t=function(e,t){return g()(w.a,k()(e,t))};return y()([[t("absolute",this.props.absolute),d()(!0)],[t("fixed",this.props.fixed),d()(!0)],[t("isSliding",this.props.isSliding),d()(!0)],[t("opacity",this.props.opacity),d()(!0)],[t("scroll",this.props.scroll),d()(!0)],[t("top",this.props.top),d()(!0)],[C.a,d()(!1)]])(e)}}],[{key:"propTypes",get:function(){return{absolute:S.a.number,bottom:S.a.number,fixed:S.a.number,hidden:S.a.oneOf(["both","next",null,"prev"]),isSliding:S.a.bool,offset:S.a.number,onClick:S.a.func.isRequired,opacity:S.a.number,scroll:S.a.object,sidebar:S.a.number,top:S.a.number,type:S.a.oneOf(["next","prev"])}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return g});var r=n(31),i=n(10),o=n(7),a=n(11),s=n(9),l=n(12),c=n(36),u=n.n(c),d=n(1),f=n.n(d),p=n(56),h=n(1225),m=n(1226),g=function(t){function n(){return Object(i.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(o.a)(n,[{key:"render",value:function(){var t=this.props,n=t.animateBlockEntrance,i=t.blockId,o=t.isLearner,a=t.lessonId,s=t.previewType,l=t.settings,c=!u()(s),d=n?"fadeIn":"none",f=c&&n?1:0,g=l.backgroundColor,v=l.paddingBottom,y=l.paddingTop,b={item:{id:i},lesson:{id:a}},_={backgroundColor:g,paddingBottom:"".concat(10*v,"px"),paddingTop:"".concat(10*y,"px")},w={animateBlockEntrance:c,animateIn:d,duration:f,initiallyVisible:!n,isLearner:o,offset:300};return e.createElement("div",{className:"block-scenario",style:_},e.createElement(p.a,w,e.createElement(m.a,Object(r.a)({onItemUpdate:Object(h.a)(b)},this.props))))}}],[{key:"propTypes",get:function(){return{animateBlockEntrance:f.a.bool,blockId:f.a.string.isRequired,isLearner:f.a.bool,items:f.a.array.isRequired,lessonId:f.a.string.isRequired,menuOpen:f.a.bool,onStep:f.a.func,previewType:f.a.string,settings:f.a.object.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});n(4);var r=n(58),i=n(6),o=n.n(i),a=n(57),s=function(e){var t=e.item,n=e.lesson;return function(e){var i=e.itemId,s=e.payload,l=t.id,c=n.id;o()(r.a,a.g)({blockId:l,itemId:i,lessonId:c,payload:s})}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ye});var r=n(5),i=n(37),o=n.n(i),a=n(15),s=n.n(a),l=n(4),c=n.n(l),u=n(3),d=n.n(u),f=n(10),p=n(7),h=n(11),m=n(9),g=n(13),v=n(12),y=(n(2152),n(160)),b=n.n(y),_=n(18),w=n.n(_),E=n(43),k=n.n(E),x=n(19),S=n.n(x),T=n(139),C=n.n(T),O=n(2),A=n.n(O),N=n(104),I=n.n(N),M=n(6),j=n.n(M),L=n(44),P=n.n(L),D=n(84),R=n(40),F=n.n(R),B=n(33),U=n.n(B),q=n(39),z=n.n(q),H=n(212),W=n.n(H),$=n(153),Y=n.n($),V=n(83),K=n.n(V),G=n(45),X=n.n(G),Q=n(55),Z=n.n(Q),J=n(72),ee=n.n(J),te=n(36),ne=n.n(te),re=n(35),ie=n.n(re),oe=n(17),ae=n.n(oe),se=n(1227),le=n.n(se),ce=n(99),ue=n.n(ce),de=n(140),fe=n.n(de),pe=n(25),he=n.n(pe),me=n(42),ge=n.n(me),ve=n(23),ye=n.n(ve),be=n(8),_e=n.n(be),we=n(14),Ee=n.n(we),ke=n(41),xe=n.n(ke),Se=n(1),Te=n.n(Se),Ce=n(82),Oe=n.n(Ce),Ae=n(76),Ne=n.n(Ae),Ie=n(67),Me=n.n(Ie),je=n(614),Le=n(88),Pe=n(80),De=n(47),Re=n(22),Fe=n(52),Be=n(751),Ue=n(27),qe=function(e){return Z()(ne.a,X.a,e)},ze=I()(ee.a),He=I()(ne.a),We=C()(He,ze),$e=b()(Oe.a),Ye=function(t){function n(e){var t,r,i,o,a,s,l,c,u,p,v,y,b,_,w,E,k,x,S,T,C;Object(f.a)(this,n);return(C=Object(h.a)(this,Object(m.a)(n).call(this,e))).state=e.initialState||{activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:[]},C.fetchCharacters=d()(t=C.fetchCharacters).call(t,Object(g.a)(C)),C.fetchCharacterPose=d()(r=C.fetchCharacterPose).call(r,Object(g.a)(C)),C.getCharacterPose=d()(i=C.getCharacterPose).call(i,Object(g.a)(C)),C.onClick=d()(o=C.onClick).call(o,Object(g.a)(C)),C.onFocus=d()(a=C.onFocus).call(a,Object(g.a)(C)),C.onInit=d()(s=C.onInit).call(s,Object(g.a)(C)),C.onResize=d()(l=C.onResize).call(l,Object(g.a)(C)),C.onResponseClick=d()(c=C.onResponseClick).call(c,Object(g.a)(C)),C.onTryAgainClick=d()(u=C.onTryAgainClick).call(u,Object(g.a)(C)),C.renderBackground=d()(p=C.renderBackground).call(p,Object(g.a)(C)),C.renderButton=d()(v=C.renderButton).call(v,Object(g.a)(C)),C.renderDetails=d()(y=C.renderDetails).call(y,Object(g.a)(C)),C.renderDialogues=d()(b=C.renderDialogues).call(b,Object(g.a)(C)),C.renderEnd=d()(_=C.renderEnd).call(_,Object(g.a)(C)),C.renderPose=d()(w=C.renderPose).call(w,Object(g.a)(C)),C.renderResponse=d()(E=C.renderResponse).call(E,Object(g.a)(C)),C.renderText=d()(k=C.renderText).call(k,Object(g.a)(C)),C.resetSlide=d()(x=C.resetSlide).call(x,Object(g.a)(C)),C.resetSlides=d()(S=C.resetSlides).call(S,Object(g.a)(C)),C.setNextSlide=d()(T=C.setNextSlide).call(T,Object(g.a)(C)),C}return Object(v.a)(n,t),Object(p.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialState,n=e.items,r=j()(Y()("poses"),xe()({},"character"),K.a);We(n)&&!r(n)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize)}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.items,n=e.onStep,r=this.state,i=r.activeScene,o=r.activeSlide,a=he()([],[i,"slides"],t),s=he()(null,[o,"goTo"],a),l=he()(null,[o,"type"],a);"end"===s&&"text"===l&&n&&ie()(n,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize)}},{key:"fetchCharacterPose",value:function(e,t){var n,r=this.props.items[e],i=r.character,o=r.slides[t],a=c()(n="".concat(e,".")).call(n,t),s=[a,"response"],l=[a,"hasFeedback"],u=he()(null,s,this.state.slides),d=he()(!1,l,this.state.slides),f=xe()("neutral","emotion",o),p=Z()(w()(d),he()(f,["responses",u,"emotion"]),w()(f)),h=ye()(he()(null,["poses",p(o)]),qe(Le.b));return{name:i.name,pose:h(i)}}},{key:"fetchCharacters",value:function(){var e=this.props,t=e.items,n=e.onItemUpdate,r=ge()(["id","name","poses","src"]);s()(t).call(t,function(e){var t,i=e.character,o=e.id;return We(i)&&Object(Be.a)(i.id).then(function(e){return S()("poses",Object(Be.b)(e),e)}).then(r).then((t=o,function(e){return n({itemId:t,payload:{character:e}})}))})}},{key:"getCharacterPose",value:function(){var e=this.props.items,t=this.state,n=t.activeScene,r=t.activeSlide,i=t.prevScene,o=t.prevSlide,a=he()([],[n,"slides"],e),s=he()(!0,[r,"hasCharacter"],a);return He(i)&&ue()(s)?this.fetchCharacterPose(i,o):this.fetchCharacterPose(n,r)}},{key:"onClick",value:function(e,t){var n,r=this,i=this.props,a=i.items,s=i.onStep,l=this.state,c=l.activeScene,u=l.activeSlide,f=a[c].slides,p="dialogue"===xe()(null,"type",f[u]),h=c===a.length-1,m=u===f.length-1,g={activeSlide:u+1},v={activeScene:c+1,activeSlide:0},y={activeSlide:null},b=ye()(Object(je.b)(a),function(e){return{activeScene:e.scene,activeSlide:e.slide}}),_=P()([[w()(m&&h),w()(y)],[w()(m&&!h),w()(v)],[Ne.a,w()(g)]]),E=Z()(w()(p),w()(y),w()({activeScene:0,activeSlide:0})),k=P()([[F()("slide"),fe()(b,[t])],[F()("next"),_],[F()("end"),E]]);this.resetRef=o()(d()(n=this.resetSlide).call(n,this,c,u),500),this.setState({prevScene:c,prevSlide:u}),this.setState(k(e),function(){return r.continueRef=o()(r.setNextSlide,1300)}),"end"===e&&this.resetSlides(),"end"===e&&s&&ie()(s,a)}},{key:"onFocus",value:function(){this.refs.scenario.focus()}},{key:"onInit",value:function(){this.setState({initiated:!0})}},{key:"onResize",value:function(){this.setState({resizes:this.state.resizes+1})}},{key:"onResponseClick",value:function(e){var t,n=this,i=this.state,a=i.activeScene,s=i.activeSlide,l=i.slides,u=c()(t="".concat(a,".")).call(t,s),d=S()("response",e),f=S()("hasFeedback",!0),p=U()(Object(r.a)({},"".concat(u),d)),h=U()(Object(r.a)({},"".concat(u),f)),m=j()(h,p);this.setState({slides:p(l)}),this.feedbackRef=o()(function(){return n.setState({slides:m(l)})},1300)}},{key:"onTryAgainClick",value:function(){var e,t=this.state,n=t.activeScene,i=t.activeSlide,o=t.slides,a=c()(e="".concat(n,".")).call(e,i),s=k()({hasFeedback:null,response:null}),l=U()(Object(r.a)({},"".concat(a),s));this.setState({slides:l(o)})}},{key:"render",value:function(){var t,n=this.props,r=n.isPDF,i=n.items,o=n.menuOpen,a=this.state,l=a.activeScene,c=a.activeSlide,u=a.initiated,d=(i[l]||{}).slides,f=d&&d[c],p=j()(ze,xe()({},"character"),K.a),h=j()(Y()("poses"),xe()({},"character"),K.a),m=j()(Me.a,he()({},["character","poses"])),g=j()(W.a,Me.a,ie()(m)),v={className:A()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":Pe.a.isMobile,"scenario-block--sidebar-open":o,"scenario-block--loading":p(i)&&!h(i)}),ref:"scenario",style:window.innerWidth<480?{height:window.innerHeight}:null,tabIndex:Re.a},y=ye()(K.a,he()(null,["background","media","image"]),qe(Le.a)),b=P()([[ne.a,this.renderEnd],[Ee()("type","dialogue"),this.renderDialogues],[Ee()("type","text"),this.renderText],[Ne.a,w()(null)]]),_=f&&"text"===f.type&&!f.hasCharacter,E=A()("scenario-block__character",{"scenario-block__character--hidden":_});return e.createElement("div",null,e.createElement("div",v,e.createElement("div",{className:"scenario-block__spinner"}),e.createElement("div",{className:"scenario-block__background-wrapper"},We(i)&&s()(i).call(i,this.renderBackground)),e.createElement("img",{alt:"",onLoad:this.onInit,src:y(i)}),e.createElement("div",{className:"scenario-block__inner"},e.createElement("div",{className:E},h(i)&&s()(t=g(i)).call(t,this.renderPose)),e.createElement(D.TransitionGroup,null,We(i)&&b(f)))),r&&f&&this.renderDetails(f))}},{key:"renderBackground",value:function(t,n){var i=this.state.activeScene,o=t.id,a=he()(null,["background","media","image"],t),s={className:A()("scenario-block__background",Object(r.a)({},"scenario-block__background--active",i===n)),key:o,style:a&&{backgroundImage:"url(".concat(Object(Le.a)(a),")")}};return a&&e.createElement("div",s)}},{key:"renderButton",value:function(t){var n=this.props.labels,r=n.scenarioContinue,i=n.scenarioTryAgain,o=t.action,a=t.goTo,s=t.nextSlide,l="tryAgain"===o?e.createElement("span",null,i," ",e.createElement("i",{className:"icon icon-reload"})):e.createElement("span",null,r),c={className:"scenario-block__dialogue__button",key:"button",onClick:"tryAgain"===o?j()(this.onFocus,this.onTryAgainClick):j()(this.onFocus,fe()(this.onClick,[a,s]))};return e.createElement(D.TransitionGroup,null,e.createElement(D.CSSTransition,{appear:!0,classNames:"scenario-block__dialogue__button-",timeout:{enter:1e3,exit:400}},e.createElement("button",c,l)))}},{key:"renderDetails",value:function(t){var n=this.props.items,r=this.state,i=r.activeScene,o=r.activeSlide,a=t.responses,l=t.type,u=function(t,n){return e.createElement("span",{key:t},t," ",e.createElement(De.h,null)," ",n)},d=ye()(Object(je.b)(n),function(e){var t,n=e.scene,r=e.slide;return c()(t="Scene ".concat(n+1," Slide ")).call(t,r+1)}),f=function(e,t){var n=t.goTo,r=t.nextSlide;return P()([[F()("next"),fe()(u,[e,"Next Slide"])],[F()("end"),fe()(u,[e,"End of Scenario"])],[Ne.a,fe()(u,[e,d(r||{})])]])(n)},p="text"===l?f("Continue",t):s()(a).call(a,function(e,t){return f(t,e)});return e.createElement("div",{className:"scenario-block__pdf-details"},e.createElement("h3",null,"Scene ",i+1," Slide ",o+1),p)}},{key:"renderDialogue",value:function(t,n,i){var o,a=n.description,s=n.id,l=n.type,c=t.count,u=t.firstKey,d=t.hasFeedback,f=0===i?s:i,p=1===i?u:i-1,h=0===i&&1===c,m=i===c,g=this.refs["dialogue-".concat(f)],v=m&&this.refs["dialogue-".concat(p)],y=g&&g.offsetHeight,b=m&&v&&v.offsetHeight,_=d?30:0,E=window.innerWidth<480?20:30,k=2*E+60+b-_,x=E+60-_,S=le()(y+_-60),T=A()("scenario-block__dialogue",(o={},Object(r.a)(o,"scenario-block__dialogue--response",ne()(l)),Object(r.a)(o,"scenario-block__dialogue--faded",i<c-1),o)),C=P()([[w()(h),w()(null)],[F()(c),w()({top:"".concat(k,"px")})],[F()(c-1),w()({top:"".concat(x,"px")})],[F()(c-2),w()({top:"".concat(S,"px")})],[Ne.a,w()({top:"-".concat(y+30,"px")})]]),O={className:T,ref:"dialogue-".concat(f),style:C(i)},N={appear:!0,classNames:"scenario-block__dialogue-",key:i,timeout:{enter:700,exit:400}},I=e.createElement("div",{className:"scenario-block__dialogue__bubble brand--body"},e.createElement(Fe.a,{value:a}));return e.createElement(D.CSSTransition,N,e.createElement("div",null,e.createElement("div",O,We(a)&&I)))}},{key:"renderDialogues",value:function(t){var n,r,i=this.state,o=i.activeScene,a=i.activeSlide,l=i.slides,u=t.id,f=t.responses,p=l[c()(n="".concat(o,".")).call(n,a)]||{},h=j()(W.a,je.a,ae()(p))(t),m=p.hasFeedback,g=p.response,v=(f[g]||{}).feedback,y=ne()(g)&&ze(f),b=m?h.length-1:h.length,_=(1===b&&ee()(f)||2===b&&ze(f))&&m,w={count:b,firstKey:he()(null,[0,"id"],h),hasFeedback:m&&We(v)},E={classNames:"scenario-block__content-",key:u,timeout:400},k=e.createElement("div",{className:"scenario-block__dialogues__bottom"},e.createElement("div",{className:"scenario-block__dialogues__bottom__inner"},e.createElement("div",{className:"scenario-block__dialogues__responses"},e.createElement(D.TransitionGroup,null,s()(f).call(f,this.renderResponse)))));return e.createElement(D.CSSTransition,E,e.createElement("div",{className:"scenario-block__dialogues scenario-block__content"},e.createElement("div",{className:"scenario-block__dialogues__inner"},e.createElement("div",{className:"scenario-block__dialogues__top"},e.createElement("div",{className:"scenario-block__dialogues__top__inner"},e.createElement(D.TransitionGroup,null,s()(h).call(h,d()(r=this.renderDialogue).call(r,this,w))))),y&&k,_&&this.renderButton(h[b-1]))))}},{key:"renderEnd",value:function(){var t=this.props.labels,n=t.scenarioComplete,r=t.scenarioStartOver,i=j()(this.onFocus,fe()(this.onClick,["end",null])),o=A()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),a={className:"scenario-block__text__end",onClick:i,onKeyDown:Object(Ue.a)(i),role:"button",tabIndex:Re.a};return e.createElement(D.CSSTransition,{classNames:"scenario-block__content-",key:"end",timeout:400},e.createElement("div",{className:o,key:"end"},e.createElement("div",{className:"scenario-block__text__inner"},e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,n)),e.createElement("div",a,e.createElement("span",null,r),e.createElement("i",{className:"icon icon-reload"})))))}},{key:"renderPose",value:function(t){var n,r=this.getCharacterPose().pose,i=t.filters,o=t.id,a=t&&Object(Le.b)(t),s=C()(Ee()("name","style")),l=s(Ee()("value","left_aligned")),u=s(Ee()("value","right_aligned")),d=A()("scenario-block__character__inner",{"scenario-block__character__inner--active":r===a,"scenario-block__character__inner--right":z()(u,i),"scenario-block__character__inner--left":z()(l,i)});return e.createElement("div",{className:d,key:c()(n="".concat(o,"-")).call(n,Math.random())},e.createElement("img",{alt:"",src:a}))}},{key:"renderResponse",value:function(t,n){var r=t.description,i=this.props.isPDF?w()():j()(this.onFocus,fe()(this.onResponseClick,[n])),o={className:A()(["scenario-block__response","scenario-block__response--".concat(n),"brand--body"]),onClick:i,onKeyDown:Object(Ue.a)(i),role:"button",tabIndex:Re.a},a={appear:!0,classNames:"scenario-block__response-",key:n,timeout:{enter:1600,exit:400}};return e.createElement(D.CSSTransition,a,e.createElement("div",o,e.createElement("div",{className:"scenario-block__response__inner"},e.createElement("div",{className:"scenario-block__response__number"},n+1),e.createElement(Fe.a,{value:r}))))}},{key:"renderText",value:function(t){var n=t.description,r=t.goTo,i=t.hasCharacter,o=t.id,a=t.nextSlide,s=t.title,l=this.props.labels,c=l.scenarioContinue,u=l.scenarioStartOver,d=!n&&(s||"").length<22,f=A()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!i,"scenario-block__text--short":d}),p={classNames:"scenario-block__content-",key:o,timeout:400},h=e.createElement("div",{className:"scenario-block__text__title brand--head"},e.createElement("h2",null,e.createElement(Fe.a,{value:s}))),m=e.createElement("div",{className:"scenario-block__text__description brand--body"},e.createElement(Fe.a,{value:n})),g=j()(this.onFocus,fe()(this.onClick,[r,a])),v={className:"scenario-block__text__continue brand--background",onClick:g,onKeyDown:Object(Ue.a)(g),role:"button",tabIndex:Re.a},y={className:"scenario-block__text__end",onClick:g,onKeyDown:Object(Ue.a)(g),role:"button",tabIndex:Re.a},b=e.createElement("button",v,e.createElement("span",null,c)),_=e.createElement("div",y,e.createElement("span",null,u),e.createElement("i",{className:"icon icon-reload"}));return e.createElement(D.CSSTransition,p,e.createElement("div",{className:f,key:o},e.createElement("div",{className:"scenario-block__text__inner"},s&&h,n&&m,"end"===r?_:b)))}},{key:"resetSlide",value:function(e,t){var n,r=this.state.slides,i=c()(n="".concat(e,".")).call(n,t);this.setState({slides:S()(i,{hasFeedback:!1,response:null},r)})}},{key:"resetSlides",value:function(){var e=this.props.items;this.setState({slides:$e(function(e,t,n){return ye()(_e()("slides"),$e((r=n,function(e,t,n){var i;return S()(c()(i="".concat(r,".")).call(i,n),{hasFeedback:!1,response:null},e)}),{}),k()(e))(t);var r},{},e)})}},{key:"setNextSlide",value:function(){var e,t=this.props.items,n=this.state,i=n.activeScene,o=n.activeSlide,a=n.slides,s=t[i].slides[o]||{},l=s.responses,u=void 0===l?[]:l,d=s.type,f=c()(e="".concat(i,".")).call(e,o),p=S()("hasFeedback",!0),h=U()(Object(r.a)({},f,p));"dialogue"===d&&ee()(u)&&this.setState({slides:h(a)})}},{key:"shouldComponentUpdate",value:function(e,t){return e.items!==this.props.items||e.menuOpen!==this.props.menuOpen||t.activeScene!==this.state.activeScene||t.activeSlide!==this.state.activeSlide||t.initiated!==this.state.initiated||t.resizes!==this.state.resizes||t.slides!==this.state.slides}}],[{key:"propTypes",get:function(){return{items:Te.a.array.isRequired,labels:Te.a.object.isRequired,menuOpen:Te.a.bool,onItemUpdate:Te.a.func.isRequired,onStep:Te.a.func}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(87);e.exports=r(function(e){return-e})},function(e,t,n){"use strict";(function(e){n(2153);var r=n(25),i=n.n(r),o=n(8),a=n.n(o),s=n(50),l=n(389),c=n(403),u=n(56),d=n(593),f=n(300),p=function(e){var t=e.blockId,n=e.lessonId;return function(e){var r=e.itemId,i=e.isCorrect;return Object(s.a)(Object(f.d)({itemId:r,lessonId:n,blockId:t,isCorrect:i}))}},h=function(e){var t=e.blockId,n=e.lessonId;return function(){return Object(s.a)(Object(f.b)({lessonId:n,blockId:t}))}};t.a=function(t){var n=t.animateBlockEntrance,r=t.blockId,o=t.items,s=t.labels,f=t.piles,m=t.progress,g=t.settings,v=a()("backgroundColor",g),y=Object(l.a)(v),b=t.onCardDrop||p,_=t.onReplay||h;return e.createElement(c.a,{settings:g,type:"sorting-activity"},e.createElement(u.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(d.a,{hasDarkBackground:y,id:r,items:o,labels:s,onCardDrop:b(t),onReplay:_(t),piles:f,progress:i()({},["items",r],m)})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return C});var r=n(15),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=n(4),d=n.n(u),f=(n(2156),n(2)),p=n.n(f),h=n(83),m=n.n(h),g=n(140),v=n.n(g),y=n(14),b=n.n(y),_=n(41),w=n.n(_),E=n(594),k=n(404),x=function(e){return p()("deck",{"deck--complete":b()("percentViewed",100,e)})},S=function(e){var t=e.item,n=e.progress;return b()("lastIncorrectCardId",String(t.id),n)},T=b()("percentViewed",100),C=function(t){function n(e){var t;return Object(o.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).cardRefs=[],t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"startKeyDrop",value:function(){var e=m()(this.cardRefs);e&&e.onStartSortAttempt()}},{key:"endKeyDrop",value:function(){var e=m()(this.cardRefs);e&&e.onEndSortAttempt()}},{key:"render",value:function(){var t=this,n=this.props,r=n.count,o=n.items,a=n.labels,s=n.id,l=n.progress,c=n.onReplay,u=T(l);return e.createElement("div",{className:x(l)},e.createElement("div",{className:"deck__spacer"}),e.createElement("div",{"aria-hidden":!u,className:"deck__cardholder"},e.createElement("div",{className:"deck__title brand--ui"},function(e){var t,n=e.progress,r=e.count;return d()(t="".concat(w()(0,"correctlyAnswered",n),"/")).call(t,r)}({progress:l,count:r})," ",a.sortingCardsCorrect),e.createElement(k.a,{allowTabNavigation:u,onClick:v()(c,[s]),text:a.sortingReplay})),e.createElement("div",{className:"deck__content"},i()(o).call(o,function(n,r){return e.createElement(E.a,{id:n.id,isDeckTopCard:t.cardRefs[r]===m()(t.cardRefs),isIncorrect:S({item:n,progress:l}),key:n.id,ref:function(e){t.cardRefs[r]=e},title:n.title})})))}}]),n}(e.Component);C.defaultProps={onReplay:Function.prototype}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return S});var r=n(37),i=n.n(r),o=n(3),a=n.n(o),s=n(10),l=n(11),c=n(9),u=n(13),d=n(7),f=n(12),p=(n(2159),n(2)),h=n.n(p),m=n(44),g=n.n(m),v=n(239),y=n(1),b=n.n(y),_=n(22),w=n(594),E=n(52),k=n(27),x=n(90),S=function(t){function n(e){var t,r,i,o,d;return Object(s.a)(this,n),(d=Object(l.a)(this,Object(c.a)(n).call(this,e))).state={isSuccess:!1,showFocusOutline:!0},d.handleDragEnter=a()(t=d.handleDragEnter).call(t,Object(u.a)(d)),d.handleDragLeave=a()(r=d.handleDragLeave).call(r,Object(u.a)(d)),d.handleMouseDrop=a()(i=d.handleMouseDrop).call(i,Object(u.a)(d)),d.handleKeyboardDrop=a()(o=d.handleKeyboardDrop).call(o,Object(u.a)(d)),d}return Object(f.a)(n,t),Object(d.a)(n,null,[{key:"propTypes",get:function(){return{id:b.a.any.isRequired,lessonId:b.a.any.isRequired,onCardDrop:b.a.func.isRequired,title:b.a.string}}},{key:"defaultProps",get:function(){return{onCardDrop:Function.prototype}}}]),Object(d.a)(n,[{key:"focus",value:function(){this.pileContent.focus()}},{key:"componentDidMount",value:function(){Object(v.a)(this.pile).dropzone({overlap:"pointer"}).on("dragenter",this.handleDragEnter).on("dragleave",this.handleDragLeave).on("drop",this.handleMouseDrop)}},{key:"componentWillUnmount",value:function(){Object(v.a)(this.pile).off("dragenter",this.handleDragEnter).off("dragleave",this.handleDragLeave).off("drop",this.handleMouseDrop),clearTimeout(this.successTimer),clearTimeout(this.focusOutlineTimer)}},{key:"onKeyDown",value:function(e){var t=this.props,n=t.onNavigateToNext,r=t.onNavigateToPrevious,i=Object(x.a)(this.handleKeyboardDrop),o=Object(x.a)(r),a=Object(x.a)(n);g()([[k.d,i],[k.f,o],[k.h,a]])(e)}},{key:"onKeyUp",value:function(e){Object(k.d)(e)&&this.props.onKeyDropEnd()}},{key:"handleDragEnter",value:function(e){var t=v.a.getElementRect(e.target),n={x:t.left+t.width/2,y:t.top+t.height/2};e.draggable.draggable({snap:{targets:[n]}})}},{key:"handleDragLeave",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}})}},{key:"handleMouseDrop",value:function(e){e.draggable.draggable({snap:{targets:[function(e,t){return{x:e,y:t}}]}}),this.handleDrop()}},{key:"handleKeyboardDrop",value:function(){var e=this.props,t=e.deckTopCard,n=e.onKeyDropStart;t&&(n(),this.handleDrop())}},{key:"handleDrop",value:function(){var e,t,n=this.props,r=n.lessonId,o=n.id,s=n.deckTopCard,l=n.onCardDrop,c=s.id.toString(),u=s.pileId===o;(l({id:r,itemId:c,isCorrect:u}),u)&&(this.setState({activeCard:s,isSuccess:!0,showFocusOutline:!1}),this.successTimer=i()(a()(e=function(){this.setState({activeCard:null,isSuccess:!1})}).call(e,this),1500),this.focusOutlineTimer=i()(a()(t=function(){this.setState({showFocusOutline:!0})}).call(t,this),1300))}},{key:"render",value:function(){var t,n,r=this,i=this.props.title,o=this.state,s=o.activeCard,l=o.isSuccess,c=o.showFocusOutline,u=h()("pile",{"drop-success":l}),d=h()("pile__content",{"drop-animating":!c});return e.createElement("div",{className:u,ref:function(e){return r.pile=e}},e.createElement("div",{className:"pile__wrapwrap"},e.createElement("div",{className:"pile__wrap"},e.createElement("div",{className:"pile__message"},e.createElement(E.a,{className:"pile__title brand--head",value:i})),e.createElement("div",{className:d,onKeyDown:a()(t=this.onKeyDown).call(t,this),onKeyUp:a()(n=this.onKeyUp).call(n,this),ref:function(e){return r.pileContent=e},tabIndex:_.a},s&&e.createElement(w.a,{id:s.id,title:s.title})),e.createElement("div",{className:"pile__background"}))))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2160);var r=n(25),i=n.n(r),o=n(8),a=n.n(o),s=n(389),l=n(403),c=n(56),u=n(595),d=function(t){var n=t.animateBlockEntrance,r=t.blockId,o=t.enableVideoPlaybackSpeed,d=t.isLearner,f=t.items,p=t.labels,h=t.progress,m=t.settings,g=a()("backgroundColor",m),v=Object(s.a)(g);return e.createElement(l.a,{settings:m,type:"timeline"},e.createElement(c.a,{animateBlockEntrance:n,animateIn:"fadeIn",isLearner:!0},e.createElement(u.a,{enableVideoPlaybackSpeed:o,hasDarkBackground:v,id:r,isBlock:!0,isLearner:d,items:f,labels:p,progress:i()({},["items",r],h)})))};d.defaultProps={isLearner:!0},t.a=d}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return T});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=(n(2166),n(19)),c=n.n(l),u=n(2),d=n.n(u),f=n(121),p=n.n(f),h=n(42),m=n.n(h),g=n(41),v=n.n(g),y=n(1),b=n.n(y),_=n(22),w=n(238),E=n(85),k=n(480),x=n(52),S=n(183),T=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"renderMedia",value:function(t,n){if(Object(k.a)(t)){var r=t.embed?Object(w.b)(t.embed):void 0,i=d()({"timeline-card__audio":t.audio,"timeline-card__visual":t.image||t.video,"timeline-card__linkEmbed":"link"===r,"timeline-card__videoEmbed":"video"===r}),o=p()(c()("pause",!0),t);return e.createElement("div",{className:i},e.createElement(S.a,{enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,index:"".concat(this.props.item.id),labels:this.props.labels,opts:n,media:o}))}}},{key:"render",value:function(){var t=this.props,n=t.item,r=t.isActive,i=t.labels,o=t.loadMedia,a=t.onFocus,s=n.id,l=n.settings,c=v()({},"media",n),u=m()(["audio"],c),f=m()(["embed"],c),p=m()(["image","video"],c),h=d()("timeline-card",{"timeline-card--active":r});return e.createElement("div",{className:h,"data-id":s,ref:this.props.innerRef},e.createElement("div",{"aria-label":C(n,i),className:"timeline-card__body brand--beforeBackground",onFocus:a,role:E.a,tabIndex:_.a},e.createElement("div",{className:"timeline-card__main-wrap"},e.createElement("div",{className:"timeline-card__main"},e.createElement("div",{className:"timeline-card__date brand--color brand--body"},e.createElement("h1",null,n.date)),e.createElement("div",{className:"timeline-card__title brand--head"},e.createElement("h2",null,e.createElement(x.a,{value:n.title}))),o?this.renderMedia(u,l):null,o?this.renderMedia(f,l):null,e.createElement(x.a,{className:"timeline-card__description brand--body brand--linkColor",value:n.description}),o?this.renderMedia(p):null))))}}],[{key:"propTypes",get:function(){return{enableVideoPlaybackSpeed:b.a.bool,isActive:b.a.bool.isRequired,item:b.a.object.isRequired,labels:b.a.object.isRequired,loadMedia:b.a.bool.isRequired,onFocus:b.a.func.isRequired}}}]),n}(e.Component),C=function(e,t){var n=t.timelineCardGroupPrefix;return e.title||e.date?n+" - "+(e.date||e.title):n}}).call(this,n(0))},function(e,t,n){var r=n(2306),i=n(2308)(function(e,t,n){r(e,n,t)});e.exports=i},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=n(314)},function(e,t,n){var r=n(549),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=[],i=0;return n.replace(e,function(){var e=Array.prototype.slice.call(arguments),n=e.length,o=e[0],a=e[n-1],s=e[n-2],l=a.slice(i,s),c="function"==typeof t?t.apply(null,e):t;r.push(l,c),i=s+o.length}),r.push(n.slice(i)),r}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return p});var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=n(1),d=n.n(u),f=n(600),p=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t;return e.createElement(f.a,{onViewed:i()(t=this.handleViewed).call(t,this,this.props.children.props),isFirstLesson:this.props.isFirstLesson},this.modifiedChildren())}},{key:"modifiedChildren",value:function(){var t;return e.cloneElement(e.Children.only(this.props.children),{onStep:i()(t=this.handleStep).call(t,this)})}},{key:"handleStep",value:function(e){var t=e.id;e.isDone||this.props.onStep(t)}},{key:"handleViewed",value:function(e){e.requiresInteraction?(/tabs|carousel/.test(e.variant)||/gallery/.test(e.family))&&this.handleStep(e.items[0]):this.props.onViewed()}}]),n}(e.Component);d.a.arrayOf,d.a.func,d.a.node,d.a.oneOfType}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(1239),i=n(89);t.a=function(t){var n=t.data,o=n.id,a=n.items,s=n.type,l=t.labels,c=t.lessonHeader,u=t.lessonProgress,d=t.menuButtons,f=t.nextComponent,p=t.previousComponent;return e.createElement(i.c,{type:s},p,e.createElement(i.b,{type:s},d,c,e.createElement(i.a,null,e.createElement(r.a,{id:o,items:a,labels:l,lessonProgress:u}))),f)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(37),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2342),n(26)),d=n.n(u),f=n(1),p=n.n(f),h=n(50),m=n(238),g=n(476),v=n(399),y=function(t){function n(e){var t;return Object(o.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).type=Object(m.a)(e.items),t.state={isLoaded:"video"!==t.type},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.id;"video"===this.type&&i()(function(){e.setState({isLoaded:!0})},800),Object(h.a)(Object(g.c)(t))}},{key:"render",value:function(){if(!this.state.isLoaded)return null;var t=this.props,n=t.id,r=t.items,i=t.labels,o=d()([0,"media","embed"],r),a=d()([0,"settings","showMetaData"],r),s=i.urlEmbedLandmark;return e.createElement("section",{"aria-label":s,className:"embed-lesson"},e.createElement("div",{className:"embed-lesson__item",key:n},e.createElement("div",{className:"embed-lesson__row"},e.createElement("div",{className:"embed-lesson__main"},e.createElement(v.a,{data:o,isLesson:!0,labels:i,showMetaData:a})))))}}]),n}(e.Component);p.a.any,p.a.array,p.a.object}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return v});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=n(15),c=n.n(l),u=(n(2343),n(1)),d=n.n(u),f=n(81),p=n(258),h=n(52),m=n(329),g=function(t){var n,r=t.authorName,i=t.avatar,o=t.children,a=t.description,s=t.labels,l=t.lessonNumber,u=t.showLessonCount,d=t.title,m=t.totalLessons,g=s.lessonName,v=s.lessonPreposition,y=u&&e.createElement("div",{className:"lesson-header__count"},g," ",l," ",v," ",m);return e.createElement("div",{className:"lesson-header"},e.createElement("div",{className:"lesson-header__top-wrap brand--afterBackground"},e.createElement(h.a,{className:"lesson-header__title brand--lhead",value:d}),i&&r?e.createElement("div",{className:"lesson-header__author brand--ui"},e.createElement("img",{src:Object(f.l)("".concat(i)),alt:""}),e.createElement("span",{className:"visually-hidden"},"by ",r),e.createElement("span",{"aria-hidden":"true"},r)):null,e.createElement("div",{className:"lesson-header__counter brand--body brand--linkColor"},y)),c()(n=e.Children).call(n,o,function(t){return t&&t.type===p.a?e.createElement("div",{className:"lesson-header__audio"},t):null}),e.createElement(h.a,{className:"lesson-header__description brand--lbody brand--linkColor",value:a}))},v=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.children,i=n.labels.lessonHeaderLandmark;return e.createElement("section",{className:"page__header","aria-label":i},e.createElement("div",{className:"page__header-limit"},e.createElement("div",{className:"page__header-container"},e.createElement("div",{className:"lesson-header__row"},e.createElement("div",{className:"lesson-header__main"},e.createElement(g,this.props)))),c()(t=e.Children).call(t,r,function(e){return e&&e.type!==m.a?null:e})))}}],[{key:"propTypes",get:function(){return{authorName:d.a.string,avatar:d.a.string,description:d.a.string,showLessonCount:d.a.bool,steps:d.a.number,title:d.a.string.isRequired,type:d.a.string.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(1242),i=n(89);t.a=function(t){var n=t.labels,o=t.lessonHeader,a=t.lessonProgress,s=t.menuButtons,l=t.nextComponent,c=t.previousComponent,u=t.data,d=u.id,f=u.items,p=u.media,h=u.type;return e.createElement(i.c,{type:h},c,e.createElement(i.b,{type:h},s,o,e.createElement(i.a,null,e.createElement(r.a,{id:d,items:f,labels:n,lessonProgress:a,image:p.image}))),l)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return y});var r=n(3),i=n.n(r),o=n(10),a=n(11),s=n(9),l=n(13),c=n(7),u=n(12),d=(n(2345),n(2)),f=n.n(d),p=n(50),h=n(1),m=n.n(h),g=n(591),v=n(477),y=function(t){function n(e){var t,r;return Object(o.a)(this,n),(r=Object(a.a)(this,Object(s.a)(n).call(this,e))).onItemSelected=i()(t=r.onItemSelected).call(t,Object(l.a)(r)),r}return Object(u.a)(n,t),Object(c.a)(n,null,[{key:"propTypes",get:function(){return{id:m.a.any.isRequired,image:m.a.object,items:m.a.array.isRequired,labels:m.a.object,lessonProgress:m.a.object,readOnly:m.a.bool}}}]),Object(c.a)(n,[{key:"render",value:function(){var t=this.props,n=t.id,r=t.image,i=void 0===r?{}:r,o=t.items,a=t.isPreview,s=t.labels,l=t.lessonProgress,c=t.readOnly,u=s.labeledGraphicLandmark,d=f()("page__content-container","labeled-graphic-lesson-content-container"),p={animateBlockEntrance:!1,editable:!1,items:o,isPreview:a,isLearner:!0,labels:s,media:{image:i},onItemSelected:c?void 0:this.onItemSelected,parentId:n,progress:l};return e.createElement("section",{"aria-label":u,className:"page__content"},e.createElement("div",{className:d},e.createElement(g.a,p)))}},{key:"onItemSelected",value:function(e){var t=this.props.id;Object(p.a)(Object(v.a)({id:t,itemId:e}))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(89),i=n(1244),o=n(329),a=n(601),s=Object(a.a)(i.a);t.a=function(t){var n=t.authorName,i=t.avatar,a=t.data,l=a.description,c=a.id,u=a.items,d=a.title,f=a.type,p=t.labels,h=t.lessonNumber,m=t.lessonProgress,g=t.loadMedia,v=t.menuButtons,y=t.menuOpen,b=t.mobileMenuOpen,_=t.nextComponent,w=t.prefersKeyboardNavigation,E=t.previousComponent,k=t.showLessonCount,x=t.totalLessons;return e.createElement(r.c,{type:f},E,e.createElement(r.b,{type:f},v,e.createElement(r.a,{type:f,items:u},e.createElement(o.b,{id:c,items:u,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,type:"process"}),e.createElement(s,{authorName:n,avatar:i,description:l,id:c,items:u,labels:p,loadMedia:g,lessonNumber:h,lessonProgress:m,menuOpen:y,mobileMenuOpen:b,nextComponent:_,prefersKeyboardNavigation:w,previousComponent:E,showLessonCount:k,title:d,totalLessons:x,type:f}))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ie});var r=n(37),i=n.n(r),o=n(15),a=n.n(o),s=n(3),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(13),h=n(12),m=(n(2348),n(2)),g=n.n(m),v=n(44),y=n.n(v),b=n(161),_=n.n(b),w=n(94),E=n.n(w),k=n(99),x=n.n(k),S=n(26),T=n.n(S),C=n(25),O=n.n(C),A=n(327),N=n.n(A),I=n(8),M=n.n(I),j=n(14),L=n.n(j),P=n(41),D=n.n(P),R=n(79),F=n.n(R),B=n(1),U=n.n(B),q=n(135),z=n.n(q),H=n(50),W=n(213),$=n(27),Y=n(22),V=n(80),K=n(754),G=n(49),X=n(1245),Q=n(1246),Z=n(1247),J=n(402),ee=n(367),te=Object(W.a)(".next-lesson__link"),ne=Object(W.a)(".restart-button"),re=O()(0,["lessonProgress","activeIndex"]),ie=function(t){function n(e){var t,r,i,o,a,s,u,h,m,g;return Object(c.a)(this,n),(g=Object(d.a)(this,Object(f.a)(n).call(this,e))).state={xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null,resetContentFocus:!1,isTransitioning:!1},g.handleKeyDown=l()(t=g.handleKeyDown).call(t,Object(p.a)(g)),g.handleReplay=l()(r=g.handleReplay).call(r,Object(p.a)(g)),g.handleScroll=l()(i=g.handleScroll).call(i,Object(p.a)(g)),g.leftSwipe=l()(o=g.nextSlide).call(o,Object(p.a)(g)),g.nextSlide=l()(a=g.nextSlide).call(a,Object(p.a)(g)),g.previousSlide=l()(s=g.previousSlide).call(s,Object(p.a)(g)),g.renderItem=l()(u=g.renderItem).call(u,Object(p.a)(g)),g.rightSwipe=l()(h=g.previousSlide).call(h,Object(p.a)(g)),g.handleAnimationEnd=l()(m=g.handleAnimationEnd).call(m,Object(p.a)(g)),g}return Object(h.a)(n,t),Object(u.a)(n,[{key:"handleScroll",value:function(){var e=window.pageYOffset,t=Math.max(document.documentElement.clientHeight,window.innerHeight||0);if(window.matchMedia("(min-width: 768px)").matches){var n=t/2+e-50;this.previousContainer.style.transform="translate3d(-50px, ".concat(n,"px, 0)"),this.nextContainer.style.transform="translate3d(50px, ".concat(n,"px, 0)")}else{this.previousContainer.style.transform="none",this.nextContainer.style.transform="none";var r=t+e-(V.a.isIphoneSafari?94:50);this.controls.style.transform="translate3d(0, ".concat(r,"px, 0)")}}},{key:"componentDidMount",value:function(){var e=this.controlsContainer;this.swipeEvents=Object(J.a)(e,this,this.leftSwipe,this.rightSwipe),this.swipeEvents.addListeners(),document.addEventListener("keydown",this.handleKeyDown),V.a.isSafari9&&(this.scrollRef=z()(this.handleScroll,10),window.addEventListener("scroll",this.scrollRef),this.handleScroll()),this.preventFocusOnOverflowElements(),this.controlsContainer.addEventListener("animationend",this.handleAnimationEnd)}},{key:"componentWillUnmount",value:function(){this.swipeEvents.removeListeners(),document.removeEventListener("keydown",this.handleKeyDown),V.a.isSafari9&&window.removeEventListener("scroll",this.scrollRef),this.controlsContainer.removeEventListener("animationend",this.handleAnimationEnd)}},{key:"componentDidUpdate",value:function(e){this.handleSlideScroll(e)}},{key:"render",value:function(){var t,n=this,r=this.isAtStart(),i=this.isAtEnd(),o=this.props.labels.processLandmark;return e.createElement("section",{"aria-label":o,className:this.getClassName({isAtStart:r,isAtEnd:i}),ref:function(e){n.controlsContainer=e}},this.renderControls({isAtStart:r,isAtEnd:i}),e.createElement("div",{className:"process__wrap"},this.renderStart(),a()(t=this.props.items).call(t,this.renderItem),this.renderEnd()))}},{key:"renderControls",value:function(t){var n=this,r=t.isAtStart,i=t.isAtEnd,o=this.props,a=o.applySafariLandscapeHack,s=o.labels,l=o.safariLandscapeHackOffset,c=this.getControlsClassName({isAtStart:r,isAtEnd:i}),u=a?{bottom:l}:{},d=this.state.isTransitioning;return e.createElement(N.a,null,e.createElement("div",{className:this.getMenuClassName()},e.createElement("div",{ref:function(e){n.controls=e},className:c,style:u},e.createElement("div",{ref:function(e){n.nextContainer=e}},e.createElement(K.a,{allowTabNavigation:!i,atStart:r,labels:s,onClick:this.nextSlide,ref:function(e){n.nextControl=e},isTransitioning:d,type:"next"})),e.createElement("div",{ref:function(e){n.previousContainer=e}},e.createElement(K.a,{allowTabNavigation:!r,atStart:r,labels:s,onClick:this.previousSlide,ref:function(e){n.previousControl=e},isTransitioning:d,type:"previous"})))))}},{key:"renderStart",value:function(){var t=this,n=this.props,r=n.authorName,i=n.avatar,o=n.description,a=n.items,s=n.labels,l=n.lessonNumber,c=n.showLessonCount,u=n.title,d=n.totalLessons,f=n.type,p=this.isAtStart();return e.createElement("div",{"aria-hidden":!p,className:this.getItemClassName(0),ref:function(e){t["item-".concat(0)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(Z.a,{allowTabNavigation:p,authorName:r,avatar:i,description:o,labels:s,lessonNumber:l,onFullScreenChange:this.handleFullScreenChange,showLessonCount:c,steps:a.length,title:u,totalLessons:d,type:f})))}},{key:"renderItem",value:function(t,n){var r=this,i=this.props,o=i.items,a=i.labels,s=i.loadMedia,l=i.lessonNumber,c=E()(n),u=re(this.props),d=c===u;return e.createElement("div",{"aria-hidden":!d,className:this.getItemClassName(c),key:"item-".concat(t.id),ref:function(e){r["item-".concat(c)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(X.a,{allowTabNavigation:d,description:t.description,id:t.id,index:c,key:t.id,labels:a,lessonNumber:l,loadMedia:s,media:t.media,onFullScreenChange:this.handleFullScreenChange,settings:t.settings,steps:o.length,title:t.title})))}},{key:"renderEnd",value:function(){var t=this,n=this.props,r=n.applySafariLandscapeHack,i=n.items,o=n.labels,a=n.lessonNumber,s=n.nextComponent,l=E()(i.length);return e.createElement("div",{"aria-hidden":!this.isAtEnd(),className:this.getItemClassName(l),ref:function(e){t["item-".concat(l)]=e}},e.createElement("div",{className:"process__item-wrap"},e.createElement(Q.a,{applySafariLandscapeHack:r,current:a,labels:o,onReplay:this.handleReplay},s)))}},{key:"preventFocusOnOverflowElements",value:function(){var e=Object(Y.l)(this.isAtEnd());Object(Y.i)(te(),e),Object(Y.i)(ne(),e)}},{key:"focusNextElement",value:function(){var e=this.nextControl,t=this.previousControl;if(this.isAtEnd()){var n=te();n?n.focus():t.focus()}else this.isAtStart()&&e.focus()}},{key:"updateFocusForActiveCard",value:function(){!Object(Y.c)(this["item-".concat(re(this.props))])&&this.isAtStart()&&this.focusNextElement()}},{key:"handleAnimationEnd",value:function(e){var t=e.animationName,n=F()(t,["showcard","showcardUp"]);(this.state.isTransitioning&&this.setState({isTransitioning:!1}),n&&this.state.resetContentFocus)?(this.props.prefersKeyboardNavigation&&this.updateFocusForActiveCard(),this.setState({resetContentFocus:!1})):"showFoot"===t&&this.focusNextElement()}},{key:"getClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return g()("process",{"process--reverse-animation":"backwards"===this.props.lessonProgress.direction,"process--at-start":t,"process--at-end":n})}},{key:"getControlsClassName",value:function(e){var t=e.isAtStart,n=e.isAtEnd;return g()("process__controls",{"process__controls--at-start":t,"process__controls--at-end":n})}},{key:"getItemClassName",value:function(e){var t=re(this.props);return g()("process__item",{"process__item--active":e===t,"process__item--done":e<t,"process__item--next":_()(e)===t})}},{key:"getMenuClassName",value:function(){var e=this.props,t=e.menuOpen,n=e.mobileMenuOpen,r=!!document.querySelector(".lesson--preview");return g()("lesson-controls-wrapper",{"lesson--open":t&&!r,"lesson--open-mobile":n&&!r})}},{key:"previousSlide",value:function(){if(!this.isAtStart()){this.slidePrep();var e=this.props,t=e.id,n=e.lessonProgress,r=Math.max(0,_()(D()(0,"activeIndex",n)));this.setState({resetContentFocus:!0}),Object(H.a)(Object(ee.e)({activeIndex:r,id:t}))}}},{key:"nextSlide",value:function(){if(!this.isAtEnd()){this.isAtStart()&&this.setState({isTransitioning:!0}),this.slidePrep();var e=this.props,t=e.id,n=e.items,r=e.lessonProgress,i=Math.max(0,E()(D()(0,"activeIndex",r))),o=T()([_()(i),"id"],n);this.setState({resetContentFocus:!0}),Object(H.a)(Object(ee.d)({activeIndex:i,id:t,itemId:o}))}}},{key:"handleKeyDown",value:function(e){y()([[$.f,this.previousSlide],[$.h,this.nextSlide]])(e)}},{key:"slidePrep",value:function(){G.a.pause(),this.setState({xTouchDown:null,xTouchMove:null,yTouchDown:null,yTouchMove:null})}},{key:"handleReplay",value:function(){Object(H.a)(Object(ee.b)({id:this.props.id}))}},{key:"handleFullScreenChange",value:function(){var e=document.querySelector(".process__item--active");document.webkitFullscreenElement?e.style.animationDuration="0s":i()(function(){e.style.animationDuration=""},750)}},{key:"handleSlideScroll",value:function(e){var t=O()(0,["lessonProgress","activeIndex"],e);if(t!==O()(0,["lessonProgress","activeIndex"],this.props)){var n=document.querySelector(".page-wrap"),r=n.scrollTop,i=this.props.previousComponent?70:0;this["item-".concat(t)].scrollTop=r-i,n.scrollTop=i,this.preventFocusOnOverflowElements()}}},{key:"isAtStart",value:function(){return x()(M()("activeIndex",this.props.lessonProgress))}},{key:"isAtEnd",value:function(){var e=this.props,t=e.items,n=e.lessonProgress;return L()("activeIndex",E()(t.length),n)}}],[{key:"propTypes",get:function(){return{authorName:U.a.string.isRequired,avatar:U.a.string.isRequired,description:U.a.string.isRequired,id:U.a.any.isRequired,items:U.a.array.isRequired,labels:U.a.object.isRequired,lessonNumber:U.a.number.isRequired,lessonProgress:U.a.object.isRequired,loadMedia:U.a.bool.isRequired,menuOpen:U.a.bool.isRequired,mobileMenuOpen:U.a.bool.isRequired,nextComponent:U.a.object,previousComponent:U.a.object,title:U.a.string.isRequired,totalLessons:U.a.number.isRequired,type:U.a.string.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=(n(2349),n(1)),c=n.n(l),u=n(183),d=n(52),f=function(t){var n=t.processStepName,r=t.index,i=t.processStepPreposition,o=t.steps;return e.createElement("div",{className:"card__side"},e.createElement("div",{className:"card__step-label brand--background brand--body"},n," ",r," ",i," ",o))},p=function(t){var n=t.allowTabNavigation,r=t.description,i=t.index,o=t.labels,a=t.loadMedia,s=t.media,l=t.onFullScreenChange,c=t.settings,f=t.title,p=t.lessonNumber;return e.createElement("div",{className:"card__main"},e.createElement(d.a,{className:"card__title brand-afterBackground brand--lhead",value:f}),e.createElement("div",{className:"card__media"},a?e.createElement(u.a,{index:"".concat(i),labels:o,media:s,opts:c,onFullScreenChange:l,allowTabNavigation:n,lessonNumber:p}):null),e.createElement(d.a,{className:"card__description brand--lbody brand--linkColor",value:r,allowTabNavigation:n}))},h=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t=this.props,n=t.index,r=t.labels,i=t.steps,o=r.processStepName,a=r.processStepPreposition;return e.createElement("div",{className:"card"},e.createElement("div",{className:"card__container"},e.createElement("div",{className:"card__row"},e.createElement(f,{processStepName:o,index:n,processStepPreposition:a,steps:i}),e.createElement(p,this.props))))}}],[{key:"defaultProps",get:function(){return{settings:{}}}},{key:"propTypes",get:function(){return{onClick:c.a.func,mediaSrc:c.a.string,mediaType:c.a.string,index:c.a.number.isRequired,title:c.a.string,description:c.a.string,loadMedia:c.a.bool.isRequired,allowTabNavigation:c.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(4),i=n.n(r),o=(n(2350),n(404)),a=n(2),s=n.n(a),l=function(e){var t,n,r=e.current,o=e.labels,a=o.processComplete,s=o.processLessonName;return i()(t=i()(n="".concat(s," ")).call(n,r," ")).call(t,a)};t.a=function(t){var n=t.applySafariLandscapeHack,r=t.children,i=t.current,a=t.labels,c=t.onReplay,u=s()("process-end__footer",{"process-end__footer--mobile-safari-landscape":n});return e.createElement("div",{className:"process-end"},e.createElement("div",{className:"process-end__container"},e.createElement("div",{className:"process-end__message"},e.createElement("div",{className:"process-end__text brand--ui"},l({current:i,labels:a})))),e.createElement(o.a,{onClick:c,text:a.processStartAgain}),e.createElement("div",{className:u},r))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return m});var r=n(15),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2351),n(1)),d=n.n(u),f=n(81),p=n(258),h=n(52),m=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this.props,r=n.allowTabNavigation,o=n.authorName,a=n.avatar,s=n.children,l=n.description,c=n.labels,u=n.lessonNumber,d=n.showLessonCount,m=n.title,g=n.totalLessons,v=c.lessonName,y=c.lessonPreposition;return e.createElement("div",{className:"process-header"},e.createElement("div",{className:"process-header__container"},e.createElement("div",{className:"process-header__limit"},e.createElement("div",{className:"process-header__row"},e.createElement("div",{className:"process-header__main"},e.createElement("div",{className:"process-header__top-wrap brand--afterBackground"},e.createElement(h.a,{className:"process-header__title brand--lhead",value:m}),a&&o?e.createElement("div",{className:"process-header__author brand--ui"},e.createElement("img",{src:Object(f.l)("".concat(a)),alt:""}),e.createElement("span",{className:"visually-hidden"},"by ",o),e.createElement("span",{"aria-hidden":"true"},o)):null,d&&function(t){var n=t.lessonName,r=t.lessonNumber,i=t.lessonPreposition,o=t.totalLessons;return e.createElement("div",{className:"process-header__counter brand--body"},e.createElement("div",{className:"process-header__count"},n," ",r," ",i," ",o))}({lessonName:v,lessonNumber:u,lessonPreposition:y,totalLessons:g})),i()(t=e.Children).call(t,s,function(t){return t&&t.type===p.a?e.createElement("div",{className:"process-header__audio"},t):null}),e.createElement(h.a,{className:"process-header__description brand--lbody editor-text brand--linkColor",value:l,allowTabNavigation:r}))),s)))}}],[{key:"propTypes",get:function(){return{steps:d.a.number,avatar:d.a.string,authorName:d.a.string,title:d.a.string.isRequired,type:d.a.string.isRequired,description:d.a.string,allowTabNavigation:d.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(0),i=n(261),o=n(119),a=n(2),s=n.n(a),l=n(18),c=n.n(l),u=n(139),d=n.n(u),f=n(6),p=n.n(f),h=n(39),m=n.n(h),g=n(46),v=n.n(g),y=n(55),b=n.n(y),_=n(36),w=n.n(_),E=n(51),k=n.n(E),x=n(25),S=n.n(x),T=n(42),C=n.n(T),O=n(14),A=n.n(O),N=n(8),I=n.n(N),M=n(41),j=n.n(M),L=n(67),P=n.n(L),D=n(147),R=n.n(D),F=n(257),B=n.n(F),U=(n(2353),n(29)),q=n(260),z=n(157),H=n(81),W=n(602),$=n(607),Y=n(756),V=n(1251),K=n(1252),G=n(1254),X=n(105),Q="".concat(Object(U.c)("CDN_USER_CONTENT_URI"),"/assets/rise/assets/trophy.svg"),Z=p()(k.a,v()(I()("isComplete")),P.a),J=p()(C()(["learningPathComplete"]),I()("learningPathUpNext"));t.a=Object(i.b)(J,function(e,t){var n=t.course,r=n.riseComCourseId,i=n.riseComLearningPathId;return{fetchLpUpNext:p()(e,$.b,c()({courseId:r,learningPathId:i}))}})(function(t){var n=t.course,i=void 0===n?{}:n,a=t.courseProgress,l=void 0===a?{}:a,u=t.fetchLpUpNext,f=t.lessons,h=void 0===f?[]:f,g=t.learningPathComplete,v=l.lessons,y=void 0===v?{}:v,_=l.percentComplete,E=i.dueAt,k=i.certificateDownload,x=i.completionCelebration,T=i.lessonsOnly,C=void 0===T?[]:T,O=i.riseComLearningPathId,N=i.trackingCompletionPercentage,M=i.trackingQuizId,L=w()(N)&&w()(M),P=L?100===_:Object(H.g)(),D=C.length,F=Z(y);Object(r.useEffect)(function(){O&&u()},[]);var U=Object(r.useMemo)(function(){return P?i.completedAt?i.completedAt:new Date:null},[i.completedAt,P]),$=Object(r.useMemo)(function(){return m()(d()(A()("type","quiz"),A()("id",M)),h)},[M,h]),J=Object(r.useMemo)(function(){return j()(void 0,"title",$)},[$]),ee=Object(r.useMemo)(function(){return S()(100,["settings","passingScore"],$)},[$]),te=S()(null,["lessons",M,"passed"],l),ne=Object(r.useMemo)(function(){return p()(b()(A()("percentComplete",100),I()("score"),c()(null)),S()({},["lessons",M]))(l)},[l,M]),re=Object(X.d)(l,$,M).outOfAttempts,ie=s()("progress-summary",{"progress-summary__no-req":L});return e.createElement(B.a,{title:Object(q.a)(i.title+" - Progress Summary")},e.createElement("div",{className:ie},P&&x&&e.createElement(K.a,null),e.createElement("header",{className:"progress-summary__header"},e.createElement("h1",{className:"progress-summary__header-title"},P&&!L?"Congratulations!":"Progress Summary"),L?e.createElement("div",{className:"progress-summary__lessons-completed"},"You've completed ",F," of ",D," lessons."):P?e.createElement("div",{className:"progress-summary__header-completion-date"},e.createElement("img",{className:"progress-summary__header-trophy",src:Q,alt:"trophy"}),R()(U).format("MMMM Do, YYYY")):e.createElement(V.a,{dueAt:E})),e.createElement("section",{className:"progress-summary__section"},!L&&P&&e.createElement("div",{className:"progress-summary__requirements-met"},"You've met all the requirements."),L?!O&&e.createElement(o.a,{to:"/",className:"progress-summary__start-over"},"Start Over",e.createElement("i",{className:"progress-summary__start-over-icon icon icon-reload"})):e.createElement("div",{className:"progress-summary__requirements"},e.createElement(Y.a,{percentComplete:_,trackingCompletionPercentage:N}),e.createElement(Y.b,{outOfAttempts:re,quizPassed:te,quizPassingScore:ee,quizScore:ne,quizTitle:J,trackingQuizId:M})),(P||L)&&e.createElement("div",{className:"progress-summary__completion-controls"},e.createElement("button",{role:"link",className:"progress-summary__btn-back progress-summary__completion-control brand--background",onClick:z.d},"Back to my learning"),P&&(!O&&k||O&&g)&&k&&e.createElement("span",{className:"progress-summary__completion-control"},e.createElement(W.a,null)))),P&&!!O&&e.createElement(G.a,null)))})}).call(this,n(0))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.default=function(e){var t=r.useRef();return r.useEffect(function(){t.current=e}),t.current}},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r);t.a=function(t){var n=t.title,r=void 0===n?"CheckedBox":n,o=t.desc,a=void 0===o?"CheckedBox":o,s=t.width,l=void 0===s?"26":s,c=t.height,u=void 0===c?"24":c,d=t.className,f=t.focusable,p=void 0===f?"false":f;return e.createElement("svg",{viewBox:"0 0 26 24",width:l,height:u,className:i()("i i-checkedbox",d),focusable:p},e.createElement("title",null,r),e.createElement("desc",null,a),e.createElement("path",{fillRule:"nonzero",d:"M12.214 11.686L23.224.328a1.08 1.08 0 1 1 1.551 1.504L12.99 13.99a1.08 1.08 0 0 1-1.551 0L7.153 9.569a1.08 1.08 0 1 1 1.551-1.504l3.51 3.621zM2.58 21h18.197v-9.973a1.08 1.08 0 1 1 2.16 0V22.08a1.08 1.08 0 0 1-1.08 1.08H1.5a1.08 1.08 0 0 1-1.08-1.08v-21C.42.484.904 0 1.5 0h15a1.08 1.08 0 0 1 0 2.16H2.58V21z"}))}}).call(this,n(0))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=n(364);t.a=function(e){var t=e.dueAt;return t?i.a.createElement("div",{className:"progress-summary__header-due brand--color brand--border"},Object(o.a)(t)):null}},function(e,t,n){"use strict";(function(e){var r=n(37),i=n.n(r),o=n(3),a=n.n(o),s=n(4),l=n.n(s),c=n(10),u=n(7),d=n(11),f=n(9),p=n(13),h=n(12),m=n(1253),g=n.n(m),v=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"],y=function(t){function n(){var e,t,r,i;Object(c.a)(this,n);for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return(i=Object(d.a)(this,(e=Object(f.a)(n)).call.apply(e,l()(t=[this]).call(t,s)))).state={run:!1,recycle:!0},i.startConfetti=a()(r=i.startConfetti).call(r,Object(p.a)(i)),i}return Object(h.a)(n,t),Object(u.a)(n,[{key:"startConfetti",value:function(){var e=this;clearTimeout(this.timeout),this.timeout=i()(function(){return e.setState({recycle:!1})},1e4),this.setState({run:!0})}},{key:"componentDidMount",value:function(){clearTimeout(this.timeout),this.timeout=i()(this.startConfetti,900)}},{key:"shouldComponentUpdate",value:function(e,t){return t.recycle!==this.state.recycle||t.run!==this.state.run}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var t=this.state,n=t.recycle,r=t.run;return e.createElement("div",{className:"progress-summary__confetti"},e.createElement(g.a,{width:window.innerWidth,height:window.innerHeight,recycle:n,run:r,numberOfPieces:500,gravity:.4,colors:v}))}}]),n}(e.Component);t.a=y}).call(this,n(0))},function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(0),function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t){e.exports=r},function(e,t,n){"use strict";var r={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){return 0==e?t:(n-t)*Math.pow(2,10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(1-Math.pow(2,-10*e/r))+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return 0===e?t:e===r?t+i:(e/=r/2)<1?i/2*Math.pow(2,10*(e-1))+t:i/2*(2-Math.pow(2,-10*--e))+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)+t)},easeOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:1==(e/=r)?t+s:((o=0)||(o=.3*r),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),i*Math.pow(2,-10*e)*Math.sin((e*r-a)*(2*Math.PI)/o)+s+t)},easeInOutElastic:function(e,t,n,r){var i,o,a,s=n-t;return a=1.70158,0===e?t:2==(e/=r/2)?t+s:((o=0)||(o=r*(.3*1.5)),(i=s)<Math.abs(s)?(i=s,a=o/4):a=o/(2*Math.PI)*Math.asin(s/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*-.5+t:i*Math.pow(2,-10*(e-=1))*Math.sin((e*r-a)*(2*Math.PI)/o)*.5+s+t)},easeInBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){return void 0===i&&(i=1.70158),(n-t)*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var o=n-t;return void 0===i&&(i=1.70158),(e/=r/2)<1?o/2*(e*e*((1+(i*=1.525))*e-i))+t:o/2*((e-=2)*e*((1+(i*=1.525))*e+i)+2)+t},easeInBounce:function(e,t,n,i){var o=n-t;return o-r.easeOutBounce(i-e,0,o,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,n,i){var o=n-t;return e<i/2?.5*r.easeInBounce(2*e,0,o,i)+t:.5*r.easeOutBounce(2*e-i,0,o,i)+.5*o+t}};e.exports=r},function(e,t,n){e.exports=n(3)},function(e,t,n){"use strict";n.r(t);var r,i,o=n(0),a=n.n(o),s=n(1),l=n.n(s);function c(e,t){return e+Math.random()*(t-e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Circle=0]="Circle",e[e.Square=1]="Square",e[e.Strip=2]="Strip"}(r||(r={})),function(e){e[e.Positive=1]="Positive",e[e.Negative=-1]="Negative"}(i||(i={}));var f=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),d(this,"context",void 0),d(this,"radius",void 0),d(this,"x",void 0),d(this,"y",void 0),d(this,"w",void 0),d(this,"h",void 0),d(this,"vx",void 0),d(this,"vy",void 0),d(this,"shape",void 0),d(this,"angle",void 0),d(this,"angularSpin",void 0),d(this,"color",void 0),d(this,"rotateY",void 0),d(this,"rotationDirection",void 0),d(this,"getOptions",void 0),this.getOptions=n;var a=this.getOptions(),s=a.colors,l=a.initialVelocityX,u=a.initialVelocityY;this.context=t,this.x=r,this.y=o,this.w=c(5,20),this.h=c(5,20),this.radius=c(5,10),this.vx=c(-l,l),this.vy=c(-u,0),this.shape=Math.floor(0+3*Math.random()),this.angle=c(0,360)*Math.PI/180,this.angularSpin=c(-.2,.2),this.color=s[Math.floor(Math.random()*s.length)],this.rotateY=c(0,1),this.rotationDirection=c(0,1)?i.Positive:i.Negative}var t,n;return t=e,(n=[{key:"update",value:function(){var e=this.getOptions(),t=e.gravity,n=e.wind,o=e.friction,a=e.opacity,s=e.drawShape;this.x+=this.vx,this.y+=this.vy,this.vy+=t,this.vx+=n,this.vx*=o,this.vy*=o,this.rotateY>=1&&this.rotationDirection===i.Positive?this.rotationDirection=i.Negative:this.rotateY<=-1&&this.rotationDirection===i.Negative&&(this.rotationDirection=i.Positive);var l=.1*this.rotationDirection;if(this.rotateY+=l,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=a,this.context.lineCap="round",this.context.lineWidth=2,s&&"function"==typeof s)s.call(this,this.context);else switch(this.shape){case r.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case r.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case r.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}this.context.closePath(),this.context.restore()}}])&&u(t.prototype,n),e}();function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),p(this,"canvas",void 0),p(this,"context",void 0),p(this,"getOptions",void 0),p(this,"x",0),p(this,"y",0),p(this,"w",0),p(this,"h",0),p(this,"lastNumberOfPieces",0),p(this,"tweenInitTime",Date.now()),p(this,"particles",[]),p(this,"particlesGenerated",0),p(this,"removeParticleAt",function(e){r.particles.splice(e,1)}),p(this,"getParticle",function(){var e=c(r.x,r.w+r.x),t=c(r.y,r.h+r.y);return new f(r.context,r.getOptions,e,t)}),p(this,"animate",function(){var e=r.canvas,t=r.context,n=r.particlesGenerated,i=r.lastNumberOfPieces,o=r.getOptions(),a=o.run,s=o.recycle,l=o.numberOfPieces,c=o.debug,u=o.tweenFunction,d=o.tweenDuration;if(!a)return!1;var f=r.particles.length,p=s?f:n,h=Date.now();if(p<l){i!==l&&(r.tweenInitTime=h,r.lastNumberOfPieces=l);for(var m=r.tweenInitTime,g=u(h-m>d?d:Math.max(0,h-m),p,l,d),v=Math.round(g-p),y=0;y<v;y++)r.particles.push(r.getParticle());r.particlesGenerated+=v}return c&&(t.font="12px sans-serif",t.fillStyle="#333",t.textAlign="right",t.fillText("Particles: ".concat(f),e.width-10,e.height-20)),r.particles.forEach(function(t,n){t.update(),(t.y>e.height||t.y<-100||t.x>e.width+100||t.x<-100)&&(s&&p<=l?r.particles[n]=r.getParticle():r.removeParticleAt(n))}),f>0||p<l}),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.getOptions=n};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={width:"undefined"!=typeof window?window.innerWidth:300,height:"undefined"!=typeof window?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#FF9800","#FF5722","#795548"],opacity:1,debug:!1,tweenFunction:l.a.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},b=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"canvas",void 0),v(this,"context",void 0),v(this,"_options",void 0),v(this,"generator",void 0),v(this,"rafId",void 0),v(this,"setOptionsWithDefaults",function(e){var t={confettiSource:{x:0,y:0,w:r.canvas.width,h:0}};r._options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(n,!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},t,{},y,{},e),Object.assign(r,e.confettiSource)}),v(this,"update",function(){var e=r.options,t=e.run,n=e.onConfettiComplete,i=r.canvas,o=r.context;t&&(o.fillStyle="white",o.clearRect(0,0,i.width,i.height)),r.generator.animate()?r.rafId=requestAnimationFrame(r.update):(n&&"function"==typeof n&&r.generator.particlesGenerated>0&&n.call(r,r),r._options.run=!1)}),v(this,"reset",function(){r.generator&&r.generator.particlesGenerated>0&&(r.generator.particlesGenerated=0,r.generator.particles=[],r.generator.lastNumberOfPieces=0)}),v(this,"stop",function(){r.options={run:!1},r.rafId&&(cancelAnimationFrame(r.rafId),r.rafId=void 0)}),this.canvas=t;var i=this.canvas.getContext("2d");if(!i)throw new Error("Could not get canvas context");this.context=i,this.generator=new h(this.canvas,function(){return r.options}),this.options=n,this.update()}var t,n;return t=e,(n=[{key:"options",get:function(){return this._options},set:function(e){var t=this._options&&this._options.run,n=this._options&&this._options.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),"boolean"==typeof e.recycle&&e.recycle&&!1===n&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),"boolean"==typeof e.run&&e.run&&!1===t&&this.update()}}])&&g(t.prototype,n),e}();function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(){return(w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(n,!0).forEach(function(t){O(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"ReactConfetti",function(){return I});var A=function(e){function t(e){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return r=function(e,t){return!t||"object"!==_(t)&&"function"!=typeof t?T(e):t}(this,(n=S(t)).call.apply(n,[this,e].concat(o))),O(T(r),"canvas",a.a.createRef()),O(T(r),"confetti",void 0),r.canvas=e.canvasRef||a.a.createRef(),r}var n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,o.Component),n=t,(r=[{key:"componentDidMount",value:function(){if(this.canvas.current){var e=N(this.props)[0];this.confetti=new b(this.canvas.current,e)}}},{key:"componentWillReceiveProps",value:function(e){var t=N(e)[0];this.confetti&&(this.confetti.options=t)}},{key:"componentWillUnmount",value:function(){this.confetti&&this.confetti.stop(),this.confetti=void 0}},{key:"render",value:function(){var e=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(N(this.props),2),t=e[0],n=e[1],r=k({zIndex:2,position:"absolute",pointerEvents:"none",top:0,left:0,bottom:0,right:0},n.style);return a.a.createElement("canvas",w({width:t.width,height:t.height,ref:this.canvas},n,{style:r}))}}])&&x(n.prototype,r),t}();function N(e){var t={},n={},r=[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(Object.keys(y)),["confettiSource","drawShape","onConfettiComplete"]),i=["canvasRef"];for(var o in e){var a=e[o];r.includes(o)?t[o]=a:i.includes(o)?i[o]=a:n[o]=a}return[t,n,{}]}O(A,"defaultProps",k({},y)),O(A,"displayName","ReactConfetti");var I=a.a.forwardRef(function(e,t){return a.a.createElement(A,w({canvasRef:t},e))});t.default=I}]).default)},function(e,t,n){"use strict";(function(e){var r=n(31),i=n(4),o=n.n(i),a=n(0),s=n(261),l=n(147),c=n.n(l),u=n(178),d=n.n(u),f=n(104),p=n.n(f),h=n(6),m=n.n(h),g=n(79),v=n.n(g),y=n(124),b=n.n(y),_=n(39),w=n.n(_),E=n(83),k=n.n(E),x=n(267),S=n.n(x),T=n(25),C=n.n(T),O=n(42),A=n.n(O),N=n(8),I=n.n(N),M=n(41),j=n.n(M),L=n(14),P=n.n(L),D=n(232),R=n.n(D),F=n(112),B=n.n(F),U=n(181),q=n.n(U),z=n(1299),H=(n(2356),n(364)),W=n(29),$=n(569),Y=n(157),V=Object(W.c)("IMAGES_URI"),K=["color","coverImageKey","progress","score","title"],G=function(e,t){return 1===e?t:o()(t).call(t,"s")},X=C()([],["course","course","lessons"]),Q=function(e){return m()(k.a,B()(b()(P()("type","section"),R()(v()(d.a,e),"id"))),X)},Z=function(e){var t=X(e),n=e.trackingQuizId,r=e.score;if(n&&t.length){var i=w()(P()("id",n),t),o=i.settings;return r<(o=void 0===o?{}:o).passingScore&&i}},J=m()(w()(p()(P()("type","section"))),X),ee=q()(2,function(e){return m()(j()("","id"),w()(Boolean),S()([Q(e),Z,J]))}),te=function(e){var t=c.a.duration(e),n=t.hours(),r=t.minutes(),i=n+G(n,"hr"),o="".concat(r,"min");return n>=100?"100+ hrs":n>0&&r>0?[i,o].join(" "):n>0?i:o},ne=I()("learningPathUpNext");t.a=Object(s.b)(ne)(function(t){var n,i=t.learningPathComplete,s=t.isSuccess,l=t.nextCourse,c=t.nextCourse,u=(c=void 0===c?{}:c).dueAt,d=c.courseId,f=void 0===d?"":d,p=c.lessonCount,h=c.lessonsCompleted,m=void 0===h?[]:h,g=c.timeToComplete,v=Object(a.useMemo)(function(){return ee(m,l)},[l,m]),y=A()(K,l),b=Object(a.useCallback)(function(){var e;return Object(Y.f)(o()(e="".concat(f,"/lessons/")).call(e,v))},[f,v]);return s&&!i&&e.createElement("div",{className:"progress-summary__lp-next"},e.createElement("div",{className:"progress-summary__lp-next-inner"},e.createElement("div",{className:"progress-summary__lp-next-label"},"Next up ",e.createElement($.a,{className:"progress-summary__lp-next-label-icon",decorative:!0})),e.createElement("div",{className:"progress-summary__lp-next-card"},e.createElement(z.a,Object(r.a)({imagesUri:V,labelCount:o()(n="".concat(p," ")).call(n,G(p,"lesson")),labelDue:Object(H.a)(u),labelDuration:te(g),noFavoriteBtn:!0,noCertDownload:!0,onClick:b},y)))))})}).call(this,n(0))},function(e,t,n){var r,i;
/*! @preserve
 * numeral.js
 * version : 2.0.6
 * author : Adam Draper
 * license : MIT
 * http://adamwdraper.github.com/Numeral-js/
 */void 0===(i="function"==typeof(r=function(){var e,t,n,r,i,o={},a={},s={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:s.currentLocale,zeroFormat:s.zeroFormat,nullFormat:s.nullFormat,defaultFormat:s.defaultFormat,scalePercentBy100:s.scalePercentBy100};function c(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in o)if((s="function"==typeof o[i].regexps.unformat?o[i].regexps.unformat():o[i].regexps.unformat)&&n.match(s)){a=o[i].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new c(n,r)}).version="2.0.6",e.isNumeral=function(e){return e instanceof c},e._=t={numberToFormat:function(t,n,r){var i,o,s,l,c,u,d,f,p=a[e.options.currentLocale],h=!1,m=!1,g="",v="",y=!1;if(t=t||0,s=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(u=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),s>=1e12&&!o||"t"===o?(g+=p.abbreviations.trillion,t/=1e12):s<1e12&&s>=1e9&&!o||"b"===o?(g+=p.abbreviations.billion,t/=1e9):s<1e9&&s>=1e6&&!o||"m"===o?(g+=p.abbreviations.million,t/=1e6):(s<1e6&&s>=1e3&&!o||"k"===o)&&(g+=p.abbreviations.thousand,t/=1e3)),e._.includes(n,"[.]")&&(m=!0,n=n.replace("[.]",".")),l=t.toString().split(".")[0],c=n.split(".")[1],d=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),v=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):v=e._.toFixed(t,c.length,r),l=v.split(".")[0],v=e._.includes(v,".")?p.delimiters.decimal+v.split(".")[1]:"",m&&0===Number(v.slice(1))&&(v="")):l=e._.toFixed(t,0,r),g&&!o&&Number(l)>=1e3&&g!==p.abbreviations.trillion)switch(l=String(Number(l)/1e3),g){case p.abbreviations.thousand:g=p.abbreviations.million;break;case p.abbreviations.million:g=p.abbreviations.billion;break;case p.abbreviations.billion:g=p.abbreviations.trillion}if(e._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length<i)for(var b=i-l.length;b>0;b--)l="0"+l;return d>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(l=""),f=l+v+(g||""),h?f=(h&&y?"(":"")+f+(h&&y?")":""):u>=0?f=0===u?(y?"-":"+")+f:f+(y?"-":"+"):y&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,i=a[l.currentLocale],o=e,s={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),s)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),o.match(r)){n*=Math.pow(10,s[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=t(n,r[o],o,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce(function(e,n){var r=t.multiplier(n);return e>r?e:r},1)},toFixed:function(e,t,n,r){var i,o,a,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,a=Math.pow(10,i),s=(n(e+"e+"+i)/a).toFixed(i),r>t-i&&(o=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(o,"")),s}},e.options=l,e.formats=o,e.locales=a,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return a[l.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)l[e]=s[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,o,a,s,l,c,u;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(t){c=e.localeData(e.locale())}return o=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(u=t.match(/^[^\d]+/))&&(t=t.substr(1),u[0]!==o)||null!==(u=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)||(l=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(a=t.split(r)).length>2||(a.length<2?!a[0].match(/^\d+.*\d$/)||a[0].match(l):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(l)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(l)||!a[1].match(/^\d+$/))))},e.fn=c.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,a,s=this._value,c=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in o)if(c.match(o[r].regexps.format)){a=o[r].format;break}i=(a=a||e._.numberToFormat)(s,c,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([this._value,e],function(e,t,r,i){return e+Math.round(n*t)},0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);return this._value=t.reduce([e],function(e,t,r,i){return e-Math.round(n*t)},Math.round(this._value*n))/n,this},multiply:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)*Math.round(n*o)/Math.round(o*o)},1),this},divide:function(e){return this._value=t.reduce([this._value,e],function(e,n,r,i){var o=t.correctionFactor(e,n);return Math.round(e*o)/Math.round(n*o)}),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,o=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter(function(e){return n.suffixes.indexOf(e)<0})).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,o){var a,s,l,c=e._.includes(i,"ib")?r:n,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=c.suffixes.length;a++)if(s=Math.pow(c.base,a),l=Math.pow(c.base,a+1),null===t||0===t||t>=s&&t<l){u+=c.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,i,o)+u},unformat:function(t){var i,o,a=e._.stringToNumber(t);if(a){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){o=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){o=Math.pow(r.base,i);break}}a*=o||1}return a}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,o,a=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o<s.before.length;o++)switch(s.before[o]){case"$":i=e._.insert(i,a.currency.symbol,o);break;case" ":i=e._.insert(i," ",o+a.currency.symbol.length-1)}for(o=s.after.length-1;o>=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:e._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],function(t,n,r,i){var o=e._.correctionFactor(t,n);return t*o*(n*o)/(o*o)},1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],o=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(t),e._.numberToFormat(t,n,r)+o}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,o=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),o=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),s=(r=a)&&r.__esModule?r:{default:r},l=n(2),c=["lines","ellipsis"],u=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o.contextRef=null,o.setContextRef=function(e){return o.contextRef=e},o.state={clamp:!1,containerHeight:0,lineHeight:0},o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Component),o(t,[{key:"componentDidMount",value:function(){if(this.contextRef){var e=window.getComputedStyle(this.contextRef),t=(0,l.getLineHeight)(e),n=t*this.props.lines,r=(0,l.getHeight)(e)>n;this.setState({clamp:r,containerHeight:n,lineHeight:t})}}},{key:"render",value:function(){var e=this.props,t=e.background,n=void 0===t?"#fff":t,r=e.children,o=e.ellipsis,a=void 0===o?"...":o,u=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["background","children","ellipsis"]),d=this.state,f=d.clamp,p=d.containerHeight,h=d.lineHeight,m=(0,l.hexToRGB)(n);return s.default.createElement("div",{style:{maxHeight:p+"px",overflow:"hidden",position:"relative"}},s.default.createElement("div",i({ref:this.setContextRef},(0,l.omit)(c,u)),r,f&&s.default.createElement("div",{style:{background:"linear-gradient(to right, rgba("+m+", 0), rgba("+m+", 1) 50%)",display:"flex",justifyContent:"flex-end",position:"absolute",bottom:"0",right:"0",width:"2em",height:h+"px"}},a)))}}]),t}();u.displayName="LineClamp",t.default=u},function(e,t){e.exports=n(0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.threeToSix=function(e){return 3===e.length?e.split("").map(function(e){return e+e}).join(""):e},i=t.cutHex=function(e){return"#"===e[0]?e.slice(1):e},o=t.parseHex=function(e){return r(i(e))},a=t.createHexToRGB=function(e,t){return function(n){return parseInt(o(n).substring(e,t),16)}},s=t.hexToR=a(0,2),l=t.hexToG=a(2,4),c=t.hexToB=a(4,6),u=(t.hexToRGB=function(e){return[s(e),l(e),c(e)].join(", ")},t.getNumberPixels=function(e){return Number(e.replace(/[a-zA-Z]+/,""))}),d=t.styleProp=function(e){return function(t){return u(t[e])}};t.getHeight=d("height"),t.getLineHeight=d("line-height"),t.omit=function(e,t){return Object.keys(t).reduce(function(n,r){return e.indexOf(-1===r)&&void 0!==t[r]?Object.assign(n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t[r])):n},{})}}])},function(e,t,n){e.exports=n(2357)},function(e,t,n){var r=n(165)(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n});e.exports=r},function(e,t,n){var r=n(30),i=n(165),o=n(715),a=i(function(e,t){return o(e,function(){for(var n,i=1,o=t,a=0;i<=e&&"function"==typeof o;)n=i===e?arguments.length:a+o.length,o=o.apply(this,r(Array.prototype).call(arguments,a,n)),i+=1,a=n;return o})});e.exports=a},function(e,t,n){var r=n(716)(function(e,t,n){return e(n)?t(n):n});e.exports=r},function(e,t,n){var r=n(165)(function(e,t){return e*t});e.exports=r},function(e,t,n){var r=n(565),i=n(2361),o=n(2362),a=n(2367);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t,n){var r=n(290),i=n(165)(function e(t,n){var i,o,a,s=n instanceof Array?[]:{};for(o in n)i=t[o],a=r(i),s[o]="function"===a?i(n[o]):i&&"object"===a?e(i,n[o]):n[o];return s});e.exports=i},function(e,t,n){var r=n(293),i=n(566),o=r(function(e){var t=[];for(var n in e)i(n,e)&&(t[t.length]=[n,e[n]]);return t});e.exports=o},function(e,t,n){var r=n(165),i=n(1126),o=n(1127),a=n(717),s=n(2370),l=n(715),c=n(567),u=r(i(["fantasy-land/map","map"],s,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return l(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return a(function(n,r){return n[r]=e(t[r]),n},{},c(t));default:return o(e,t)}}));e.exports=u},function(e,t,n){var r=n(165)(function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n});e.exports=r},function(e,t,n){"use strict";(function(e){var r=n(150),i=n.n(r),o=n(263),a=n.n(o),s=n(75),l=n.n(s),c=n(53),u=n.n(c),d=n(89),f=n(329),p=n(1268),h=function(e){var t,n=e.settings,r=e.lessonProgress,o=void 0===r?{}:r;return u()(l()(["passingScore"]),(t=o.passingScore,a()(i.a,t)),n)};t.a=function(t){var n=t.authorName,r=t.avatar,i=t.color,o=t.continueComponent,a=t.data,s=a.description,l=a.id,c=a.items,u=a.settings,m=a.title,g=a.type,v=t.enableVideoPlaybackSpeed,y=t.isLesson,b=t.labels,_=t.lessonNumber,w=t.lessonProgress,E=t.menuButtons,k=t.menuOpen,x=t.mobileMenuOpen,S=t.nextComponent,T=t.prefersKeyboardNavigation,C=t.previousComponent,O=t.showLessonCount,A=t.totalLessons;return e.createElement(d.c,{type:g},C,e.createElement(d.b,{type:g},E,e.createElement(d.a,{type:g,items:c},e.createElement(f.b,{id:l,lessonProgress:w,menuOpen:k,mobileMenuOpen:x,type:"quiz"}),e.createElement(p.a,{authorName:n,avatar:r,currentPassingScore:u.passingScore,color:i,description:s,enableVideoPlaybackSpeed:v,id:l,isLesson:y,items:c,labels:b,lessonNumber:_,lessonProgress:w,menuOpen:k,mobileMenuOpen:x,nextComponent:o||S,prefersKeyboardNavigation:T,previousComponent:C,settings:h({lessonProgress:w,settings:u}),showLessonCount:O,title:m,totalLessons:A}))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return ke});var r=n(4),i=n.n(r),o=n(31),a=n(15),s=n.n(a),l=n(30),c=n.n(l),u=n(10),d=n(7),f=n(11),p=n(9),h=n(12),m=(n(2408),n(19)),g=n.n(m),v=n(43),y=n.n(v),b=n(393),_=n.n(b),w=n(2),E=n.n(w),k=n(6),x=n.n(k),S=n(122),T=n.n(S),C=n(40),O=n.n(C),A=n(33),N=n.n(A),I=n(758),M=n.n(I),j=n(39),L=n.n(j),P=n(263),D=n.n(P),R=n(472),F=n.n(R),B=n(94),U=n.n(B),q=n(35),z=n.n(q),H=n(17),W=n.n(H),$=n(494),Y=n.n($),V=n(99),K=n.n(V),G=n(1269),X=n.n(G),Q=n(26),Z=n.n(Q),J=n(25),ee=n.n(J),te=n(8),ne=n.n(te),re=n(14),ie=n.n(re),oe=n(41),ae=n.n(oe),se=n(303),le=n.n(se),ce=n(32),ue=n.n(ce),de=n(78),fe=n(131),pe=n(1270),he=n(1273),me=n(1274),ge=fe.a.MATCHING,ve=ee()(0,["lessonProgress","activeIndex"]),ye=function(e,t){return x()(O()(e),ve)(t)},be=ee()(0,["lessonProgress","retryAttempts"]),_e=T()(function(e){return M()(function(e){return x()(D()(L.a,e),ie()("id"),ne()("id"))}(e),F.a)}),we=x()(X()("answers"),Y()(T()(function(e){return z()(function(e){return x()(Y()(y.a),_e(e))}(e))})),_()(ne()("answers"),ne()("answers"))),Ee=D()(function(e){return z()((t=e,x()(Y()(y.a),M()(we,Y()(y.a)),_e(t))));var t}),ke=function(t){function n(e){var t;return Object(u.a)(this,n),(t=Object(f.a)(this,Object(p.a)(n).call(this,e))).state={items:Me(e)},t}return Object(h.a)(n,t),Object(d.a)(n,[{key:"componentWillReceiveProps",value:function(e){if(be(this.props)!==be(e))this.setState({items:Me(e)});else{var t=Ee(this.state.items,e.items);this.setState({items:t})}}},{key:"render",value:function(){var t=this.state.items,n=ve(this.props),r=Ce(n),i=W()(this.props,{getClassName:r}),o=function(e){return{start:e<2?0:e-2,end:e+2}}(n),a=o.start,l=o.end,u=c()(t).call(t,a,l),d=Se(i,a),f=this.props.labels.quizLandmark;return e.createElement("section",{"aria-label":f,className:"quiz","data-quiz":!0},e.createElement("div",{className:"quiz__wrap"},n<2?xe(i):null,s()(u).call(u,d),Te(i)))}}]),n}(e.Component),xe=function(t){var n=t.authorName,r=t.avatar,i=t.description,o=t.getClassName,a=t.id,s=t.isLesson,l=t.items,c=t.labels,u=t.lessonNumber,d=t.lessonProgress,f=t.showLessonCount,p=t.title,h=t.totalLessons;return e.createElement("div",{className:o(0)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(he.a,{allowTabNavigation:ye(0,{lessonProgress:d}),authorName:n,avatar:r,description:i,id:a,isLesson:s,items:l,labels:c,lessonNumber:u,lessonProgress:d,showLessonCount:f,title:p,totalLessons:h})))},Se=function(t,n){return function(r,i){return e.createElement(me.a,Object(o.a)({index:i+n,item:r,key:"item-".concat(r.id),retryAttempts:be({lessonProgress:t.lessonProgress})},t))}},Te=function(t){var n=t.color,r=t.currentPassingScore,i=t.id,o=t.getClassName,a=t.items,s=t.labels,l=t.lessonNumber,c=t.lessonProgress,u=t.nextComponent,d=t.settings,f=d.passingScore,p=d.retryCount,h=U()(a.length),m=ye(h,{lessonProgress:c});return e.createElement("div",{className:o(h)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(pe.a,{allowTabNavigation:m,color:n,current:l,currentPassingScore:r,id:i,isAtEnd:m,labels:s,length:a.length,lessonProgress:c,passingScore:f,nextComponent:u,retryAttempts:be({lessonProgress:c}),retryCount:Number(p)})))},Ce=function(e){return function(t){return E()("quiz__item",{"quiz__item--active":t===e,"quiz__item--done":t<e,"quiz__item--next":t===e+1,"quiz__item--penultimate":t===e+2,"quiz__item--future":t>e+2})}},Oe=ie()("type",ge),Ae=function(e){return function(t){return Oe(t)?function(e){var t=Object(de.i)(ae()([],"answers",e));return W()(e,{titleIndices:le()(t),matchIndices:t})}(t):e?N()({answers:le.a},t):t}},Ne=ee()(!1,["settings","shuffleAnswerChoices"]),Ie=ee()(!1,["settings","randomizeQuestionOrder"]),Me=x()(ne()("items"),function(e){var t=Ne(e),n=Ae(t);return N()({items:z()(n)},e)},ue()(Ie,function(e){var t,n,r=ne()("items",e),o=Z()(["lessonProgress","items"],e),a=x()(String,ne()("id")),s=Object(de.d)(o,ne()("isComplete")),l=Object(de.c)(a,s)(r),c=Object(de.d)(o,x()(K.a,ne()("isComplete"))),u=Object(de.c)(a,c)(r),d=i()(t=i()(n=[]).call(n,l)).call(t,le()(u));return g()("items",d,e)}))}).call(this,n(0))},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(130),i=n(378);e.exports=r(function(e,t){if(!e||!i(e))throw new TypeError("objOf: Non-empty String required for first argument");return(n={})[e]=t,n;var n})},function(e,t,n){"use strict";(function(e){var r=n(123),i=(n(2412),n(1271));t.a=function(t){var n=t.nextComponent,o=Object(r.a)(t,["nextComponent"]);return e.createElement("div",{"aria-hidden":!o.allowTabNavigation,className:"quiz-end"},e.createElement("div",{className:"quiz-end__container"},e.createElement(i.a,o)),e.createElement("div",{className:"quiz-end__footer"},o.isAtEnd&&n))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(10),i=n(7),o=n(11),a=n(9),s=n(12),l=(n(2413),n(2)),c=n.n(l),u=n(50),d=n(265),f=n(1272),p=n(404),h=function(t){function n(){return Object(r.a)(this,n),Object(o.a)(this,Object(a.a)(n).apply(this,arguments))}return Object(s.a)(n,t),Object(i.a)(n,[{key:"render",value:function(){var t=this.props,n=t.allowTabNavigation,r=t.color,i=t.currentPassingScore,o=t.id,a=t.isAtEnd,s=t.labels,l=s.quizPassing,c=s.quizResults,u=s.quizScore,d=s.quizTakeAgain,p=t.lessonProgress,h=p.reportResults,g=p.score,v=t.passingScore,b=t.retryAttempts,_=t.retryCount;return e.createElement("div",{className:m({isAtEnd:a})},e.createElement("div",{className:"quiz-results__header"},e.createElement("div",{className:"quiz-results__label"},c),e.createElement("div",{className:"quiz-results__passing"},e.createElement("div",{className:"odometer__passlabel brand--ui"},l),e.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(v,"%")))),e.createElement("div",{className:"quiz-results__results"},e.createElement(f.a,{quizScore:u,quizPassing:l,color:r,score:g,isPass:g>=v,passingScore:v,atEnd:a,complete:h})),y({allowTabNavigation:n,currentPassingScore:i,id:o,isAtEnd:a,quizTakeAgain:d,retryAttempts:b,retryCount:_}))}}]),n}(e.Component),m=function(e){var t=e.isAtEnd;return c()("quiz-results",{"quiz-results--active":t})},g=function(e){var t=e.isAtEnd;return c()("quiz-results__footer",{"quiz-results__footer--active":t})},v=function(e){var t=e.currentPassingScore,n=e.id;return function(){return Object(u.a)(Object(d.b)({currentPassingScore:t,id:n}))}},y=function(t){var n=t.allowTabNavigation,r=t.currentPassingScore,i=t.id,o=t.isAtEnd,a=t.quizTakeAgain,s=t.retryAttempts,l=t.retryCount;if(-1===l||s<l)return e.createElement("div",{className:g({isAtEnd:o})},e.createElement(p.a,{allowTabNavigation:n,onClick:v({currentPassingScore:r,id:i}),text:a}))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(487),i=n.n(r),o=n(37),a=n.n(o),s=n(10),l=n(7),c=n(11),u=n(9),d=n(12),f=(n(2419),n(2)),p=n.n(f),h=function(t){function n(e){var t;return Object(s.a)(this,n),(t=Object(c.a)(this,Object(u.a)(n).call(this,e))).state={animated:!1,counted:!1},t}return Object(d.a)(n,t),Object(l.a)(n,[{key:"componentWillUnmount",value:function(){this.resetCanvas()}},{key:"componentWillReceiveProps",value:function(e,t){e.atEnd&&!t.animated&&this.setState({animated:!0}),this.props.atEnd&&!e.atEnd&&(this.resetCanvas(),this.setState({counted:!1,pass:null}))}},{key:"shouldComponentUpdate",value:function(e,t){return this.props.atEnd!==e.atEnd||this.state.counted!==t.counted||!this.state.animated}},{key:"componentDidUpdate",value:function(){var e=this;this.props.atEnd&&(!this.state.counted&&this.props.complete?(this.odo(),a()(function(){e.setState({counted:!0,pass:e.props.isPass})},4e3)):this.state.counted&&this.props.isPass?this.pass():this.state.counted&&!this.props.isPass&&this.fail())}},{key:"render",value:function(){var t=this,n=this.props,r=n.score,i=n.canvasWidth,o=n.canvasHeight,a=n.passingScore,s=n.quizScore,l=n.quizPassing,c=this.state,u=c.pass,d=c.counted,f=p()("odometer__score brand--ui",{"odometer__score--pass":u,"odometer__score--fail":!1===u}),h=p()("odometer__score-percent",{"odometer__score-percent--hidden":d});return e.createElement("div",{className:"odometer"},e.createElement("canvas",{className:"odometer__canvas",id:"odometer",width:i,height:o}),e.createElement("canvas",{className:"odometer__fail",id:"fail",width:"170",height:"170"}),e.createElement("canvas",{className:"odometer__pass",id:"pass",width:"170",height:"170"}),e.createElement("div",{className:f},e.createElement("div",{className:"odometer__score-label"},s),e.createElement("div",{className:"odometer__pass-label brand--color"},s," ",r,"%"),e.createElement("div",{className:"odometer__fail-label"},s," ",r,"%"),e.createElement("div",{ref:function(e){t.scorePercent=e},className:h})),e.createElement("div",{ref:function(e){t.passmark=e},className:"odometer__passmark"},e.createElement("div",{className:"odometer__passlabel brand--ui"},l),e.createElement("div",{className:"odometer__passpercent brand--ui"},"".concat(a,"%"))))}},{key:"resetCanvas",value:function(){var e=document.getElementById("pass"),t=document.getElementById("fail");e&&t&&(e.getContext("2d").clearRect(0,0,170,170),t.getContext("2d").clearRect(0,0,170,170))}},{key:"odo",value:function(){var e=this,t=this.props,r=t.passingScore,o=t.atEnd,s=t.canvasWidth,l=t.canvasHeight,c=t.color,u=document.getElementById("odometer").getContext("2d"),d=new Image,f=Math.PI/.8,p=.25*Math.PI;d.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTExIDc5LjE1ODMyNSwgMjAxNS8wOS8xMC0wMToxMDoyMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDFBQzM3NTBGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDFBQzM3NTFGMDA2MTFFNThENDVCMjlGQjVCNUU3OTQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMUFDMzc0RUYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMUFDMzc0RkYwMDYxMUU1OEQ0NUIyOUZCNUI1RTc5NCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pq3YZDIAAAA6SURBVHjaYjQ0NVdiYGC4D8T/GRCAEYgVmXBJADEzEy4JIL7DhEsCpIkJlwRIkAmXBEwSqwQIAAQYABZQDs+U1J1TAAAAAElFTkSuQmCC";var h=null,m=function t(a){return function(m){!h&&a&&(h=m);var g,v,y,b,_,w,E,k,x,S,T,C=a?(m-h)/2e3:0;g=C,v=e.props.score/100,y=n.easeInOutCubic(Math.min(g,1)),b=(225+y*v*270-90)*Math.PI/180,_=.5*s+210*Math.cos(b),w=.5*l+210*Math.sin(b),E=(225+r/100*270-90)*Math.PI/180,k=.5*s+210*Math.cos(E),x=.5*l+210*Math.sin(E),S=k+3,T=x+3,e.passmark&&(e.passmark.style.left="".concat(k/s*100,"%"),e.passmark.style.top="".concat(x/l*100,"%")),u.clearRect(0,0,s,l),u.beginPath(),u.arc(s/2,l/2,219,p,1.52*Math.PI*(r/100-.03)-f,!0),u.lineWidth=16,u.strokeStyle=u.createPattern(d,"repeat"),u.stroke(),u.closePath(),u.beginPath(),u.moveTo(S,T),u.lineTo(S+38,T-38),u.lineTo(S-38,T-38),u.lineTo(S-38,T+38),u.fillStyle="#f5f5f5",i()(u).call(u),u.closePath(),u.beginPath(),u.moveTo(k,x),u.lineTo(k+35,x-35),u.strokeStyle="#c2c3c4",u.lineWidth=1,u.stroke(),u.closePath(),u.beginPath(),u.moveTo(k+35,x-35),u.lineTo(k+70,x-35),u.strokeStyle="#c2c3c4",u.lineWidth=1,u.stroke(),u.closePath(),u.beginPath(),u.strokeStyle="#dcdcdc",u.arc(s/2,l/2,210,-f,1.5*Math.PI-f,!1),u.lineWidth=3,u.stroke(),u.closePath(),o&&(u.beginPath(),u.arc(s/2,l/2,210,-f,1.5*Math.PI*y*v-f,!1),u.lineWidth=3,u.strokeStyle="#313537",Math.floor(y*v*100)>=r&&(u.strokeStyle=c),u.stroke(),u.closePath(),u.beginPath(),u.arc(_,w,6,0,2*Math.PI,!1),u.fillStyle="#313537",Math.floor(y*v*100)>=r&&(u.fillStyle=c),i()(u).call(u),u.closePath()),C<1&&a&&window.requestAnimationFrame(t(!0))}};window.requestAnimationFrame(m(!1)),a()(function(){window.requestAnimationFrame(m(!0)),e.score()},1e3)}},{key:"score",value:function(){var e=this,t=null,r=function r(i){t||(t=i);var o=(i-t)/2e3;!function(t,r){var i=n.easeInOutQuad(Math.min(t,1)),o=Math.round(i*r*100)+"";if(e.scorePercent){for(;o.length<2;)o="0"+o;e.scorePercent.innerHTML="".concat(o,"%")}}(o,e.props.score/100),o<1&&window.requestAnimationFrame(r)};t=null,window.requestAnimationFrame(r)}},{key:"pass",value:function(){var e=this,t=this.props.color,r=document.getElementById("pass").getContext("2d"),i=null,o=function o(a){i||(i=a);var s,l,c=(a-i)/750;s=c,e.props.score,l=n.easeInOutCubic(Math.min(s,1)),r.clearRect(0,0,170,170),r.beginPath(),r.moveTo(30,70),r.lineTo(30+40*Math.min(l,.5)*2,70+45*Math.min(l,.5)*2),l>=.5&&r.lineTo(70+90*(l-.5)*2,110-85*(l-.5)*2),r.strokeStyle=t,r.lineWidth=20,r.stroke(),r.closePath(),c<1&&window.requestAnimationFrame(o)};i=null,window.requestAnimationFrame(o)}},{key:"fail",value:function(){var e=this,t=document.getElementById("pass").getContext("2d"),r=null,i=function i(o){r||(r=o);var a,s,l=(o-r)/750;a=l,e.props.score,s=n.easeInOutCubic(Math.min(a,1)),t.clearRect(0,0,170,170),t.beginPath(),t.moveTo(40,30),t.lineTo(40+90*Math.min(s,.5)*2,30+90*Math.min(s,.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath(),s>=.5&&(t.beginPath(),t.moveTo(130,30),t.lineTo(130-90*(s-.5)*2,30+90*(s-.5)*2),t.strokeStyle="#313537",t.lineWidth=20,t.stroke(),t.closePath()),l<1&&window.requestAnimationFrame(i)};r=null,window.requestAnimationFrame(i)}}],[{key:"easeInOutCubic",value:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},{key:"easeInOutQuad",value:function(e){return e<.5?2*e*e:(4-2*e)*e-1}},{key:"defaultProps",get:function(){return{canvasWidth:590,canvasHeight:500,score:0}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2420);var r=n(94),i=n.n(r),o=n(41),a=n.n(o),s=n(50),l=n(81),c=n(265),u=n(52),d=n(95),f=n(22),p=function(e){var t=e.lessonProgress,n=e.quizStart,r=e.quizTakeAgain;return a()(0,"retryAttempts",t)>0?r:n},h=function(t){var n=t.lessonName,r=t.lessonNumber,i=t.lessonPreposition,o=t.totalLessons;return e.createElement("div",{className:"quiz-header__count"},n," ",r," ",i," ",o)},m=function(e){var t=e.id,n=e.lessonProgress;return function(){return Object(s.a)(Object(c.c)({activeIndex:Math.max(0,i()(a()(0,"activeIndex",n))),id:t}))}};t.a=function(t){var n=t.allowTabNavigation,r=t.authorName,i=t.avatar,o=t.description,a=t.id,s=t.isLesson,c=t.labels,g=c.lessonName,v=c.lessonPreposition,y=c.quizStart,b=c.quizTakeAgain,_=t.lessonNumber,w=t.lessonProgress,E=t.showLessonCount,k=t.title,x=t.totalLessons;return e.createElement("div",{"aria-hidden":!n,className:"quiz-header"},e.createElement("div",{className:"quiz-header__container"},e.createElement("div",{className:"quiz-header__limit"},e.createElement("div",{className:"quiz-header__row"},e.createElement("div",{className:"quiz-header__main"},e.createElement("div",{className:"quiz-header__top-wrap brand--afterBackground"},e.createElement(u.a,{className:"quiz-header__title brand--lhead",value:Object(d.b)(k)}),i&&r?e.createElement("div",{className:"quiz-header__author brand--ui"},e.createElement("img",{src:Object(l.l)("".concat(i)),alt:""}),e.createElement("span",{className:"visually-hidden"},"by ",r),e.createElement("span",{"aria-hidden":"true"},r)):null,e.createElement("div",{className:"quiz-header__counter brand--body"},s&&E&&h({lessonName:g,lessonNumber:_,lessonPreposition:v,totalLessons:x}))),e.createElement(u.a,{className:"quiz-header__description brand--lbody brand--linkColor",value:o,allowTabNavigation:n}),e.createElement("button",{className:"quiz-header__start-quiz brand--color",onClick:n?m({id:a,lessonProgress:w}):Function.prototype,tabIndex:Object(f.l)(n)},e.createElement("span",{className:"brand--ui"},p({lessonProgress:w,quizStart:y,quizTakeAgain:b})),e.createElement("i",{className:"icon icon-chevron-right"})))))))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return Ae});var r=n(37),i=n.n(r),o=n(4),a=n.n(o),s=n(3),l=n.n(s),c=n(268),u=n.n(c),d=n(10),f=n(7),p=n(11),h=n(9),m=n(13),g=n(12),v=n(590),y=n.n(v),b=n(6),_=n.n(b),w=n(79),E=n.n(w),k=n(40),x=n.n(k),S=n(115),T=n.n(S),C=n(48),O=n.n(C),A=n(45),N=n.n(A),I=n(94),M=n.n(I),j=n(106),L=n.n(j),P=n(51),D=n.n(P),R=n(35),F=n.n(R),B=n(26),U=n.n(B),q=n(25),z=n.n(q),H=n(23),W=n.n(H),$=n(8),Y=n.n($),V=n(14),K=n.n(V),G=n(41),X=n.n(G),Q=n(332),Z=n.n(Q),J=n(395),ee=n.n(J),te=n(271),ne=n.n(te),re=n(78),ie=n(50),oe=n(151),ae=n(1275),se=n(1276),le=n(265),ce=n(1277),ue=n(1278),de=n(81),fe=n(52),pe=n(49),he=n(158),me=n.n(he),ge=n(276),ve=n(186),ye=n(169),be=n(131),_e=be.a.FILL_IN_THE_BLANK,we=be.a.MATCHING,Ee=be.a.MULTIPLE_CHOICE,ke=be.a.MULTIPLE_RESPONSE,xe=ye.a.ANY,Se=ye.a.CHOICE,Te=ye.a.CORRECT_INCORRECT,Ce=function(e){return e?73:3},Oe=z()(0,["lessonProgress","activeIndex"]),Ae=function(t){function n(e){var t,r,i,o,a,s,c;return Object(d.a)(this,n),(c=Object(p.a)(this,Object(h.a)(n).call(this,e))).state={startTime:u()()},c.handleChoiceSelect=l()(t=c.handleChoiceSelect).call(t,Object(m.a)(c)),c.handleFillIn=l()(r=c.handleFillIn).call(r,Object(m.a)(c)),c.handleMatch=l()(i=c.handleMatch).call(i,Object(m.a)(c)),c.handleNext=l()(o=c.handleNext).call(o,Object(m.a)(c)),c.handleResponseToggle=l()(a=c.handleResponseToggle).call(a,Object(m.a)(c)),c.handleSubmit=l()(s=c.handleSubmit).call(s,Object(m.a)(c)),c}return Object(g.a)(n,t),Object(f.a)(n,[{key:"componentDidUpdate",value:function(e){this.isNewlyActive({prevProps:e})&&(this.scrollTopIfNewlyActive(),this.setState({startTime:u()()})),this.scrollActionsIfComplete({prevProps:e})}},{key:"render",value:function(){var t=this,n=this.props,r=n.enableVideoPlaybackSpeed,i=n.getClassName,o=n.item,a=n.items,s=n.labels,l=n.settings,c=s.quizAcceptableResponses,u=s.quizAnswerPlaceholder,d=s.quizCorrect,f=s.quizIncorrect,p=s.quizNext,h=s.quizQuestion,m=s.quizSubmit,g=o.media,v=o.title,y=Oe(this.props),b=this.getStepIndex(),_=b===y,w=this.getItemProgress({props:this.props})||{},E=this.getIsComplete({itemProgress:w}),k=this.getIsCorrect({itemProgress:w}),x=X()(!1,"revealAnswers",l),S=E&&X()(!1,"revealAnswers",l),T=!E&&this.getCanSubmit({itemProgress:w}),C=this.handleSubmit({isCorrect:k,canSubmit:T,itemProgress:w}),O=Y()("selectedIndex",w),A=this.getFeedback({isCorrect:k,selectedIndex:O});return e.createElement("div",{"aria-hidden":!_,className:i(b)},e.createElement("div",{className:"quiz__item-wrap"},e.createElement(ve.b,{isActive:_,isComplete:E},e.createElement(ve.f,{num:b,quizQuestion:h,total:D()(a)}),e.createElement(ve.g,{value:v,allowTabNavigation:_}),e.createElement(ve.e,{allowTabNavigation:_,enableVideoPlaybackSpeed:r,index:String(b),labels:s,media:g,opts:l}),e.createElement(ve.d,{hasNoBorder:this.hasNoBorder(),isComplete:E},this.renderType({canSubmit:T,isActive:_,isComplete:E,isCorrect:k,itemProgress:w,onSubmit:C,revealAnswers:x,quizAcceptableResponses:c,quizAnswerPlaceholder:u})),e.createElement(ve.a,{allowTabNavigation:_,canProceed:S,canSubmit:T,onSubmit:C,quizSubmit:m}),e.createElement(ve.c,{allowTabNavigation:_,canProceed:S,feedbackRef:function(e){t.feedback=e},hasFeedback:!!A,isCorrect:k,labels:s,onNext:_?function(){return t.handleNext()}:Function.prototype,quizCorrect:d,quizIncorrect:f,quizNext:p,renderText:function(){return e.createElement(fe.a,{className:"quiz-card__feedback-text brand--body brand--linkColor",allowTabNavigation:E&&_,value:A})}}))))}},{key:"getStepIndex",value:function(){return M()(this.props.index)}},{key:"getIsCorrect",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case _e:return je({item:n,itemProgress:t});case we:return Object(re.b)(Le(t));case ke:return Ie({item:n,itemProgress:t});case Ee:default:return x()(Y()("selectedIndex",t),T()(K()("id",n.correct),n.answers))}}},{key:"getFeedback",value:function(e){var t=e.isCorrect,n=e.selectedIndex,r=this.props.item,i=r.answers,o=r.feedback,a=r.feedbackCorrect,s=r.feedbackIncorrect;switch(r.feedbackType){case Se:return z()("",[n,"feedback"],i);case Te:return t?a:s;case xe:default:return o}}},{key:"hasNoBorder",value:function(){return E()(this.props.item.type,[_e,we])}},{key:"getCanSubmit",value:function(e){var t=e.itemProgress,n=this.props.item;switch(n.type){case _e:return Object(oe.b)(Y()("text",t));case we:return Pe(t)===D()(Y()("answers",n));case ke:return Object(oe.b)(Y()("selectedIndices",t));case Ee:default:return Object(oe.b)(Y()("selectedIndex",t))}}},{key:"getIsComplete",value:function(e){var t=e.itemProgress;return X()(!1,"isComplete",t)}},{key:"getItemProgress",value:function(e){var t=e.props,n=t.item,r=t.lessonProgress;return U()(["items",n.id],r)}},{key:"handleSubmit",value:function(e){var t=this,n=e.isCorrect,r=e.canSubmit,i=e.itemProgress;return function(){if(r){var e=t.state.startTime,o=t.props,a=o.id,s=o.item,c=o.retryAttempts,d=o.title,f=o.settings,p=f.passingScore,h=f.revealAnswers,m=void 0!==h&&h,g=f.passToContinue,v=s.id,y=l()(le.d).call(le.d,null,{id:a,isCorrect:n,itemId:v,passingScore:p,revealAnswers:m,passToContinue:g});if(Object(de.k)({duration:{startTime:e,stopTime:u()()},id:a,isCorrect:n,item:s,itemProgress:i,retryAttempts:c,title:d}),m)return Object(ie.a)(y());t.handleNext(y)}}}},{key:"handleNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return[]},t=this.props,n=t.id,r=t.previousComponent,i=Oe(this.props),o=Ce(r);pe.a.pause(),he.Events.scrollEvent.register("end",function(){var t,r;he.Events.scrollEvent.remove("end"),Object(ie.a)(a()(t=a()(r=[]).call(r,e())).call(t,Object(le.c)({activeIndex:M()(i),id:n})))}),me.a.animateScroll.scrollTo(o,{containerId:"page-wrap",duration:500,smooth:!0})}},{key:"isNewlyActive",value:function(e){var t=e.prevProps,n=Oe(t),r=Oe(this.props),i=this.getStepIndex();return n!==r&&i===r}},{key:"renderType",value:function(t){var n=t.canSubmit,r=t.isActive,i=t.isComplete,o=t.isCorrect,a=t.itemProgress,s=t.onSubmit,l=t.revealAnswers,c=t.quizAcceptableResponses,u=t.quizAnswerPlaceholder,d=this.props,f=d.item,p=d.prefersKeyboardNavigation,h=r&&!i;switch(f.type){case _e:return e.createElement(ge.a,{allowTabNavigation:h,isComplete:i,isCorrect:o,onChange:this.handleFillIn,onEnterToSubmit:s,options:f.answers,revealAnswers:l,quizAcceptableResponses:c,quizAnswerPlaceholder:u,value:X()("","text",a)});case we:return e.createElement(ge.b,{allowTabNavigation:h,answers:f.answers,canSubmit:n,isActive:r,isComplete:i,matchIndices:f.matchIndices,matches:Le(a),onEnterToSubmit:s,onMatch:this.handleMatch,prefersKeyboardNavigation:p,revealAnswers:l,titleIndices:f.titleIndices});case ke:return e.createElement(ge.d,{allowTabNavigation:h,correctIds:f.corrects,isComplete:i,onChange:this.handleResponseToggle,onEnterToSubmit:s,options:f.answers,renderOptionText:function(t){var n=t.title;return e.createElement(fe.a,{className:"quiz-multiple-choice-option__label brand--body",value:n,allowTabNavigation:r})},revealAnswers:l,selectedIndices:Y()("selectedIndices",a),uniqueId:f.id});case Ee:default:return e.createElement(ge.c,{allowTabNavigation:h,correctId:f.correct,isComplete:i,onChange:this.handleChoiceSelect({selectedIndex:Y()("selectedIndex",a)}),onEnterToSubmit:s,options:f.answers,renderOptionText:function(t){var n=t.title;return e.createElement(fe.a,{className:"quiz-multiple-choice-option__label brand--body",value:n,allowTabNavigation:r})},selectedIndex:Y()("selectedIndex",a),title:f.title,uniqueId:f.id})}}},{key:"handleChoiceSelect",value:function(e){var t=this,n=e.selectedIndex;return function(e){var r=e.optionIndex,i=t.props,o=i.id,a=i.item.id;r!==n&&Object(ie.a)(Object(ce.a)({id:o,itemId:a,selectedIndex:r}))}}},{key:"handleResponseToggle",value:function(e){var t=e.optionIndex,n=this.props,r=n.id,i=n.item.id;Object(ie.a)(Object(ue.a)({id:r,itemId:i,selectedIndex:t}))}},{key:"handleFillIn",value:function(e){var t=this.props,n=t.id,r=t.item.id;Object(ie.a)(Object(ae.a)({id:n,itemId:r,text:e}))}},{key:"handleMatch",value:function(e){var t=e.dragIndex,n=e.dropZoneIndex,r=this.props,i=r.id,o=r.item.id;Object(ie.a)(Object(se.a)({id:i,itemId:o,dragIndex:t,dropZoneIndex:n}))}},{key:"scrollTopIfNewlyActive",value:function(){var e=this.props.previousComponent,t=Ce(e);me.a.animateScroll.scrollTo(t,{containerId:"page-wrap",smooth:!0})}},{key:"scrollActionsIfComplete",value:function(e){var t=this,n=e.prevProps,r=this.props.settings,o=Oe(this.props),a=this.getStepIndex()===o,s=X()(!1,"revealAnswers",r);if(a&&s){var l=this.getItemProgress({props:n}),c=this.getIsComplete({itemProgress:l}),u=this.getItemProgress({props:this.props}),d=this.getIsComplete({itemProgress:u});!c&&d&&i()(function(){var e=t.feedback,n=e.offsetHeight,r=e.offsetTop;me.a.animateScroll.scrollTo(n+r,{containerId:"page-wrap",smooth:!0})},750)}}}]),n}(e.Component),Ne=y()(N.a),Ie=function(e){var t=e.item,n=e.itemProgress;return Y()("selectedIndices",n)&&x()(Z()(Ne,X()([],"selectedIndices",n)),_()(Z()(Ne),F()(_()(O()(T.a)(X()([],"answers",t)),K()("id"))))(X()([],"corrects",t)))},Me=_()(ne.a,ee.a),je=function(e){var t=e.item,n=e.itemProgress,r=t.settings,i=(void 0===r?{}:r).isCaseSensitive,o=void 0!==i&&i?ne.a:Me;return Y()("text",n)&&W()(F()(Y()("title")),F()(o),E()(o(Y()("text",n))))(X()([],"answers",t))},Le=X()({},"matches"),Pe=_()(D.a,L.a,Le)}).call(this,n(0))},function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n(19),i=n.n(r),o=n(55),a=n.n(o),s=n(72),l=n.n(s),c=n(75),u=n.n(c),d=n(62),f=n.n(d),p=n(53),h=n.n(p),m=n(140),g=n.n(m),v=n(65),y=function(e){var t=e.id,n=e.itemId,r=e.text;return function(e){return e(Object(v.g)({id:t,type:"quiz",updateFn:b({itemId:n,text:r})}))}},b=function(e){var t=e.itemId,n=e.text;return h()(u()(["items",t]),a()(g()(l.a,[n]),f()(["text"]),i()("text",n)))}},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r=n(19),i=n.n(r),o=n(6),a=n.n(o),s=n(40),l=n.n(s),c=n(75),u=n.n(c),d=n(53),f=n.n(d),p=n(112),h=n.n(p),m=n(65),g=n(151),v=function(e){var t=e.id,n=e.itemId,r=e.dragIndex,i=e.dropZoneIndex;return function(e){return e(Object(m.g)({id:t,type:"quiz",updateFn:y({itemId:n,dragIndex:r,dropZoneIndex:i})}))}},y=function(e){var t=e.itemId,n=e.dragIndex,r=e.dropZoneIndex;return f()(u()(["items",t,"matches"]),a()(i()(n,r),h()(l()(r)),g.d))}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(19),i=n.n(r),o=n(75),a=n.n(o),s=n(53),l=n.n(s),c=n(65),u=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(c.g)({id:t,type:"quiz",updateFn:d({itemId:n,selectedIndex:r})}))}},d=function(e){var t=e.itemId,n=e.selectedIndex;return l()(a()(["items",t]),i()("selectedIndex",n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return M});var r=n(108),i=n.n(r),o=n(6),a=n.n(o),s=n(79),l=n.n(s),c=n(55),u=n.n(c),d=n(72),f=n.n(d),p=n(36),h=n.n(p),m=n(75),g=n.n(m),v=n(61),y=n.n(v),b=n(214),_=n.n(b),w=n(62),E=n.n(w),k=n(53),x=n.n(k),S=n(589),T=n.n(S),C=n(32),O=n.n(C),A=n(166),N=n.n(A),I=n(65),M=function(e){var t=e.id,n=e.itemId,r=e.selectedIndex;return function(e){return e(Object(I.g)({id:t,type:"quiz",updateFn:P({itemId:n,selectedIndex:r})}))}},j=function(e){return g()(["items",e])},L=function(e){return a()(j(e),y()("selectedIndices"))},P=function(e){var t,n=e.itemId,r=e.selectedIndex;return a()(O()((t=n,a()(f.a,T()(L(t)))),function(e){return x()(j(e),E()(["selectedIndices"]))}(n)),function(e){var t=e.itemId,n=e.selectedIndex;return x()(L(t),a()(u()(l()(n),N()(_()(n)),i()(n)),O()(h.a,function(){return[]})))}({itemId:n,selectedIndex:r}))}},function(e,t,n){var r=n(2421)(n(2442));e.exports=r},function(e,t,n){"use strict";(function(e){var r=n(8),i=n.n(r),o=n(89),a=n(1281);t.a=function(t){var n=t.data,r=n.id,s=n.items,l=n.piles,c=n.type,u=t.labels,d=t.lessonHeader,f=t.lessonProgress,p=t.menuButtons,h=t.nextComponent,m=t.previousComponent;return e.createElement(o.c,{type:c},m,e.createElement(o.b,{type:c},p,d,e.createElement(o.a,{type:c},e.createElement(a.a,{id:r,items:s,labels:u,progress:f,piles:l}))),i()("isComplete",f)?h:null)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(31),i=(n(2444),n(6)),o=n.n(i),a=n(50),s=n(410),l=n(593);t.a=function(t){return e.createElement("div",{className:"sorting-lesson"},e.createElement(l.a,Object(r.a)({},t,{onCardDrop:o()(a.a,s.d),onReplay:o()(a.a,s.b)})))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(89),i=n(1283);t.a=function(t){var n=t.data,o=n.id,a=n.items,s=n.type,l=t.labels,c=t.lessonHeader,u=t.lessonProgress,d=t.loadMedia,f=t.menuButtons,p=t.nextComponent,h=t.previousComponent;return e.createElement(r.c,{type:s},h,e.createElement(r.b,{type:s},f,c,e.createElement(r.a,{type:s},e.createElement(i.a,{id:o,items:a,labels:l,lessonProgress:u,loadMedia:d}))),p)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return O});var r=n(31),i=n(10),o=n(7),a=n(11),s=n(9),l=n(12),c=n(599),u=n.n(c),d=(n(2445),n(6)),f=n.n(d),p=n(26),h=n.n(p),m=n(23),g=n.n(m),v=n(8),y=n.n(v),b=n(1284),_=n.n(b),w=n(421),E=n(50),k=n(595),x=g()(y()("linePosition"),u.a),S=_()(x),T=f()(E.a,w.a),C=f()(E.a,w.a),O=function(t){function n(){return Object(i.a)(this,n),Object(a.a)(this,Object(s.a)(n).apply(this,arguments))}return Object(l.a)(n,t),Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.items,n=e.id,r=h()([0,"id"],t);T({id:n,payload:{activeIndex:0,itemId:r}})}},{key:"render",value:function(){var t=this.props.items;return e.createElement("div",{className:"timeline-lesson"},e.createElement(k.a,Object(r.a)({},this.props,{isLearner:!0,items:S(t),progress:y()("lessonProgress",this.props),onEnter:T,onLeave:C})))}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})})},function(e,t,n){"use strict";(function(e){var r=n(89),i=n(1286);t.a=function(t){var n=t.data,o=t.labels,a=t.lessonHeader,s=t.lessonProgress,l=t.menuButtons,c=t.nextComponent,u=t.prefersKeyboardNavigation,d=t.previousComponent,f=t.enableVideoPlaybackSpeed;return e.createElement(r.c,{type:n.type},d,e.createElement(r.b,{type:n.type},l,a,e.createElement(r.a,null,e.createElement(i.a,{data:n,labels:o,lessonProgress:s,prefersKeyboardNavigation:u,enableVideoPlaybackSpeed:f}))),c)}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return k});var r=n(37),i=n.n(r),o=n(10),a=n(11),s=n(9),l=n(7),c=n(12),u=(n(2446),n(2)),d=n.n(u),f=n(60),p=n.n(f),h=n(26),m=n.n(h),g=n(8),v=n.n(g),y=n(1),b=n.n(y),_=n(50),w=n(478),E=n(400),k=function(t){function n(e){var t;return Object(o.a)(this,n),(t=Object(a.a)(this,Object(s.a)(n).call(this,e))).state={load:!1},t}return Object(c.a)(n,t),Object(l.a)(n,null,[{key:"propTypes",get:function(){return{id:b.a.any,labels:b.a.object,lessonProgress:b.a.object.isRequired,media:b.a.object}}}]),Object(l.a)(n,[{key:"componentDidMount",value:function(){var e=this;i()(function(){e.setState({load:!0})},800)}},{key:"render",value:function(){var t=this.props,n=t.labels,r=t.lessonProgress,i=t.prefersKeyboardNavigation,o=t.enableVideoPlaybackSpeed,a=this.props.data,s=a.id,l=a.media,c=a.settings,u=v()("currentTime",r),f=m()(["video","key"],l),p=m()(["lessonProgress","percentComplete"],r),h=m()(["video","poster"],l),g=d()("video-lesson",{"video-lesson--visible":this.state.load});return e.createElement("div",null,e.createElement("div",{className:"page__content-container"},e.createElement("div",{className:g},this.state.load?e.createElement("div",{className:"video-lesson__item"},e.createElement(E.a,{canAdjustPlaybackSpeed:o,canRestrictSeek:c.forwardSeekRestricted,currentTime:u,labels:n,percentComplete:p,poster:h,prefersKeyboardNavigation:i,progressChanged:x(s),src:f})):null)))}}],[{key:"defaultProps",get:function(){return{lessonProgress:{currentTime:0,percentComplete:0}}}}]),n}(e.Component),x=p()(2,function(e,t){var n=t.currentTime,r=t.percentComplete;return Object(_.a)(Object(w.c)({id:e,currentTime:n,percentComplete:r}))})}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(31),i=n(15),o=n.n(i),a=(n(2447),n(84)),s=n(2),l=n.n(s),c=function(t){var n=t.childElements,r=t.labels,i=t.search,s=i.activeLessons,c=i.term,u=r.noResults;return e.createElement(a.CSSTransition,{classNames:"lesson-lists__list",key:"results",timeout:600},e.createElement(a.TransitionGroup,{className:"lesson-lists__list lesson-lists__list--results",component:"ol",role:"list",key:"results"},0===s.length?function(t){var n=t.noResults,r=t.searchTerm,i=l()("lesson-lists__item",{"visually-hidden":!(r&&r.length)});return e.createElement(a.CSSTransition,{classNames:"lesson-lists__item",exit:!1,key:"no-results",timeout:400},e.createElement("li",{className:i},e.createElement("span",{className:"lesson-lists__no-results"},n,' "',r,'"')))}({noResults:u,searchTerm:c}):function(t){var n=t.activeLessons,r=t.childElements;return o()(r).call(r,function(t){return e.createElement(a.CSSTransition,{classNames:"lesson-lists__item",exit:!1,key:t.key,timeout:100*n.length+300},t)})}({activeLessons:s,childElements:n})))},u=function(t){var n=t.children,i=t.index,o=t.isSearch?{role:"listitem"}:{};return e.createElement("li",Object(r.a)({className:"lesson-lists__item",style:{transitionDelay:"".concat(.1*i,"s")}},o),n)};t.a=function(t){var n,r=t.children,i=t.labels,s=t.search,l=s.active,d=o()(n=e.Children).call(n,r,function(t,n){return e.createElement(u,{index:n,isSearch:l},t)}),f=l?"Search Results":"Course Outline";return e.createElement(a.TransitionGroup,{"aria-label":f,className:"lesson-lists",component:"nav"},l?c({childElements:d,labels:i,search:s}):function(t){return e.createElement(a.CSSTransition,{classNames:"lesson-lists__list",key:"list",timeout:600},e.createElement("ol",{className:"lesson-lists__list",key:"list"},t))}(d))}}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(13),u=n(12),d=(n(2448),n(119)),f=n(201),p=n(2),h=n.n(p),m=n(1),g=n.n(m),v=n(328),y=n.n(v),b=n(52),_=n(405),w=n(22),E=function(t){function n(e){var t,r;return Object(o.a)(this,n),(r=Object(s.a)(this,Object(l.a)(n).call(this,e))).onClick=i()(t=r.onClick).call(t,Object(c.a)(r)),r}return Object(u.a)(n,t),Object(a.a)(n,[{key:"isActive",value:function(){return this.props.match.url==="/lessons/".concat(this.props.id)}},{key:"componentWillMount",value:function(){var e=this.isActive();this.setState({visited:e})}},{key:"onClick",value:function(e){var t=this.props,n=t.focusLessonContent,r=t.id,i=t.onClick,o=t.onMobileActiveClick;if(this.isActive()){if(e.preventDefault(),!o)return n(),!1;o()}this.setState({visited:!0}),i(r)}},{key:"render",value:function(){var t=this.props,n=t.id,r=t.icon,i=t.labels,o=t.resultsCount,a=t.title,s=i.result,l=i.results,c=h()("lesson-link","lesson-search-link",{"lesson-link--visited lesson-search-link--visited":this.state.visited}),u=1===o?s:l,f=[e.createElement("div",{className:"lesson-link__icon lesson-search-link__icon",key:"icon-".concat(n)},e.createElement(_.a,{icon:r})),e.createElement("div",{className:"lesson-link__name lesson-search-link__name brand--ui",key:"name-".concat(n)},e.createElement(b.a,{value:y()(a,{length:60})}),e.createElement("span",{className:"lesson-search-link__results"},o," ",u))],p=this.props.allowTabNavigation,m=Object(w.l)(p);return e.createElement(d.b,{activeClassName:"lesson-link--active lesson-search-link--active brand--beforeBackground","aria-hidden":!p,className:c,onClick:this.onClick,tabIndex:m,to:"/lessons/"+encodeURIComponent(n)},f)}}],[{key:"propTypes",get:function(){return{focusLessonContent:g.a.func.isRequired,icon:g.a.string.isRequired,id:g.a.any.isRequired,onClick:g.a.func.isRequired,resultsCount:g.a.number.isRequired,title:g.a.string.isRequired,type:g.a.string.isRequired}}}]),n}(e.Component);t.a=Object(f.e)(E)}).call(this,n(0))},function(e,t,n){"use strict";(function(e){var r=n(15),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2452),n(2)),d=n.n(u),f=function(t){function n(){return Object(o.a)(this,n),Object(s.a)(this,Object(l.a)(n).apply(this,arguments))}return Object(c.a)(n,t),Object(a.a)(n,[{key:"render",value:function(){var t,n=this,r=this.props,o=r.children,a=r.isActive,s=r.sectionId,l=r.sectionLabel,c=d()("section-lists",{"section-lists__closed":!a}),u=this.ol?this.ol.offsetHeight:null;return e.createElement("div",{"aria-hidden":!a,"aria-label":l,className:c,id:s,style:{maxHeight:u}},e.createElement("ol",{ref:function(e){return n.ol=e}},i()(t=e.Children).call(t,o,function(t){return e.createElement("li",{className:"lesson-lists__item"},t)})))}}]),n}(e.Component);t.a=f}).call(this,n(0))},function(e,t,n){"use strict";(function(e){n(2454);var r=n(257),i=n.n(r),o=n(260);t.a=function(){return e.createElement(i.a,{title:Object(o.a)()},e.createElement("div",null,e.createElement("div",{className:"not-found"},e.createElement("div",{className:"not-found__copy"},e.createElement("h1",{className:"not-found__copy--heading"},"Hmm..."),e.createElement("div",null,"We can't seem to find the page you're looking for.")))))}}).call(this,n(0))},function(e,t,n){var r=n(351),i=n(852),o=n(60);e.exports=o(4,function(e,t,n,o){return r(e("function"==typeof t?i(t):t),n,o)})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var r=n(3),i=n.n(r),o=n(10),a=n(7),s=n(11),l=n(9),c=n(12),u=(n(2460),n(2)),d=n.n(u),f=n(1),p=n.n(f),h=function(t){function n(e){var t;return Object(o.a)(this,n),(t=Object(s.a)(this,Object(l.a)(n).call(this,e))).state={failAttempt:!1,shouldShake:!1},t}return Object(c.a)(n,t),Object(a.a)(n,[{key:"componentDidMount",value:function(){var e;this.dialog.addEventListener("animationend",i()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"componentWillReceiveProps",value:function(e){var t=e.failAttempt,n=this.state.shouldShake;this.setState({failAttempt:t&&n})}},{key:"componentWillUnmount",value:function(){var e;this.dialog.removeEventListener("animationend",i()(e=this.handleRemoveAnimationEnd).call(e,this))}},{key:"handleRemoveAnimationEnd",value:function(){this.setState({failAttempt:!1,shouldShake:!1})}},{key:"onSubmitPassword",value:function(e){var t=this;e.preventDefault();var n=this.props.onSubmit;this.setState({shouldShake:!0},function(){n(t.refs.password)})}},{key:"render",value:function(){var t,n=this,r=this.state.failAttempt,o=d()("brand--border","share-password-dialog",{"fail-password":r});return e.createElement("div",{className:o,ref:function(e){n.dialog=e}},e.createElement("h1",{className:"heading"},"Enter Password"),e.createElement("p",{className:"instructions"},"You need a password to view this course. If you don’t know it, ask the person who shared this with you."),e.createElement("form",{onSubmit:i()(t=this.onSubmitPassword).call(t,this)},e.createElement("label",{htmlFor:"share-password",className:"label"},"password"),e.createElement("input",{id:"share-password",ref:"password",type:"password",className:"input"}),e.createElement("div",{className:"dialog__toolbar"},e.createElement("input",{type:"submit",className:"button brand--background",value:"View"}))))}}],[{key:"propTypes",get:function(){return{onSubmit:p.a.func.isRequired,failAttempt:p.a.bool.isRequired}}}]),n}(e.Component)}).call(this,n(0))},function(e,t,n){"use strict";e.exports=n(2461)},function(e,t,n){t.hot=function(e){return e}},function(e,t,n){"use strict";var r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,_,w,E,k,x,S,T,C=n(234),O=n(5),A=n(20),N=n(35),I=n.n(N),M=n(17),j=n.n(M),L=n(77),P=n.n(L),D=n(28),R=n.n(D),F=R()("rise-api/people/"),B=F("SEARCH_USERS"),U=I()(P()("profile")),q=Object(O.a)({},B,Object(A.onSuccess)(function(e,t){var n=t.role,r=t.data;return j()(e,Object(O.a)({},n,U(r)))})),z=Object(A.handle)({admin:[],author:[]},q),H=n(108),W=n.n(H),$=n(43),Y=n.n($),V=n(19),K=n.n(V),G=n(79),X=n.n(G),Q=n(55),Z=n.n(Q),J=n(61),ee=n.n(J),te=n(42),ne=n.n(te),re=n(53),ie=n.n(re),oe=n(166),ae=n.n(oe),se=n(18),le=n.n(se),ce=n(177),ue=n.n(ce),de=n(138),fe=n.n(de),pe=n(48),he=n.n(pe),me=n(581),ge=n.n(me),ve=n(8),ye=n.n(ve),be=n(21),_e=he()(fe.a),we=function(e){return function(t,n){return Object(be.c)(t,Z()(le()(ge()(Array,e)),ue()(e,n),K()(e,n)))}},Ee=function(e){return function(t,n){return Object(be.c)(n,ye()(e),_e(t))}},ke=n(411),xe=R()("rise/blockTemplateUI/"),Se=xe("HIDE_BLOCK_SELECTION_UI"),Te=xe("HIDE_DELETE_BLOCK_TEMPLATE_DIALOG"),Ce=xe("HIDE_EDIT_BLOCK_TEMPLATE_DIALOG"),Oe=xe("RESET_STATE"),Ae=xe("SET_AUTHOR_QUERY"),Ne=xe("SET_QUERY"),Ie=xe("SET_SELECTED_AUTHOR"),Me=xe("SET_SELECTED_INDEX"),je=xe("SET_SORT_TYPE"),Le=xe("SHOW_BLOCK_SELECTION_UI"),Pe=xe("SHOW_DELETE_BLOCK_TEMPLATE_DIALOG"),De=xe("SHOW_EDIT_BLOCK_TEMPLATE_DIALOG"),Re=xe("TOGGLE_BLOCK_SELECTED"),Fe={authorQuery:"",editBlockTemplate:null,query:"",selectedAuthorId:null,selectedAuthorName:null,selectedIndex:-1},Be=Y()(Fe,{selectedBlockIds:[],showBlockSelection:!1,showDeleteDialog:!1,showEditDialog:!1,sortType:Object(ke.a)("blockTemplateSortPreference")||"Recent"}),Ue=Y()({showBlockSelection:!1,showEditDialog:!1}),qe=Y()({selectedBlockIds:[],showBlockSelection:!0}),ze=(r={},Object(O.a)(r,Se,Y()({showBlockSelection:!1})),Object(O.a)(r,Te,Y()({showDeleteDialog:!1})),Object(O.a)(r,Ce,Ue),Object(O.a)(r,Oe,Y()(Fe)),Object(O.a)(r,Ae,we("authorQuery")),Object(O.a)(r,Ne,we("query")),Object(O.a)(r,Ie,function(e,t){return j()(e,ne()(["selectedAuthorId","selectedAuthorName"],t))}),Object(O.a)(r,Me,we("selectedIndex")),Object(O.a)(r,je,function(e,t){var n;return n=t,Object(ke.b)("blockTemplateSortPreference",n),K()("sortType",t,e)}),Object(O.a)(r,Le,qe),Object(O.a)(r,Pe,function(e,t){return j()(e,{showDeleteDialog:!0,editBlockTemplate:t})}),Object(O.a)(r,De,function(e,t){return j()(e,{showEditDialog:!0,editBlockTemplate:t})}),Object(O.a)(r,Re,function(e,t){return ie()(ee()("selectedBlockIds"),Z()(X()(t),ae()([t]),W()(t)),e)}),r),He=Object(A.handle)(Be,ze),We=n(45),$e=n.n(We),Ye=n(14),Ve=n.n(Ye),Ke=n(112),Ge=n.n(Ke),Xe=n(32),Qe=n.n(Xe),Ze=R()("rise/blockTemplates/"),Je=Ze("CREATE_BLOCK_TEMPLATE"),et=Ze("CREATE_BLOCK_TEMPLATE_SUCCESS"),tt=Ze("DELETE_BLOCK_TEMPLATE"),nt=Ze("FETCH_BLOCK_TEMPLATES"),rt=Ze("PROCESS_BLOCK_TEMPLATE"),it=Ze("UPDATE_BLOCK_TEMPLATE"),ot=function(e,t){return ie()(ee()("templates"),I()(Qe()(Ve()("id",t.id),Y()(t))),e)},at=(i={},Object(O.a)(i,Je,Object(A.onSuccess)($e.a)),Object(O.a)(i,et,Object(A.onSuccess)(ot)),Object(O.a)(i,tt,Object(A.onSuccess)(function(e,t){return ie()(ee()("templates"),Ge()(Ve()("id",t)),e)})),Object(O.a)(i,nt,Object(A.onSuccess)(we("templates"))),Object(O.a)(i,rt,Object(A.onSuccess)(ot)),Object(O.a)(i,it,Object(A.onSuccess)(ot)),i),st=Object(A.handle)({templates:null},at),lt=R()("rise/businessContent/"),ct=(lt("EXPORT_BUSINESS_CONTENT_LESSON"),lt("HIDE_EXPORT_DIALOG")),ut=(lt("IMPORT_BUSINESS_CONTENT_LESSON"),lt("IMPORT_BUSINESS_CONTENT_LESSON_UPDATE")),dt=lt("RESET_STATE"),ft=lt("SET_LOADING_STATE"),pt=lt("SHOW_EXPORT_DIALOG"),ht=(lt("FETCH_PREVIEW_DATA"),{showExportDialog:!1,loading:!1}),mt=(o={},Object(O.a)(o,ct,le()(ht)),Object(O.a)(o,dt,le()(ht)),Object(O.a)(o,ft,Y()({loading:!0})),Object(O.a)(o,pt,function(e,t){var n=t.courseId,r=t.lessonId;return Y()({showExportDialog:!0,courseId:n,lessonId:r},ht)}),o),gt=Object(A.handle)(ht,mt),vt=R()("rise/captionsUI/"),yt=vt("SHOW_CAPTIONS_UI"),bt=vt("HIDE_CAPTIONS_UI"),_t=(a={},Object(O.a)(a,yt,function(e,t){var n=t.lessonId,r=t.blockId,i=t.itemId;return Y()({showDialog:!0,lessonId:n,blockId:r,itemId:i},e)}),Object(O.a)(a,bt,Y()({showDialog:!1})),a),wt=Object(A.handle)({showDialog:!1},_t),Et=n(1178),kt=n.n(Et),xt=R()("rise-api/categories/"),St=xt("FETCH_CATEGORIES"),Tt=Object(O.a)({},St,Object(A.onSuccess)(kt()(1))),Ct=Object(A.handle)({},Tt),Ot=n(82),At=n.n(Ot),Nt=R()("rise/collaboratorRoles/"),It=Nt("FETCH_COLLABORATOR_ROLES"),Mt=function(e,t){return K()(t.id,t,e)},jt=Object(O.a)({},It,Object(A.onSuccess)(function(e,t){var n=t.roleTypes;return At()(Mt,{},n)})),Lt=Object(A.handle)({},jt),Pt=n(75),Dt=n.n(Pt),Rt=n(132),Ft=n.n(Rt),Bt=n(114),Ut=n(217),qt=function(e,t){return K()(t.author,t,e)},zt=(s={},Object(O.a)(s,Ut.a,Object(A.onSuccess)(qt)),Object(O.a)(s,Ut.b,Object(A.onSuccess)(Ee("author"))),Object(O.a)(s,Bt.b,Object(A.onSuccess)(function(e,t){var n=t.collaborators;return At()(qt,{},n)})),Object(O.a)(s,Ut.c,Object(A.onSuccess)(function(e,t){var n=t.author,r=t.roleId;return Ft()(Dt()([n,"roleId"]),r,e)})),s),Ht=Object(A.handle)({},zt),Wt=R()("rise/collaboratorsUI/"),$t=Wt("CHOOSE_AUTHOR"),Yt=Wt("PENDING"),Vt=Wt("SET_EMAIL"),Kt=Wt("SHOW_CONFIRM"),Gt=Wt("SHOW_TRANSFER"),Xt=Ve()("status",409),Qt=(l={},Object(O.a)(l,$t,we("transferAuthor")),Object(O.a)(l,Ut.a,function(e,t,n){return n?j()(e,{error:Xt(t)?"This user is already a collaborator.":"This user does not have a Team Account.",pending:!1}):j()(e,{email:"",error:"",pending:!1})}),Object(O.a)(l,Ut.b,Object(A.onSuccess)(K()("showConfirmId",null))),Object(O.a)(l,Yt,K()("pending",!0)),Object(O.a)(l,Vt,function(e,t){return j()(e,{email:t,error:""})}),Object(O.a)(l,Kt,we("showConfirmId")),Object(O.a)(l,Gt,we("showTransfer")),l),Zt=Object(A.handle)({email:"",error:"",pending:!1,showConfirmId:null,showTransfer:!1,transferAuthor:null},Qt),Jt=R()("rise/connection/"),en=Jt("SET_STATUS"),tn=Object(O.a)({},en,Object(A.onSuccess)(j.a)),nn=Object(A.handle)({status:null},tn),rn=R()("rise/contentLibrary/"),on=rn("CLOSE_LIBRARY"),an=rn("OPEN_LIBRARY"),sn=(c={},Object(O.a)(c,on,K()("isVisible",!1)),Object(O.a)(c,an,j.a),c),ln=Object(A.handle)({blockId:"",existingMediaType:"",isVisible:!1,itemId:"",lessonId:"",refs:""},sn),cn=R()("rise/copyLessonUI/"),un=cn("CLEAR_SELECTED_FOLDER"),dn=cn("HIDE_COPY_LESSON_DIALOG"),fn=cn("SET_FOLDER_MENU_VISIBLE"),pn=cn("SET_SEARCH_QUERY"),hn=cn("SET_SELECTED_COURSE_INDEX"),mn=cn("SET_SELECTED_FOLDER"),gn=cn("SHOW_COPY_LESSON_DIALOG"),vn={query:"",selectedCourseIndex:0,selectedUsingKeyboard:!1,show:!1},yn=(u={},Object(O.a)(u,un,fe()("folder")),Object(O.a)(u,dn,le()(vn)),Object(O.a)(u,fn,we("folderMenuVisible")),Object(O.a)(u,pn,function(e,t){return j()(e,{query:t,selectedCourseIndex:0,selectedUsingKeyboard:!1})}),Object(O.a)(u,hn,j.a),Object(O.a)(u,mn,we("folder")),Object(O.a)(u,gn,function(e,t){return j()(e,{lesson:t,show:!0})}),u),bn=Object(A.handle)(vn,yn),_n=n(66),wn=n(6),En=n.n(wn),kn=n(230),xn=n.n(kn),Sn=n(109),Tn=n.n(Sn),Cn=n(170),On=n(101),An=function(e,t){var n=t.course;return j()(e,n)},Nn=function(e,t,n){var r,i=t.updatedAt,o=t.value,a=xn()("/",t.id),s=Object(_n.a)(a,3),l=s[0],c=s[1],u=s[2],d="courses"===l&&c===e.id,f=Z()(le()(n),Y()({updatedAt:i}),Y()((r={},Object(O.a)(r,u,o),Object(O.a)(r,"updatedAt",i),r)));return d?f(e):e},In=["bodyTypefaceId","headingTypefaceId","typefaces","updatedAt"],Mn=(d={},Object(O.a)(d,On.c,Object(A.onSuccess)(An)),Object(O.a)(d,On.d,An),Object(O.a)(d,On.e,Object(A.onSuccess)(An)),Object(O.a)(d,Bt.b,function(e,t,n){return n?t:t.course}),Object(O.a)(d,Bt.c,Object(A.onSuccess)(An)),Object(O.a)(d,Cn.a,Object(A.onSuccess)(Nn)),Object(O.a)(d,Cn.b,function(e,t,n){return Object(be.c)(t,Z()(le()(n),En()(le()(e),Tn()(console.error)),function(t){return Nn(e,t,!0)}))}),Object(O.a)(d,Bt.d,Object(A.onSuccess)(function(e,t){var n=t.author,r=t.courseId;return e.id===r?K()("author",n,e):e})),Object(O.a)(d,Bt.e,Object(A.onSuccess)(j.a)),Object(O.a)(d,Bt.f,function(e,t,n){return Object(be.c)(t,Z()(le()(n),En()(le()(e),Tn()(console.error)),En()(j()(e),ne()(In))))}),Object(O.a)(d,Bt.g,Object(A.onSuccess)(function(e,t){var n=t.lessons;return j()(e,{lessons:n})})),d),jn=Object(A.handle)({},Mn),Ln=R()("rise/courseCopies/"),Pn=Ln("FETCH_COURSE_COPIES"),Dn=Object(O.a)({},Pn,Object(A.onSuccess)(function(e,t){return j()(e,{courses:t,loaded:!0})})),Rn=Object(A.handle)({courses:{},loaded:!1},Dn),Fn=R()("rise/courseTheme/"),Bn=Fn("SET_CANCEL"),Un=Object(O.a)({},Bn,we("cancel")),qn=Object(A.handle)({cancel:Function.prototype},Un),zn=n(171),Hn=n.n(zn),Wn=n(44),$n=n.n(Wn),Yn=n(207),Vn=n.n(Yn),Kn=n(150),Gn=n.n(Kn),Xn=n(490),Qn=n.n(Xn),Zn=n(33),Jn=n.n(Zn),er=n(36),tr=n.n(er),nr=n(610),rr=n.n(nr),ir=n(275),or=n.n(ir),ar=n(23),sr=n.n(ar),lr=n(232),cr=n.n(lr),ur=n(76),dr=n.n(ur),fr=n(181),pr=n.n(fr),hr=R()("rise-api/courses/"),mr=(hr("CREATE_COURSE_REVIEW_VERSION"),hr("CREATE_COURSE_REVIEW_VERSION_ERROR")),gr=hr("CREATE_COURSE_REVIEW_VERSION_SUCCESS"),vr=hr("GET_PUBLISH_SETTINGS"),yr=(hr("SUBMIT_AND_PUBLISH_COURSE"),hr("SUBMIT_AND_PUBLISH_COURSE_ERROR")),br=(hr("SUBMIT_COURSE"),hr("SUBMIT_COURSE_AND_VERSION"),hr("SUBMIT_COURSE_ERROR")),_r=hr("SUBMIT_COURSE_SUCCESS"),wr=(hr("SUBMIT_COURSE_UPDATE"),hr("SUBMIT_COURSE_AND_VERSION_UPDATE"),hr("UPDATE_VERSION"),hr("UNDO_COURSE_SUBMISSION")),Er=R()("rise/courseUI/"),kr=Er("ADD_CATEGORY_TO_COURSE"),xr=Er("HIDE_ALT_DIALOG"),Sr=Er("ON_CATEGORY_SEARCH"),Tr=Er("SUBMIT_AND_PUBLISH_COURSE_PROCESSING"),Cr=Er("REMOVE_CATEGORY_FROM_COURSE"),Or=Er("RESET_REVIEW_STATUS"),Ar=Er("SET_ADD_CONTENT_DIALOG"),Nr=Er("SET_COMPLETION_PERCENTAGE"),Ir=Er("SET_LESSON_OPTIONS_MENU"),Mr=Er("SET_QUIZ_RESULT"),jr=Er("SET_TIME_TO_COMPLETE"),Lr=Er("SET_SETTING"),Pr=Er("SET_SETTINGS"),Dr=Er("SHOW_ALT_DIALOG"),Rr=Er("SUBMIT_COURSE_EDITING"),Fr=Er("SUBMIT_COURSE_PROCESSING"),Br=Er("TOGGLE_CUSTOM_FONTS_DIALOG"),Ur=Er("TOGGLE_TAKE_CONTROL_DIALOG"),qr=Er("UPDATE_ALT_DIALOG"),zr=Er("UPDATE_CUSTOM_FONTS_DIALOG"),Hr=Er("UPDATE_SUBMIT_COURSE_DIALOG"),Wr=(Er("UNDO_COURSE_SUBMISSION"),Er("UNDO_COURSE_SUBMISSION_PROCESSING")),$r=Er("RESET_UNDO_COURSE_SUBMISSION_PROCESSING"),Yr=Er("SET_NEW_SUBMISSION"),Vr=function(e,t){return Jn()(Object(O.a)({},t,Gn()(e)))},Kr={editing:"editing",publishError:"publishError",publishing:"publishing",submitting:"submitting",success:"success",error:"error"},Gr={altDialog:{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null},customFontsDialog:{show:!1,uploadView:!1},overview:{addContentId:null,optionsId:null},takeControlDialog:{lessonId:null,show:!1},submitCourse:(f={admin:null,categories:[],categorySearch:"",certificateDownload:!0,completion:!1,completionCelebration:!0,hasRequirement:!0,latestReviewVersionId:"",loading:!0,newSubmission:!1,note:null,quizResult:!1,reviewStatus:"settings",showTimeToComplete:!0,status:Kr.editing,timeToComplete:null},Object(O.a)(f,"trackingQuizId",null),Object(O.a)(f,"trackingCompletionPercentage",80),Object(O.a)(f,"undoSubmission",{loading:!1,status:Kr.editing,willBeNewSubmission:!1}),f)},Xr=we(["submitCourse","categorySearch"]),Qr=we(["overview","addContentId"]),Zr=we(["overview","optionsId"]),Jr=we(["submitCourse","trackingCompletionPercentage"]),ei=we(["submitCourse","trackingQuizId"]),ti=we(["submitCourse","timeToComplete"]),ni=function(e){return function(t){return null!==t[e]&&void 0!==t[e]}},ri=cr()(tr.a,"lastSubmittedAt"),ii=le()((p={newSubmission:!0},Object(O.a)(p,"trackingCompletionPercentage",80),Object(O.a)(p,"completion",!0),p)),oi=$n()([[tr.a,ii],[ri,Vn()(j.a,[ii,ne()(["courseId","latestReviewVersionId"])])],[dr.a,En()(Vr(null,"trackingQuizId"),Vr(80,"trackingCompletionPercentage"),Hn()("showTimeToComplete",ni("showTimeToComplete")),Hn()("certificateDownload",ni("certificateDownload")),Hn()("completionCelebration",ni("completionCelebration")),Hn()("hasRequirement",ni("hasRequirement")),Hn()("isPublic",ni("publicAt")),Qe()(ni("trackingCompletionPercentage"),K()("completion",!0)),Qe()(ni("trackingQuizId"),K()("quizResult",!0)))]]),ai=K()("altDialog",{blockId:null,itemId:null,lessonId:null,show:!1,text:"",type:null}),si=function(e){return rr()({submitCourse:{status:e}})},li=rr()({submitCourse:{newSubmission:!1,status:Kr.success}}),ci=rr()({submitCourse:{reviewStatus:"settings"}}),ui=Jn()({submitCourse:{undoSubmission:{loading:Qn.a,status:le()(Kr.success),willBeNewSubmission:dr.a}}}),di=pr()(2,function(e){return sr()(oi,P()("submitCourse"),or()(e),Jn()({submitCourse:{undoSubmission:{loading:Qn.a,status:le()(Kr.success)}}}))}),fi=Jn()({submitCourse:{undoSubmission:{status:le()(Kr.error),loading:Qn.a}}}),pi=Jn()({submitCourse:{undoSubmission:{loading:dr.a}}}),hi=Jn()({submitCourse:{undoSubmission:{status:le()(Kr.editing)}}}),mi=Jn()({submitCourse:{newSubmission:dr.a,undoSubmission:{willBeNewSubmission:Qn.a,status:le()(Kr.editing)}}}),gi=(h={},Object(O.a)(h,Yr,mi),Object(O.a)(h,kr,function(e,t){return Jn()({submitCourse:{categories:W()(t)}},e)}),Object(O.a)(h,vr,Object(A.onSuccess)(function(e,t){return sr()(oi,Y()({loading:!1,timeToComplete:null}),P()("submitCourse"),or()(e))(t)})),Object(O.a)(h,xr,ai),Object(O.a)(h,Sr,Xr),Object(O.a)(h,Tr,si(Kr.publishing)),Object(O.a)(h,Cr,function(e,t){return Jn()({submitCourse:{categories:Ge()(Ve()("id",t))}},e)}),Object(O.a)(h,Or,ci),Object(O.a)(h,Ar,Qr),Object(O.a)(h,Nr,Jr),Object(O.a)(h,Ir,Zr),Object(O.a)(h,Mr,ei),Object(O.a)(h,Lr,function(e,t){var n=t.setting,r=t.value;return or()(e,{submitCourse:Object(O.a)({},n,r)})}),Object(O.a)(h,Pr,function(e,t){return or()(e,{submitCourse:t})}),Object(O.a)(h,jr,ti),Object(O.a)(h,Dr,function(e,t){return j()(e,{altDialog:j()(t,{show:!0})})}),Object(O.a)(h,yr,si(Kr.errorPublishing)),Object(O.a)(h,Rr,si(Kr.editing)),Object(O.a)(h,br,si(Kr.error)),Object(O.a)(h,Fr,si(Kr.submitting)),Object(O.a)(h,_r,li),Object(O.a)(h,gr,function(e,t){return or()(e,{submitCourse:{latestReviewVersionId:t.versionId,reviewStatus:Kr.success}})}),Object(O.a)(h,mr,function(e){return or()(e,{submitCourse:{reviewStatus:Kr.error}})}),Object(O.a)(h,Br,function(e,t){return j()(e,{customFontsDialog:j()(t,{show:!e.customFontsDialog.show})})}),Object(O.a)(h,Ur,function(e,t){return j()(e,{takeControlDialog:j()(t,{show:!e.takeControlDialog.show})})}),Object(O.a)(h,qr,function(e,t){return j()(e,{altDialog:j()(e.altDialog,t)})}),Object(O.a)(h,zr,function(e,t){return j()(e,{customFontsDialog:j()(e.customFontsDialog,t)})}),Object(O.a)(h,Hr,function(e,t){return or()(e,{submitCourse:t})}),Object(O.a)(h,wr,function(e,t,n){return n?fi(e):function(e,t){return tr()(t)?ui(e):di(e,t)}(e,t)}),Object(O.a)(h,$r,hi),Object(O.a)(h,Wr,pi),h),vi=Object(A.handle)(Gr,gi),yi=n(71),bi=R()("rise/cropUI/"),_i=bi("HIDE_CROP_DIALOG"),wi=bi("SHOW_CROP_DIALOG"),Ei=(m={},Object(O.a)(m,_i,Y()({showDialog:!1})),Object(O.a)(m,wi,function(e,t){return Y()(Object(yi.a)({showDialog:!0},t),e)}),m),ki=Object(A.handle)({error:!1,image:null,itemId:null,lessonId:null,showDialog:!1,refs:null},Ei),xi=n(414),Si=(g={},Object(O.a)(g,xi.a,Y()({showDialog:!1})),Object(O.a)(g,xi.b,function(e,t){var n=t.action,r=t.tryAgain;return Y()({action:n,showDialog:!0,tryAgain:r},e)}),g),Ti=Object(A.handle)({action:null,showDialog:!1,tryAgain:!1},Si),Ci=n(39),Oi=n.n(Ci),Ai=n(115),Ni=n.n(Ai),Ii=n(235),Mi=n.n(Ii),ji=n(397),Li=n.n(ji),Pi=n(41),Di=n.n(Pi),Ri=n(725),Fi=n.n(Ri),Bi=n(152),Ui=R()("rise/externalItems/"),qi=Ui("FETCH_EXTERNAL_ITEMS"),zi=Ui("REMOVE_EXTERNAL_ITEM"),Hi=Ui("UPDATE_EXTERNAL_ITEM"),Wi={peek:"video",preso:"video",replay:"video",video:"video",rise:"rise",storyline:"storyline"},$i=(v={},Object(O.a)(v,qi,Object(A.onSuccess)(function(e,t){return Mi()([e,{fetched:!0},t])})),Object(O.a)(v,zi,Object(A.onSuccess)(function(e,t){var n=t.type,r=t.itemId;return Object(be.c)(e[n],Object(Bi.b)(r),P()(n),j()(e))})),Object(O.a)(v,Hi,Object(A.onSuccess)(function(e,t){return Object(be.c)(e,Di()([],Wi[t.product]),Z()(Oi()(Ve()("id",t.id)),function(e){return function(t){return Object(be.c)(t,Ni()(Ve()("id",e.id)),function(n){return Fi()(n,e,t)})}}(t),Li()(t)),P()(Wi[t.product]),j()(e))})),v),Yi=Object(A.handle)({fetched:!1,rise:[],storyline:[],video:[]},$i),Vi=R()("rise/labelSets/"),Ki=Vi("CREATE_LABEL_SET"),Gi=Vi("DELETE_LABEL_SET"),Xi=Vi("IMPORT_LABEL_SET"),Qi=Vi("UPDATE_LABEL_SET"),Zi=function(e,t){return K()(t.id,t,e)},Ji=(y={},Object(O.a)(y,Ki,Object(A.onSuccess)(Zi)),Object(O.a)(y,Gi,Object(A.onSuccess)(Ee("id"))),Object(O.a)(y,Bt.b,Object(A.onSuccess)(function(e,t){var n=t.labelSets;return At()(Zi,{},n)})),Object(O.a)(y,Xi,Object(A.onSuccess)(Zi)),Object(O.a)(y,Qi,Object(A.onSuccess)(function(e,t){return Jn()(Object(O.a)({},t.id,Y()(t)),e)})),y),eo=Object(A.handle)({},Ji),to=n(46),no=n.n(to),ro=n(62),io=n.n(ro),oo=n(197),ao=n.n(oo),so=n(67),lo=n.n(so),co=sr()(no()(ye()("pending")),ao()("id"),lo.a),uo=ne()(["duration","lastUpdatedBy","updatedAt"]),fo=function(e,t){return K()(t.id,t,e)},po=function(e,t){var n=t.lesson;return Object(be.c)(e,io()(co(e)),fe()(n.id))},ho=function(e,t){var n=t.lessons;return At()(fo,{},n)},mo=function(e,t){return Jn()(Object(O.a)({},t.id,Y()(t)),e)},go=(b={},Object(O.a)(b,On.a,Object(A.onSuccess)($e.a)),Object(O.a)(b,On.b,mo),Object(O.a)(b,On.c,Object(A.onSuccess)(function(e,t){var n=t.lesson;return Object(be.c)(e,io()(co(e)),K()(n.id,n))})),Object(O.a)(b,On.d,function(e,t){var n=t.lesson;return fo(e,n)}),Object(O.a)(b,On.e,Object(A.onSuccess)(po)),Object(O.a)(b,On.f,mo),Object(O.a)(b,On.g,Object(A.onSuccess)(po)),Object(O.a)(b,Bt.b,Object(A.onSuccess)(ho)),Object(O.a)(b,ut,function(e,t){var n=t.lesson;return mo(e,n)}),Object(O.a)(b,Bt.c,Object(A.onSuccess)(ho)),Object(O.a)(b,On.i,mo),Object(O.a)(b,Cn.b,function(e,t,n){if(n)return console.error(t),e;var r=xn()("/",t.id),i=Object(_n.a)(r,2),o=i[0],a=i[1],s=t.updatedAt;return"lessons"===o?Jn()(Object(O.a)({},a,Y()({updatedAt:s})),e):e}),Object(O.a)(b,Cn.a,Object(A.onSuccess)(function(e,t){var n,r=xn()("/",t.id),i=Object(_n.a)(r,3),o=i[0],a=i[1],s=i[2],l=t.updatedAt,c=t.value;return"lessons"===o?Jn()(Object(O.a)({},a,Y()((n={},Object(O.a)(n,s,c),Object(O.a)(n,"updatedAt",l),n))),e):e})),Object(O.a)(b,On.j,Object(A.onSuccess)(ho)),Object(O.a)(b,On.k,Object(A.onSuccess)(mo)),Object(O.a)(b,On.l,function(e,t,n){return Object(be.c)(e,Z()(le()(n),Tn()(function(){return console.error(n)}),Jn()(Object(O.a)({},t.id,Y()(uo(t))))))}),b),vo=Object(A.handle)({},go),yo=n(482),bo=ne()(["author","courseId","id","session","ttl","updatedAt"]),_o=function(e,t){return K()(t.id,bo(t),e)},wo=(_={},Object(O.a)(_,yo.a,Object(A.onSuccess)(Ee("id"))),Object(O.a)(_,Bt.b,Object(A.onSuccess)(function(e,t){var n=t.locks;return At()(_o,{},n)})),Object(O.a)(_,Cn.a,Object(A.onSuccess)(_o)),Object(O.a)(_,Cn.b,Object(A.onSuccess)(_o)),Object(O.a)(_,yo.b,Object(A.onSuccess)(_o)),_),Eo=Object(A.handle)({},wo),ko=R()("rise/media/")("CREATE_MEDIA"),xo=function(e,t){return K()(t.id,t,e)},So=(w={},Object(O.a)(w,ko,Object(A.onSuccess)(xo)),Object(O.a)(w,Bt.b,Object(A.onSuccess)(function(e,t){var n=t.media;return At()(xo,{},n)})),w),To=Object(A.handle)({},So),Co=n(268),Oo=n.n(Co),Ao=n(416),No=(E={},Object(O.a)(E,Ao.a,le()(null)),Object(O.a)(E,Ao.b,function(e,t){return K()("key","notify-".concat(Oo()()),t)}),E),Io=Object(A.handle)(null,No),Mo=n(417),jo=(k={},Object(O.a)(k,Mo.a,K()("isVisible",!1)),Object(O.a)(k,Mo.b,j.a),k),Lo=Object(A.handle)({isVisible:!1},jo),Po=R()("rise/time/")("SYNC_CLOCK"),Do=Object(O.a)({},Po,function(e,t){return K()("delta",t-Oo()()+2e3,e)}),Ro=Object(A.handle)({delta:0},Do),Fo=R()("rise/typefaces/"),Bo=Fo("CREATE_TYPEFACE"),Uo=Fo("DELETE_TYPEFACE"),qo=Fo("FETCH_TYPEFACES"),zo=Fo("UPDATE_TYPEFACE"),Ho=function(e,t){return K()(t.id,t,e)},Wo=function(e,t){return K()(t.id,Jn()({fonts:At()(Ho,{})},t),e)},$o=(x={},Object(O.a)(x,Bo,Object(A.onSuccess)(Wo)),Object(O.a)(x,Uo,Object(A.onSuccess)(Ee("id"))),Object(O.a)(x,qo,Object(A.onSuccess)(function(e,t){var n=t.typefaces;return At()(Wo,{},n)})),Object(O.a)(x,zo,Object(A.onSuccess)(Wo)),x),Yo=Object(A.handle)({},$o),Vo=n(92),Ko={progress:0,status:"uploading"},Go=K()("status"),Xo=function(e,t){var n=t.jobId,r=t.uploadId;return K()(r,{id:r,jobId:n,status:"processing"},e)},Qo=(S={},Object(O.a)(S,Vo.b,function(e,t){var n=t.id;return Jn()(Object(O.a)({},n,Go("canceled")),e)}),Object(O.a)(S,Vo.d,he()(fe.a)),Object(O.a)(S,Vo.e,function(e,t){var n=t.id;return K()(n,{id:n,progress:100,status:"cropping"},e)}),Object(O.a)(S,Vo.g,function(e,t){var n=t.id;return Jn()(Object(O.a)({},n,Go("crushing")),e)}),Object(O.a)(S,Vo.i,function(e,t){return Jn()(Object(O.a)({},t.id,En()(Y()(t),Go("complete"))),e)}),Object(O.a)(S,Vo.j,function(e,t){var n=t.data;return K()(n.id,{data:n,id:n.id,status:"errored"},e)}),Object(O.a)(S,Vo.l,function(e,t){var n=t.id;return Jn()(Object(O.a)({},n,Go("processing")),e)}),Object(O.a)(S,Vo.m,function(e,t){return Object(be.c)(t,no()(ye()("uploadId")),At()(Xo,e))}),Object(O.a)(S,Vo.p,function(e,t){var n=t.id,r=t.mediaType;return K()(n,Y()({id:n,mediaType:r},Ko),e)}),Object(O.a)(S,Vo.q,Object(A.onSuccess)(function(e,t){var n=t.id,r=t.jobId;return ue()([n,"jobId"],r,e)})),Object(O.a)(S,Vo.r,function(e,t,n){var r=t.id,i=t.data;return n?Jn()(Object(O.a)({},r,Y()({data:i,status:"errored"})),e):Jn()(Object(O.a)({},r,Y()(i)),e)}),S),Zo=Object(A.handle)(Ko,Qo),Jo=n(148),ea=R()("rise/user/"),ta=ea("GET_SESSION"),na=ea("GET_STATUS"),ra=ea("LOAD_PROFILE"),ia={author:null,features:{},profile:{},roles:Object(Jo.e)(),session:null,subscription:{}},oa=(T={},Object(O.a)(T,ta,function(e,t){var n=t.session;return K()("session",n,e)}),Object(O.a)(T,na,Object(A.onSuccess)(j.a)),Object(O.a)(T,ra,j.a),T),aa=Object(A.handle)(ia,oa);t.a=Object(C.c)({accounts:z,blockTemplateUI:He,blockTemplates:st,businessContent:gt,captionsUI:wt,categories:Ct,collaboratorRoles:Lt,collaborators:Ht,collaboratorsUI:Zt,connection:nn,contentLibrary:ln,copyLessonUI:bn,course:jn,courseCopies:Rn,courseTheme:qn,courseUI:vi,cropUI:ki,errorUI:Ti,externalItems:Yi,labelSets:eo,lessons:vo,locks:Eo,media:To,notification:Io,storyline:Lo,time:Ro,typefaces:Yo,uploads:Zo,user:aa})},function(e,t,n){"use strict";var r=n(15),i=n.n(r),o=n(20),a=n(108),s=n.n(a),l=n(177),c=n.n(l),u=n(171),d=n.n(u),f=n(6),p=n.n(f),h=n(28),m=n.n(h),g=n(79),v=n.n(g),y=n(33),b=n.n(y),_=n(45),w=n.n(_),E=n(55),k=n.n(E),x=n(267),S=n.n(x),T=n(35),C=n.n(T),O=n(17),A=n.n(O),N=n(62),I=n.n(N),M=n(26),j=n.n(M),L=n(42),P=n.n(L),D=n(23),R=n.n(D),F=n(8),B=n.n(F),U=n(14),q=n.n(U),z=n(412),H=n.n(z),W=n(32),$=n.n(W),Y=n(166),V=n.n(Y),K=(n(71),n(18),n(43),n(19)),G=n.n(K),X=(n(585),n(233),n(586),n(72),n(77)),Q=n.n(X),Z=(n(1163),n(41),n(109),n(181)),J=n.n(Z),ee=n(30),te=n.n(ee),ne=n(4),re=n.n(ne),ie=(n(297),n(207)),oe=n.n(ie),ae=n(48),se=n.n(ae),le=(n(36),n(25)),ce=n.n(le),ue=(n(395),n(86)),de=n.n(ue),fe=n(396),pe=n.n(fe),he=n(139),me=n.n(he),ge=(n(2),n(124)),ve=n.n(ge),ye=n(46),be=n.n(ye),_e=n(466),we=n.n(_e),Ee=n(480),ke=q()("status"),xe=we()(ke("uploading"),ke("processing")),Se=(ke("complete"),ke("cropping")),Te=ke("crushing"),Ce=ke("uploading"),Oe=ke("processing"),Ae=ke("errored"),Ne=(pe()([Se,Te,Ae,Oe,Ce]),p()(Ee.a,be()(xe))),Ie=(ve()(j()(["file","name"]),ce()("",["opts","filename"])),me()(Ee.a,Ne),n(127),n(1164),n(80));Ie.a.isSafari;var Me=n(21),je=(se()(m.a),se()(v.a),oe()(function(e,t){var n;return re()(n="".concat(e,"/")).call(n,t)},[function(e){var t;return te()(t=e.split("/")).call(t,0,-1).join("/")},function(e){var t;return encodeURIComponent(te()(t=e.split("/")).call(t,-1))}]),ce()("",["payload","message"]),de()(B()("courseId"),d()("courseId",j()(["course","id"])))),Le=de()(B()("lessonId"),d()("lessonId",j()(["lesson","id"]))),Pe=p()(function(e){var t,n=e.courseId,r=e.lessonId,i=e.refs;return i?re()(t="".concat(r,"-")).call(t,i):r||n},Le,je),De=(R()(de()(B()("id"),d()("id",Pe)),ve()(oe()(B.a,[B()("id"),B()("uploads")]),P()(["id"])),d()("isUploading",q()("status","uploading"))),n(91)),Re=n(92),Fe=(Object(o.action)(Re.d),Object(o.action)(Re.e),Object(o.action)(Re.g),Object(o.action)(Re.i)),Be=(Object(o.action)(Re.l),Object(o.action)(Re.m)),Ue=(Object(o.action)(Re.p),Object(o.action)(Re.r),J()(2,function(e){return p()(Object(o.action)(Re.j),function(e){return p()(Q()("data"),G()("message",e))}(e))}),n(107)),qe=function(e){var t=e.item;return e.locks[t.id]},ze=n(57),He=n(481);n.d(t,"a",function(){return tt});var We="".concat(Object(Ue.d)("IMAGES_URI"),"/f:png,w:1920,s:cover,q:65/"),$e="".concat(Object(Ue.d)("IMAGES_URI"),"/f:jpg,b:fff,w:100,h:100,s:cover/"),Ye=function(e){var t=e.payload;return function(e,n){return Object(Me.c)(n(),B()("course"),R()(P()(["id","jobs"]),b()({jobs:s()(t.jobId)}),He.b,e))}},Ve=R()(P()(["courseId","jobIb"]),De.a.send(Re.a)),Ke=function(e){return function(t,n){return Object(Me.c)(n(),B()("course"),P()(["id","jobs"]),b()({jobs:V()([e.jobId])}),He.b,t)}},Ge=(S()([Object(o.action)(Re.b),Ke,Ve]),p()(m()(We),B()("thumbnail"))),Xe=p()(m()($e),B()("thumbnail")),Qe=$()(q()("mediaType","video"),R()(d()("poster",Ge),d()("thumbnail",Xe))),Ze=I()(["courseId","done","jobId","lessonId","refs","state","uploadId"]),Je=R()(Qe,H()("mediaType","type"),H()("original","originalUrl"),d()("asset",Ze)),et=function(e){return function(t,n){var r,i=e.courseId,o=e.done,a=e.jobId,s=e.lessonId,l=e.uploadId,c=n().course.jobs,u={id:s||i},d=A()(n(),{item:u});o&&v()(a,c)&&!(qe(r=d)&&qe(r).session!==r.user.session)&&t([Object(ze.e)(Je(e)),Ke(e),Fe({id:l})])}},tt=$()(q()("type",Re.n),p()(et,B()("payload")));R()(j()(["payload","course"]),P()(["id","jobs"]),H()("id","courseId"),De.a.send(Re.c),C()(B()("payload")),C()(S()([Be,C()(et)]))),k()(j()(["data","skipProcess"]),function(e){var t=e.data,n=e.id;return function(e){return e([Object(ze.e)(Je(t)),Fe({id:n})])}},function(e){var t,n,r=e.id,o=e.data,a=e.opts;return i()(t=i()(n=De.a.send(Re.q,{courseId:a.courseId,existingMediaType:a.existingMediaType,hasRemovableMedia:a.hasRemovableMedia,itemId:a.itemId,key:encodeURIComponent(o.key),lessonId:a.lessonId,mediaType:o.mediaType,original:o.original,refs:a.refs,uploadId:r})).call(n,c()(["payload","id"],r))).call(t,S()([w.a,Ye]))})},function(e,t,n){"use strict";var r=n(71),i=n(262),o=n(5),a=n(17),s=n.n(a),l=n(64),c=Object(l.d)({},Object(o.a)({},i.a,function(e,t){var n=t.labelSet;return s()(e,n)})),u=n(65),d=n(28),f=n.n(d),p=n(109),h=n.n(p),m=n(37),g=n.n(m),v=n(15),y=n.n(v),b=n(96),_=n.n(b),w=n(4),E=n.n(w),k=n(6),x=n.n(k),S=n(48),T=n.n(S),C=n(208),O=n.n(C),A=n(106),N=n.n(A),I=n(35),M=n.n(I),j=(n(67),n(1147)),L=n.n(j),P=(n(1148),n(29)),D=(M()(T()(f.a)(":".concat("n3,n4,i4,n7,n9"))),x()(O()(","),N.a),function(e,t){var n=new FontFace(t.name,e,{family:t.name,style:t.style,weight:t.weight});return n.load().then(function(){return document.fonts.add(n)})}),R=function(e,t){var n,r,i,o=document.createElement("style");return o.innerText=E()(n=E()(r=E()(i="@font-face { font-family: '".concat(t.name,"'; src: ")).call(i,e,"; font-weight: ")).call(r,t.weight,"; font-style: ")).call(n,t.style,"; }"),document.head.appendChild(o),new L.a(t.name,{style:t.style,weight:t.weight}).load()},F=function(e){var t="url(".concat(Object(P.f)(e),") format('woff')");return("fonts"in document?D:R)(t,e)},B=n(266),U=n(50),q=(f()("rise/fonts/")("LOAD_FONTS"),Object(l.d)({},Object(o.a)({},i.a,function(e,t){var n=t.fonts;return s()(e,h()(z)(n))}))),z=function(e){return function(e,t){var n,r=_.a.all(y()(e).call(e,F)),i=new _.a(function(e){n=g()(e,5e3)});return _.a.race([r,i]).finally(function(){clearTimeout(n),t()})}(e,function(){return Object(U.a)(Object(B.e)(!0))})},H=n(209),W={hasModernOverview:Object(H.a)("modernOverview"),isPreview:"preview"===window.viewType},$=Object(l.d)(W,{}),Y=n(607),V=n(19),K=n.n(V),G=n(20),X=n(82),Q=n.n(X),Z=function(e,t){return K()(t.id,t,e)},J=Object(G.handle)({},Object(o.a)({},i.a,function(e,t){var n=t.media;return Q()(Z,{},n)})),ee=n(304),te=n(198),ne=P.e?{learningPathUpNext:Y.a}:{};t.a=Object(r.a)({course:i.b,courseLabels:c,courseProgress:u.d,fonts:q,global:$,media:J,search:ee.a,sessionPreferences:te.a,status:B.a},ne)},function(e,t,n){"use strict";var r=n(10),i=n(7),o=n(11),a=n(9),s=n(465),l=n.n(s),c=n(739),u=n.n(c);function d(e,t,n){return(d="undefined"!=typeof Reflect&&u.a?u.a:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(a.a)(e)););return e}(e,t);if(r){var i=l()(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var f=n(12),p=function(e){function t(e,n){var i;Object(r.a)(this,t),i=Object(o.a)(this,Object(a.a)(t).call(this,e,[]));var s=n.showRestrictSeekTooltip,l=n.getMaxTime;return i.showRestrictSeekTooltip=s,i.getMaxTime=l,i}return Object(f.a)(t,e),Object(i.a)(t,[{key:"handleMouseMove",value:function(e){var t=this.player(),n=this.calculateDistance(e)*t.duration(),r=this.getMaxTime();n>r?(this.showRestrictSeekTooltip(!0),n=r):this.showRestrictSeekTooltip(!1),n===t.duration()&&(n-=.1),t.currentTime(n)}},{key:"handleMouseUp",value:function(e){d(Object(a.a)(t.prototype),"handleMouseUp",this).call(this,e),this.showRestrictSeekTooltip(!1)}}]),t}(n(728).default.getComponent("SeekBar"));t.a=p},function(e,t,n){"use strict";var r,i=n(5),o=n(127),a=n.n(o),s=n(3),l=n.n(s),c=n(4),u=n.n(c),d=n(10),f=n(7),p=n(11),h=n(9),m=n(13),g=n(12),v=n(0),y=n.n(v),b=n(426),_=n.n(b),w=n(1255),E=n.n(w),k=n(1256),x=n.n(k),S=n(146),T=n.n(S),C=n(123),O=n(71),A=n(1257),N=n.n(A),I=n(1266),M=n.n(I),j=n(1259),L=n.n(j),P=n(1263),D=n.n(P),R=n(757),F=n.n(R),B=n(1265),U=n.n(B),q=n(1261),z=n.n(q),H=n(1258),W=n.n(H),$=n(1262),Y=n.n($),V=n(1264),K=n.n(V),G=n(1260),X=n.n(G),Q=["a","alpha","b","background","c","colors","f","format","h","height","q","quality","r","rasterize","s","scale","w","width"];function Z(e,t,n){var r,i;return u()(r=u()(i="".concat(e,"/")).call(i,n,"/")).call(r,t)}var J=W()(Q),ee=function(e){return!N()(Number(e))},te=L()(2,function(e){var t=X()(ee,z()(e));return Y()(J,D()({h:t,height:t,w:t,width:t}),K.a,U()(F()(":")),F()(","))});var ne="styles_image__32Tdo";!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".styles_image__32Tdo{display:inline-block}",{insertAt:"top"});var re=M()(u()(r=["imagesUri","imageKey","hidpi","style"]).call(r,Q)),ie=function(e){return Object(O.a)({},e.style,function(e){var t=e.imagesUri,n=e.hidpi,r=e.imageKey;if(null!=r){var i=te(n?2:1,e);return{backgroundImage:"url(".concat(Z(t,r,i),")")}}}(e))},oe=function(e){var t=e.alt,n=Object(C.a)(e,["alt"]);return y.a.createElement("span",T()({"aria-label":t,className:ne,role:"img",style:ie(n)},re(n)))};oe.defaultProps={alt:"Image",imagesUri:"",style:{}};var ae=oe,se=n(66),le=n(172),ce=n.n(le),ue=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 13",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 1.62L13.37.17a.5.5 0 0 1 .63.483v8.581a1 1 0 0 1-.74.966L8 11.62v-10zm-1.57 0v10L1.169 10.2a1 1 0 0 1-.74-.966V.653A.5.5 0 0 1 1.06.17l5.37 1.45z"}))};ue.displayName="IconBookFilled",ue.defaultProps={desc:"Solid colored book",height:"12",title:"Book",width:"14"};var de=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 11 8",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"}))};de.displayName="IconCheckMark",de.defaultProps={desc:"A check mark",height:"8",title:"Check mark",width:"11"};var fe=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="cct-".concat(c),d="ccd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 15 15",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.5 15a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zM5.458 7.008a.89.89 0 0 0-1.208 0 .776.776 0 0 0 0 1.141l1.708 1.615a.89.89 0 0 0 1.208 0l3.584-3.386a.776.776 0 0 0 0-1.142.89.89 0 0 0-1.208 0l-2.98 2.816-1.104-1.044z"}))};fe.displayName="IconCheckmarkCircle",fe.defaultProps={desc:"Checkmark inside of a solid circle",height:"15",title:"Checkmark Circle",width:"15"};var pe=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="cdt-".concat(c),d="cdd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 8 5",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M1.46.582a.65.65 0 1 0-.92.919l3 3a.65.65 0 0 0 .92 0L7.5 1.46a.65.65 0 1 0-.92-.92L4 3.122 1.46.582z"}))};pe.displayName="IconChevronDown",pe.defaultProps={desc:"Chevron pointing downwards",height:"5",title:"Chevron down",width:"8"};var he=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 6 10",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z"}))};he.displayName="IconChevronLeftRounded",he.defaultProps={desc:"Rounded chevron pointing left",height:"10",title:"Rounded chevron left",width:"6"};var me=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 14",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("g",{transform:"translate(-18 -659)"},y.a.createElement("path",{fill:"currentColor",d:"M31.7,659.3 C31.3,658.9 30.7,658.9 30.3,659.3 L25,664.6 L19.7,659.3 C19.3,658.9 18.7,658.9 18.3,659.3 C17.9,659.7 17.9,660.3 18.3,660.7 L23.6,666 L18.3,671.3 C17.9,671.7 17.9,672.3 18.3,672.7 C18.5,672.9 18.7,673 19,673 C19.3,673 19.5,672.9 19.7,672.7 L25,667.4 L30.3,672.7 C30.5,672.9 30.8,673 31,673 C31.2,673 31.5,672.9 31.7,672.7 C32.1,672.3 32.1,671.7 31.7,671.3 L26.4,666 L31.7,660.7 C32.1,660.3 32.1,659.7 31.7,659.3"})))};function ge(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}me.displayName="IconClose",me.defaultProps={desc:"Image of an X",height:"14",title:"Close",width:"14"};ge(".IconError_iconError__1pbVY{color:#d0021b}",{insertAt:"top"});var ve=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 18 18",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",d:"m9 0a9 9 0 0 0-9 9 9 9 0 0 0 9 9 9 9 0 0 0 9-9 9 9 0 0 0-9-9zm-0.73438 4h1.6309v4.0039c0 0.425-0.0205 0.841-0.0625 1.25-0.042 0.408-0.097969 0.84083-0.16797 1.2988h-1.1699c-0.07-0.457-0.12597-0.89083-0.16797-1.2988a12.206 12.206 0 0 1-0.0625-1.25v-4.0039zm0.79883 8.1133a1.06 1.06 0 0 1 0.74805 0.30859 1.06 1.06 0 0 1 0.30859 0.74805 1.07 1.07 0 0 1-0.30859 0.75 1.077 1.077 0 0 1-0.74805 0.30078 1.095 1.095 0 0 1-0.75977-0.30078 0.995 0.995 0 0 1-0.22461-0.33398 1.069 1.069 0 0 1-0.080078-0.41602c0-0.145 0.027078-0.28111 0.080078-0.41211a0.987 0.987 0 0 1 0.22461-0.33594 1.103 1.103 0 0 1 0.75977-0.30859z"}))};ve.displayName="IconError",ve.defaultProps={className:"IconError_iconError__1pbVY",desc:"A red circle with a white exclamation point in the middle",height:"18",title:"Error",width:"18"};var ye=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 14 13",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.15 0C8.838 0 7.7.7 7 1.75 6.3.7 5.162 0 3.85 0 1.75 0 0 1.75 0 3.85c0 3.85 7 9.538 7 9.538S14 7.7 14 3.85C14 1.75 12.25 0 10.15 0"}))};ye.displayName="IconHeartFilled",ye.defaultProps={desc:"Solid colored heart",height:"15",title:"Heart",width:"16"};var be=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 16 15",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{stroke:"currentColor",fill:"none",fillRule:"evenodd",d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"}))};be.displayName="IconHeartOutline",be.defaultProps={desc:"Outline of a heart",height:"15",title:"Heart",width:"16"};ge(".IconLearningPath_defaultFill__3ksqg{color:#adaeaf}",{insertAt:"top"});var _e=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="lpt-".concat(c),d="lpd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 9 9",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("g",{fill:"none",fillRule:"evenodd"},y.a.createElement("path",{fill:"currentColor",d:"M7 2h2v7H2V7h5V2z"}),y.a.createElement("path",{fill:"currentColor",d:"M0 0h7v7H0z"}),y.a.createElement("path",{fill:"#000f20",opacity:"0.505",d:"M0 0h7v7H0z"})))};_e.displayName="IconLearningPath",_e.defaultProps={className:"IconLearningPath_defaultFill__3ksqg",desc:"Two stacked squares",height:"9",title:"Learning Path",width:"9"};var we=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 16 16",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("path",{fill:"currentColor",d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"}))};we.displayName="IconSearch",we.defaultProps={desc:"Magnifying glass",height:"16",title:"Search",width:"16"};var Ee=function(e){var t=e["aria-hidden"],n=e.className,r=e.desc,i=e.height,o=e.role,a=e.title,s=e.width,l=Object(v.useState)(function(){return ce()()}),c=Object(se.a)(l,1)[0],u="hft-".concat(c),d="hfd-".concat(c);return y.a.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",version:"1.1","aria-describedby":d,"aria-hidden":t,"aria-labelledby":u,className:n,focusable:"false",height:i,role:o,viewBox:"0 0 32 32",width:s},y.a.createElement("title",{id:u},a),y.a.createElement("desc",{id:d},r),y.a.createElement("g",{fill:"none",fillRule:"evenodd",transform:"rotate(-90 15.5 15.5)"},y.a.createElement("circle",{cx:"15",cy:"16",r:"15",stroke:"currentColor",opacity:"0.083",strokeWidth:"2"}),y.a.createElement("path",{fill:"currentColor",fillRule:"nonzero",d:"M31 16a1 1 0 0 1-2 0c0-7.732-6.268-14-14-14a1 1 0 0 1 0-2c8.837 0 16 7.163 16 16z"})))};function ke(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Ee.displayName="IconSpinner",Ee.defaultProps={desc:"Hollow circle fading from transparent to gray",height:"32",title:"Spinner",width:"32"};var xe="styles_wrap__6_qdv",Se="styles_content__nx_52",Te="styles_image__32Tdo",Ce="styles_title__NDffz",Oe="styles_titleClamp__1-eSv",Ae="styles_score__2FWHt",Ne="styles_scoreWrap__3GrXD",Ie="styles_lessonsInfo__SbVMH",Me="styles_pipe__1XBpq",je="styles_lpIcon__3XeRQ",Le="styles_imageOverlay__RSsiC",Pe="styles_imageOverlayStarted__17CIL",De="styles_imageOverlayAssignedToMe__1pYS_",Re="styles_statusText__1q5C8",Fe="styles_statusTextNoProgress__39xCR",Be="styles_status__1VLZS",Ue="styles_completedStatus__A0RxX",qe="styles_learningPathBadge__3vO-1",ze="styles_progressBarWrap__24ETA",He="styles_heartWrap__217al",We="styles_heartFilled__35Shx",$e="styles_heartOutline__2fakg",Ye="styles_completedAt__2Iu7h",Ve="styles_due__SPTRi",Ke="styles_dueUrgent__1j39c",Ge="styles_downloadCertWrap__1wv7-";ke(".styles_content__nx_52,.styles_wrap__6_qdv{display:flex;flex-direction:column}.styles_wrap__6_qdv{height:360px;border-radius:6px;background-color:#fff;cursor:pointer;box-shadow:0 2px 25px 0 rgba(0,0,0,.1);transition:box-shadow .3s,transform .3s;position:relative;width:100%}.styles_wrap__6_qdv:hover{box-shadow:0 .2rem 4rem 0 rgba(0,0,0,.15);transform:translate3d(0,-1rem,0)}.styles_image__32Tdo{min-height:14.8rem;width:100%;border-top-left-radius:6px;border-top-right-radius:6px;background-size:cover;background-position:50% 50%;background-repeat:no-repeat;background-color:var(--color-accent)}.styles_content__nx_52{box-sizing:border-box;height:100%;width:100%;padding:1.5rem 3.5rem 2rem 2.5rem;position:relative}.styles_title__NDffz{max-height:9.45rem;height:9.45rem;font-size:1.8rem;line-height:1.33;font-weight:700;color:#313537;overflow-wrap:break-word;margin-top:.5rem;overflow:hidden}.styles_titleClamp__1-eSv>div{display:none!important}.styles_score__2FWHt{font-weight:700;color:#313537}.styles_scoreWrap__3GrXD{margin-top:.5rem;color:#666;font-size:1.2rem}.styles_lessonsInfo__SbVMH{font-size:1.2rem;letter-spacing:.05rem;position:absolute;bottom:2rem;color:#313537}.styles_pipe__1XBpq{margin:0 .25rem}.styles_lpIcon__3XeRQ{display:inline-flex;margin-right:.4rem;color:#adaeaf}.styles_imageOverlay__RSsiC{position:absolute;width:100%;min-height:14.8rem}.styles_imageOverlayStarted__17CIL{min-height:14.8rem;width:100%;opacity:.15;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.83),#000)}.styles_imageOverlayAssignedToMe__1pYS_{min-height:14.8rem;width:100%;opacity:.5;background-image:linear-gradient(180deg,transparent,#000)}.styles_statusText__1q5C8{display:flex;color:#fff;align-items:center;position:absolute;bottom:2.5rem;left:1rem}.styles_statusTextNoProgress__39xCR{bottom:1.2rem}.styles_status__1VLZS{padding-left:.5rem;text-transform:capitalize}.styles_completedStatus__A0RxX{display:flex;color:#fff;align-items:center;position:absolute;top:1rem;right:1rem}.styles_learningPathBadge__3vO-1{display:flex;color:#313537;border-radius:.6rem;padding:.4rem .6rem;font-size:8px;text-transform:uppercase;letter-spacing:.3px;font-weight:700;background-color:#fff;align-items:center;position:absolute;top:1rem;left:1rem}.styles_progressBarWrap__24ETA{position:absolute;left:0;bottom:1rem;width:calc(100% - 2rem);margin:0 1rem}.styles_heartWrap__217al{position:absolute;top:1rem;right:1rem;width:2rem;height:2rem;display:flex;justify-content:center;align-items:center}.styles_heartWrap__217al:hover{cursor:pointer}.styles_heartWrap__217al:hover .styles_heartFilled__35Shx{color:var(--color-accent-focus)}.styles_heartWrap__217al:hover .styles_heartOutline__2fakg{color:#313537}.styles_heartFilled__35Shx{color:var(--color-accent)}.styles_heartOutline__2fakg{color:#979797}.styles_completedAt__2Iu7h{margin-top:1rem;color:#6a737c;font-size:1.2rem}.styles_due__SPTRi{display:inline-block;font-size:1rem;font-weight:900;letter-spacing:.05rem;text-transform:uppercase;line-height:1.2;color:#313537;border:1px solid #979797;padding:.5rem .7rem;border-radius:.4rem}.styles_dueUrgent__1j39c{color:var(--color-accent);border-color:var(--color-accent)}.styles_downloadCertWrap__1wv7-{position:absolute;bottom:2rem}@media (max-width:580px){.styles_progressBarWrap__24ETA{bottom:1.5rem;margin:0 2rem;width:calc(100% - 4rem)}.styles_statusText__1q5C8{left:2rem}}",{insertAt:"top"});var Xe="ProgressBar_progressBarBase__1njSY",Qe="ProgressBar_progressBarWrap__1dSL2",Ze="ProgressBar_progressBar__14M3v";ke(".ProgressBar_progressBarBase__1njSY{height:.5rem;border-radius:10rem}.ProgressBar_progressBarWrap__1dSL2{position:relative;width:100%;background:hsla(0,0%,98%,.5)}.ProgressBar_progressBar__14M3v{background:#fff}",{insertAt:"top"});var Je=function(e){var t=e.progress,n=_()(Xe,Qe),r=_()(Xe,Ze);return y.a.createElement("div",{className:n,role:"progressbar","aria-valuenow":t,"aria-valuemin":"0","aria-valuemax":"100"},y.a.createElement("div",{className:r,style:{width:"".concat(t,"%")}}))},et=function(e){function t(){var e,n,r,i,o,a,s,c,f,g;Object(d.a)(this,t);for(var v=arguments.length,y=new Array(v),b=0;b<v;b++)y[b]=arguments[b];return(g=Object(p.a)(this,(e=Object(h.a)(t)).call.apply(e,u()(n=[this]).call(n,y)))).onClick=l()(r=g.onClick).call(r,Object(m.a)(g)),g.onKeyDown=l()(i=g.onKeyDown).call(i,Object(m.a)(g)),g.toggleFavorite=l()(o=g.toggleFavorite).call(o,Object(m.a)(g)),g.renderProgress=l()(a=g.renderProgress).call(a,Object(m.a)(g)),g.renderDueStatus=l()(s=g.renderDueStatus).call(s,Object(m.a)(g)),g.renderAssignedOrCompleted=l()(c=g.renderAssignedOrCompleted).call(c,Object(m.a)(g)),g.renderLessonsInfo=l()(f=g.renderLessonsInfo).call(f,Object(m.a)(g)),g}return Object(g.a)(t,e),Object(f.a)(t,[{key:"onClick",value:function(){var e=this.props,t=e.disable,n=e.onClick;t||n()}},{key:"onKeyDown",value:function(e){var t;a()(t=[13,32]).call(t,e.keyCode)&&(e.preventDefault(),this.onClick())}},{key:"toggleFavorite",value:function(e){var t=this.props,n=t.favoritedAt,r=t.onAddFavorite,i=t.onRemoveFavorite;e.stopPropagation(),n?i():r()}},{key:"renderProgress",value:function(){var e=this.props,t=e.disable,n=e.progress;return n&&!t?y.a.createElement("div",{className:ze},y.a.createElement(Je,{progress:n})):null}},{key:"renderDueStatus",value:function(){var e=this.props,t=e.completedAt,n=e.isUrgent,r=e.labelDue,o=e.labelCompleted,a=null!=t,s=_()(Ve,Object(i.a)({},Ke,n));return a?y.a.createElement("div",{className:Ye},o):r?y.a.createElement("div",null,y.a.createElement("div",{className:s},r)):null}},{key:"renderAssignedOrCompleted",value:function(){var e=this.props,t=e.labelAssignedToMe,n=e.completedAt,r=e.progress,o=null!=n,a=_()(Re,Object(i.a)({},Fe,!r));return o?y.a.createElement("div",{className:Ue},y.a.createElement(fe,{width:22,height:22,decorative:!0})):y.a.createElement("div",{className:a},y.a.createElement(ue,{decorative:!0}),y.a.createElement("span",{className:Be},t))}},{key:"renderLessonsInfo",value:function(){var e=this.props,t=e.labelCount,n=e.durationHidden,r=e.labelDuration;return y.a.createElement("div",{className:Ie},t,!n&&y.a.createElement(y.a.Fragment,null,y.a.createElement("span",{className:Me,"aria-hidden":"true"},"|"),r))}},{key:"render",value:function(){var e,t=this.props,n=t.certDownloadComp,r=t.color,o=t.completedAt,a=t.coverImageKey,s=t.enrolledAt,l=t.favoritedAt,c=t.imagesUri,u=t.isLearningPath,d=t.labelHeartFilled,f=t.labelHeartOutline,p=t.labelLearningPath,h=t.labelQuizScore,m=t.noCertDownload,g=t.noFavoriteBtn,v=t.progress,b=t.score,w=t.title,k=null!=o,S=s||k,T=_()((e={},Object(i.a)(e,Pe,!!v||k),Object(i.a)(e,De,s&&!k),e));return y.a.createElement("div",{"aria-label":w,className:xe,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"link",tabIndex:"0"},y.a.createElement(ae,{className:Te,b:"fff",f:"jpg",h:150,imagesUri:c,imageKey:a,style:{backgroundColor:r},w:300,s:"cover"}),(k||s||v||u)&&y.a.createElement("div",{className:Le},y.a.createElement("div",{className:T}),u&&y.a.createElement("div",{className:qe},y.a.createElement(_e,{height:7,width:7,className:je,decorative:!0})," ",p),this.renderProgress(),S&&this.renderAssignedOrCompleted()),y.a.createElement("div",{className:Se},!g&&y.a.createElement("div",{className:He,onClick:this.toggleFavorite,onKeyDown:this.toggleFavorite,role:"button",tabIndex:"0"},l?y.a.createElement(ye,{title:d,className:We}):y.a.createElement(be,{title:f,className:$e})),this.renderDueStatus(),y.a.createElement("div",{className:Ce},y.a.createElement(x.a,{className:Oe,lines:4},w)),k&&null!=b&&y.a.createElement("div",{className:Ne},h," ",y.a.createElement("span",{className:Ae},E()(b).divide(100).format("0%"))),!k||m?this.renderLessonsInfo():y.a.createElement("div",{className:Ge},y.a.createElement(n,null))))}}]),t}(v.Component);et.defaultProps={certDownloadComp:function(){return null},color:"#ff6602",completedAt:null,coverImageKey:null,disable:!1,durationHidden:!1,enrolledAt:null,favoritedAt:null,imagesUri:"",isLearningPath:!1,isUrgent:!1,labelAssignedToMe:"Assigned To Me",labelCompleted:"",labelCount:"",labelDuration:"",labelHeartFilled:"Remove from my list",labelHeartOutline:"Add to my list",labelLearningPath:"Learning path",labelQuizScore:"Quiz Score",noCertDownload:!1,noFavoriteBtn:!1,onAddFavorite:Function.prototype,onClick:Function.prototype,onRemoveFavorite:Function.prototype,progress:0,score:null,title:""};t.a=et},function(e,t,n){"use strict";var r=n(74),i=n(142),o=n(125),a=n(336),s=n(24),l=n(189),c=n(430),u=n(63),d=n(428),f=n(243),p=n(429),h=n(110),m=n(769),g=n(190),v=n(1301),y=n(371),b=n(102),_=n(97),w=n(188),E=n(242),k=n(337),x=n(339),S=n(772),T=n(174),C=n(133),O=n(427),A=n(163),N=n(370),I=n(496)("hidden"),M=n(203),j=M.set,L=M.getterFor("Symbol"),P=T.f,D=C.f,R=S.f,F=r.Symbol,B=r.JSON,U=B&&B.stringify,q=h("toPrimitive"),z=O.f,H=d("symbol-registry"),W=d("symbols"),$=d("op-symbols"),Y=d("wks"),V=Object.prototype,K=r.QObject,G=n(768),X=!K||!K.prototype||!K.prototype.findChild,Q=o&&u(function(){return 7!=x(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(V,t);r&&delete V[t],D(e,t,n),r&&e!==V&&D(V,t,r)}:D,Z=function(e,t){var n=W[e]=x(F.prototype);return j(n,{type:"Symbol",tag:e,description:t}),o||(n.description=t),n},J=G&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof F},ee=function(e,t,n){return e===V&&ee($,t,n),b(e),t=E(t,!0),b(n),i(W,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=x(n,{enumerable:k(0,!1)})):(i(e,I)||D(e,I,k(1,{})),e[I][t]=!0),Q(e,t,n)):D(e,t,n)},te=function(e,t){b(e);for(var n,r=v(t=w(t)),i=0,o=r.length;o>i;)ee(e,n=r[i++],t[n]);return e},ne=function(e){var t=z.call(this,e=E(e,!0));return!(this===V&&i(W,e)&&!i($,e))&&(!(t||!i(this,e)||!i(W,e)||i(this,I)&&this[I][e])||t)},re=function(e,t){if(e=w(e),t=E(t,!0),e!==V||!i(W,t)||i($,t)){var n=P(e,t);return!n||!i(W,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},ie=function(e){for(var t,n=R(w(e)),r=[],o=0;n.length>o;)i(W,t=n[o++])||i(c,t)||r.push(t);return r},oe=function(e){for(var t,n=e===V,r=R(n?$:w(e)),o=[],a=0;r.length>a;)!i(W,t=r[a++])||n&&!i(V,t)||o.push(W[t]);return o};G||(l((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=p(e),n=function(e){this===V&&n.call($,e),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),Q(this,t,k(1,e))};return o&&X&&Q(V,t,{configurable:!0,set:n}),Z(t,e)}).prototype,"toString",function(){return L(this).tag}),O.f=ne,C.f=ee,T.f=re,n(338).f=S.f=ie,n(498).f=oe,o&&(D(F.prototype,"description",{configurable:!0,get:function(){return L(this).description}}),a||l(V,"propertyIsEnumerable",ne,{unsafe:!0})),m.f=function(e){return Z(h(e),e)}),s({global:!0,wrap:!0,forced:!G,sham:!G},{Symbol:F});for(var ae=N(Y),se=0;ae.length>se;)g(ae[se++]);s({target:"Symbol",stat:!0,forced:!G},{for:function(e){return i(H,e+="")?H[e]:H[e]=F(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol");for(var t in H)if(H[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!G,sham:!o},{create:function(e,t){return void 0===t?x(e):te(x(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!G},{getOwnPropertyNames:ie,getOwnPropertySymbols:oe}),B&&s({target:"JSON",stat:!0,forced:!G||u(function(){var e=F();return"[null]"!=U([e])||"{}"!=U({a:e})||"{}"!=U(Object(e))})},{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(_(t)||void 0!==e)&&!J(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!J(t))return t}),r[1]=t,U.apply(B,r)}}),F.prototype[q]||A(F.prototype,q,F.prototype.valueOf),f(F,"Symbol"),c[I]=!0},function(e,t,n){var r=n(370),i=n(498),o=n(427);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),l=o.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){"use strict";var r=n(125),i=n(142),o=n(97),a=n(133).f,s=n(766),l=n(74).Symbol;if(r&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var c={},u=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof u?new l(e):void 0===e?l():l(e);return""===e&&(c[t]=!0),t};s(u,l);var d=u.prototype=l.prototype;d.constructor=u;var f=d.toString,p="Symbol(test)"==String(l("test")),h=/^Symbol\((.*)\)[^)]+$/;a(d,"description",{configurable:!0,get:function(){var e=o(this)?this.valueOf():this,t=f.call(e);if(i(c,e))return"";var n=p?t.slice(7,-1):t.replace(h,"$1");return""===n?void 0:n}}),n(24)({global:!0,forced:!0},{Symbol:u})}},function(e,t,n){n(190)("asyncIterator")},function(e,t,n){n(190)("hasInstance")},function(e,t,n){n(190)("isConcatSpreadable")},function(e,t,n){n(190)("iterator")},function(e,t,n){n(190)("match")},function(e,t,n){n(190)("replace")},function(e,t,n){n(190)("search")},function(e,t,n){n(190)("species")},function(e,t,n){n(190)("split")},function(e,t,n){n(190)("toPrimitive")},function(e,t,n){n(190)("toStringTag")},function(e,t,n){n(190)("unscopables")},function(e,t,n){"use strict";var r=n(371),i=n(97),o=n(143),a=n(117),s=n(340),l=n(432),c=n(110)("isConcatSpreadable"),u=!n(63)(function(){var e=[];return e[c]=!1,e.concat()[0]!==e}),d=n(433)("concat"),f=function(e){if(!i(e))return!1;var t=e[c];return void 0!==t?!!t:r(e)},p=!u||!d;n(24)({target:"Array",proto:!0,forced:p},{concat:function(e){var t,n,r,i,c,u=o(this),d=l(u,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(c=-1===t?u:arguments[t],f(c)){if(p+(i=a(c.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,p++)n in c&&s(d,p,c[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(d,p++,c)}return d.length=p,d}})},function(e,t,n){n(24)({target:"Array",proto:!0},{copyWithin:n(773)}),n(308)("copyWithin")},function(e,t,n){n(24)({target:"Array",proto:!0},{fill:n(624)}),n(308)("fill")},function(e,t,n){"use strict";var r=n(175)(2),i=n(433)("filter");n(24)({target:"Array",proto:!0,forced:!i},{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(175)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),n(24)({target:"Array",proto:!0,forced:i},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(308)("find")},function(e,t,n){"use strict";var r=n(175)(6),i=!0;"findIndex"in[]&&Array(1).findIndex(function(){i=!1}),n(24)({target:"Array",proto:!0,forced:i},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(308)("findIndex")},function(e,t,n){"use strict";var r=n(774),i=n(143),o=n(117),a=n(204),s=n(432);n(24)({target:"Array",proto:!0},{flat:function(){var e=arguments[0],t=i(this),n=o(t.length),l=s(t,0);return l.length=r(l,t,t,n,0,void 0===e?1:a(e)),l}})},function(e,t,n){"use strict";var r=n(774),i=n(143),o=n(117),a=n(220),s=n(432);n(24)({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),l=o(n.length);return a(e),(t=s(n,0)).length=r(t,n,n,l,0,1,e,arguments[1]),t}})},function(e,t,n){var r=!n(499)(function(e){Array.from(e)});n(24)({target:"Array",stat:!0,forced:r},{from:n(775)})},function(e,t,n){"use strict";var r=n(497)(!0);n(24)({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(308)("includes")},function(e,t,n){"use strict";var r=n(188),i=[].join,o=n(495)!=Object,a=n(502)("join",",");n(24)({target:"Array",proto:!0,forced:o||a},{join:function(e){return i.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(175)(1),i=n(433)("map");n(24)({target:"Array",proto:!0,forced:!i},{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(340),i=n(63)(function(){function e(){}return!(Array.of.call(e)instanceof e)});n(24)({target:"Array",stat:!0,forced:i},{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(371),i=[].reverse,o=[1,2];n(24)({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return r(this)&&(this.length=this.length),i.call(this)}})},function(e,t,n){"use strict";var r=n(97),i=n(371),o=n(307),a=n(117),s=n(188),l=n(340),c=n(110)("species"),u=[].slice,d=Math.max,f=n(433)("slice");n(24)({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var n,f,p,h=s(this),m=a(h.length),g=o(e,m),v=o(void 0===t?m:t,m);if(i(h)&&("function"!=typeof(n=h.constructor)||n!==Array&&!i(n.prototype)?r(n)&&null===(n=n[c])&&(n=void 0):n=void 0,n===Array||void 0===n))return u.call(h,g,v);for(f=new(void 0===n?Array:n)(d(v-g,0)),p=0;g<v;g++,p++)g in h&&l(f,p,h[g]);return f.length=p,f}})},function(e,t,n){"use strict";var r=n(220),i=n(143),o=n(63),a=[].sort,s=[1,2,3],l=o(function(){s.sort(void 0)}),c=o(function(){s.sort(null)}),u=n(502)("sort"),d=l||!c||u;n(24)({target:"Array",proto:!0,forced:d},{sort:function(e){return void 0===e?a.call(i(this)):a.call(i(this),r(e))}})},function(e,t,n){n(372)("Array")},function(e,t,n){"use strict";var r=n(307),i=n(204),o=n(117),a=n(143),s=n(432),l=n(340),c=Math.max,u=Math.min,d=n(433)("splice");n(24)({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,d,f,p,h,m,g=a(this),v=o(g.length),y=r(e,v),b=arguments.length;if(0===b?n=d=0:1===b?(n=0,d=v-y):(n=b-2,d=u(c(i(t),0),v-y)),v+n-d>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(f=s(g,d),p=0;p<d;p++)(h=y+p)in g&&l(f,p,g[h]);if(f.length=d,n<d){for(p=y;p<v-d;p++)m=p+n,(h=p+d)in g?g[m]=g[h]:delete g[m];for(p=v;p>v-d+n;p--)delete g[p-1]}else if(n>d)for(p=v-d;p>y;p--)m=p+n-1,(h=p+d-1)in g?g[m]=g[h]:delete g[m];for(p=0;p<n;p++)g[p+y]=arguments[p+2];return g.length=v-d+n,f}})},function(e,t,n){n(308)("flat")},function(e,t,n){n(308)("flatMap")},function(e,t,n){"use strict";var r=n(629).ArrayBuffer,i=n(74).ArrayBuffer;n(24)({global:!0,forced:i!==r},{ArrayBuffer:r}),n(372)("ArrayBuffer")},function(e,t,n){"use strict";var r=n(629),i=n(102),o=n(307),a=n(117),s=n(311),l=r.ArrayBuffer,c=r.DataView,u=l.prototype.slice,d=n(63)(function(){return!new l(2).slice(1,void 0).byteLength});n(24)({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:d},{slice:function(e,t){if(void 0!==u&&void 0===t)return u.call(i(this),e);for(var n=i(this).byteLength,r=o(e,n),d=o(void 0===t?n:t,n),f=new(s(this,l))(a(d-r)),p=new c(this),h=new c(f),m=0;r<d;)h.setUint8(m++,p.getUint8(r++));return f}})},function(e,t,n){var r=n(163),i=n(110)("toPrimitive"),o=n(1338),a=Date.prototype;i in a||r(a,i,o)},function(e,t,n){"use strict";var r=n(102),i=n(242);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),"number"!==e)}},function(e,t,n){"use strict";var r=n(97),i=n(133),o=n(244),a=n(110)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=o(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(125),i=n(133).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;!r||"name"in o||i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){n(243)(n(74).JSON,"JSON",!0)},function(e,t,n){"use strict";e.exports=n(503)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(781),!0)},function(e,t,n){var r=n(782),i=Math.acosh,o=Math.log,a=Math.sqrt,s=Math.LN2,l=!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0;n(24)({target:"Math",stat:!0,forced:l},{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?o(e)+s:r(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var r=Math.asinh,i=Math.log,o=Math.sqrt;n(24)({target:"Math",stat:!0,forced:!(r&&1/r(0)>0)},{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):i(t+o(t*t+1)):t}})},function(e,t,n){var r=Math.atanh,i=Math.log;n(24)({target:"Math",stat:!0,forced:!(r&&1/r(-0)<0)},{atanh:function(e){return 0==(e=+e)?e:i((1+e)/(1-e))/2}})},function(e,t,n){var r=n(631),i=Math.abs,o=Math.pow;n(24)({target:"Math",stat:!0},{cbrt:function(e){return r(e=+e)*o(i(e),1/3)}})},function(e,t,n){var r=Math.floor,i=Math.log,o=Math.LOG2E;n(24)({target:"Math",stat:!0},{clz32:function(e){return(e>>>=0)?31-r(i(e+.5)*o):32}})},function(e,t,n){var r=n(504),i=Math.cosh,o=Math.abs,a=Math.E;n(24)({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=r(o(e)-1)+1;return(t+1/(t*a*a))*(a/2)}})},function(e,t,n){var r=n(504);n(24)({target:"Math",stat:!0,forced:r!=Math.expm1},{expm1:r})},function(e,t,n){n(24)({target:"Math",stat:!0},{fround:n(1351)})},function(e,t,n){var r=n(631),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),l=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<l?c*(i/l/a+1/o-1/o)*l*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var r=Math.abs,i=Math.sqrt;n(24)({target:"Math",stat:!0},{hypot:function(e,t){for(var n,o,a=0,s=0,l=arguments.length,c=0;s<l;)c<(n=r(arguments[s++]))?(a=a*(o=c/n)*o+1,c=n):a+=n>0?(o=n/c)*o:n;return c===1/0?1/0:c*i(a)}})},function(e,t,n){var r=Math.imul,i=n(63)(function(){return-5!=r(4294967295,5)||2!=r.length});n(24)({target:"Math",stat:!0,forced:i},{imul:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r;return 0|i*o+((65535&n>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=Math.log,i=Math.LOG10E;n(24)({target:"Math",stat:!0},{log10:function(e){return r(e)*i}})},function(e,t,n){n(24)({target:"Math",stat:!0},{log1p:n(782)})},function(e,t,n){var r=Math.log,i=Math.LN2;n(24)({target:"Math",stat:!0},{log2:function(e){return r(e)/i}})},function(e,t,n){n(24)({target:"Math",stat:!0},{sign:n(631)})},function(e,t,n){var r=n(504),i=Math.abs,o=Math.exp,a=Math.E,s=n(63)(function(){return-2e-17!=Math.sinh(-2e-17)});n(24)({target:"Math",stat:!0,forced:s},{sinh:function(e){return i(e=+e)<1?(r(e)-r(-e))/2:(o(e-1)-o(-e-1))*(a/2)}})},function(e,t,n){var r=n(504),i=Math.exp;n(24)({target:"Math",stat:!0},{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){n(243)(Math,"Math",!0)},function(e,t,n){var r=Math.ceil,i=Math.floor;n(24)({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:r)(e)}})},function(e,t,n){"use strict";var r=n(74),i=n(431),o=n(142),a=n(219),s=n(630),l=n(242),c=n(63),u=n(338).f,d=n(174).f,f=n(133).f,p=n(374),h=r.Number,m=h.prototype,g="Number"==a(n(339)(m)),v="trim"in String.prototype,y=function(e){var t,n,r,i,o,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=v?u.trim():p(u,3)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(i("Number",!h(" 0o1")||!h("0b1")||h("+0x1"))){for(var b,_=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof _&&(g?c(function(){m.valueOf.call(n)}):"Number"!=a(n))?s(new h(y(t)),n,_):y(t)},w=n(125)?u(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),E=0;w.length>E;E++)o(h,b=w[E])&&!o(_,b)&&f(_,b,d(h,b));_.prototype=m,m.constructor=_,n(189)(r,"Number",_)}},function(e,t,n){n(24)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){n(24)({target:"Number",stat:!0},{isFinite:n(1365)})},function(e,t,n){var r=n(74).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(24)({target:"Number",stat:!0},{isInteger:n(783)})},function(e,t,n){n(24)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(783),i=Math.abs;n(24)({target:"Number",stat:!0},{isSafeInteger:function(e){return r(e)&&i(e)<=9007199254740991}})},function(e,t,n){n(24)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){n(24)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(1372);n(24)({target:"Number",stat:!0,forced:Number.parseFloat!=r},{parseFloat:r})},function(e,t,n){var r=n(74).parseFloat,i=n(374),o=n(505),a=1/r(o+"-0")!=-1/0;e.exports=a?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(1374);n(24)({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},function(e,t,n){var r=n(74).parseInt,i=n(374),o=n(505),a=/^[-+]?0[xX]/,s=8!==r(o+"08")||22!==r(o+"0x16");e.exports=s?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){"use strict";var r=n(204),i=n(1376),o=n(632),a=1..toFixed,s=Math.floor,l=[0,0,0,0,0,0],c=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*l[n],l[n]=r%1e7,r=s(r/1e7)},u=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=s(n/e),n=n%e*1e7},d=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t},f=function(e,t,n){return 0===t?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)};n(24)({target:"Number",proto:!0,forced:a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(63)(function(){a.call({})})},{toFixed:function(e){var t,n,a,s,l=i(this),p=r(e),h="",m="0";if(p<0||p>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(h="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*f(2,69,1))-69)<0?l*f(2,-t,1):l/f(2,t,1),n*=4503599627370496,(t=52-t)>0){for(c(0,n),a=p;a>=7;)c(1e7,0),a-=7;for(c(f(10,a,1),0),a=t-1;a>=23;)u(1<<23),a-=23;u(1<<a),c(1,1),u(2),m=d()}else c(0,n),c(1<<-t,0),m=d()+o.call("0",p);return m=p>0?h+((s=m.length)<=p?"0."+o.call("0",p-s)+m:m.slice(0,s-p)+"."+m.slice(s-p)):h+m}})},function(e,t,n){var r=n(219);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},function(e,t,n){var r=n(784);n(24)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var r=n(143),i=n(220),o=n(133),a=n(506);n(125)&&n(24)({target:"Object",proto:!0,forced:a},{__defineGetter__:function(e,t){o.f(r(this),e,{get:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(143),i=n(220),o=n(133),a=n(506);n(125)&&n(24)({target:"Object",proto:!0,forced:a},{__defineSetter__:function(e,t){o.f(r(this),e,{set:i(t),enumerable:!0,configurable:!0})}})},function(e,t,n){var r=n(785);n(24)({target:"Object",stat:!0},{entries:function(e){return r(e,!0)}})},function(e,t,n){var r=n(97),i=n(341).onFreeze,o=Object.freeze,a=n(437),s=n(63)(function(){o(1)});n(24)({target:"Object",stat:!0,forced:s,sham:!a},{freeze:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){var r=n(438),i=n(340);n(24)({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,function(e,n){i(t,e,n)},void 0,!0),t}})},function(e,t,n){var r=n(188),i=n(174).f,o=n(125),a=n(63)(function(){i(1)}),s=!o||a;n(24)({target:"Object",stat:!0,forced:s,sham:!o},{getOwnPropertyDescriptor:function(e,t){return i(r(e),t)}})},function(e,t,n){var r=n(125),i=n(621),o=n(188),a=n(174),s=n(340);n(24)({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),l=a.f,c=i(r),u={},d=0;c.length>d;)void 0!==(n=l(r,t=c[d++]))&&s(u,t,n);return u}})},function(e,t,n){var r=n(772).f,i=n(63)(function(){Object.getOwnPropertyNames(1)});n(24)({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:r})},function(e,t,n){var r=n(143),i=n(244),o=n(627),a=n(63)(function(){i(1)});n(24)({target:"Object",stat:!0,forced:a,sham:!o},{getPrototypeOf:function(e){return i(r(e))}})},function(e,t,n){n(24)({target:"Object",stat:!0},{is:n(786)})},function(e,t,n){var r=n(97),i=Object.isExtensible,o=n(63)(function(){i(1)});n(24)({target:"Object",stat:!0,forced:o},{isExtensible:function(e){return!!r(e)&&(!i||i(e))}})},function(e,t,n){var r=n(97),i=Object.isFrozen,o=n(63)(function(){i(1)});n(24)({target:"Object",stat:!0,forced:o},{isFrozen:function(e){return!r(e)||!!i&&i(e)}})},function(e,t,n){var r=n(97),i=Object.isSealed,o=n(63)(function(){i(1)});n(24)({target:"Object",stat:!0,forced:o},{isSealed:function(e){return!r(e)||!!i&&i(e)}})},function(e,t,n){var r=n(143),i=n(370),o=n(63)(function(){i(1)});n(24)({target:"Object",stat:!0,forced:o},{keys:function(e){return i(r(e))}})},function(e,t,n){"use strict";var r=n(143),i=n(242),o=n(244),a=n(174).f,s=n(506);n(125)&&n(24)({target:"Object",proto:!0,forced:s},{__lookupGetter__:function(e){var t,n=r(this),s=i(e,!0);do{if(t=a(n,s))return t.get}while(n=o(n))}})},function(e,t,n){"use strict";var r=n(143),i=n(242),o=n(244),a=n(174).f,s=n(506);n(125)&&n(24)({target:"Object",proto:!0,forced:s},{__lookupSetter__:function(e){var t,n=r(this),s=i(e,!0);do{if(t=a(n,s))return t.set}while(n=o(n))}})},function(e,t,n){var r=n(97),i=n(341).onFreeze,o=Object.preventExtensions,a=n(437),s=n(63)(function(){o(1)});n(24)({target:"Object",stat:!0,forced:s,sham:!a},{preventExtensions:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){var r=n(97),i=n(341).onFreeze,o=Object.seal,a=n(437),s=n(63)(function(){o(1)});n(24)({target:"Object",stat:!0,forced:s,sham:!a},{seal:function(e){return o&&r(e)?o(i(e)):e}})},function(e,t,n){var r=n(1397),i=Object.prototype;r!==i.toString&&n(189)(i,"toString",r,{unsafe:!0})},function(e,t,n){"use strict";var r=n(500),i={};i[n(110)("toStringTag")]="z",e.exports="[object z]"!==String(i)?function(){return"[object "+r(this)+"]"}:i.toString},function(e,t,n){var r=n(785);n(24)({target:"Object",stat:!0},{values:function(e){return r(e)}})},function(e,t,n){"use strict";var r,i,o,a="Promise",s=n(336),l=n(74),c=n(24),u=n(97),d=n(220),f=n(310),p=n(219),h=n(438),m=n(499),g=n(311),v=n(633).set,y=n(787),b=n(788),_=n(1400),w=n(789),E=n(1401),k=n(634),x=n(110)("species"),S=n(203),T=n(431),C=S.get,O=S.set,A=S.getterFor(a),N=l.Promise,I=l.TypeError,M=l.document,j=l.process,L=l.fetch,P=j&&j.versions,D=P&&P.v8||"",R=w.f,F=R,B="process"==p(j),U=!!(M&&M.createEvent&&l.dispatchEvent),q=T(a,function(){var e=N.resolve(1),t=function(){},n=(e.constructor={})[x]=function(e){e(t,t)};return!((B||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof n&&0!==D.indexOf("6.6")&&-1===k.indexOf("Chrome/66"))}),z=q||!m(function(e){N.all(e).catch(function(){})}),H=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},W=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;y(function(){for(var i=t.value,o=1==t.state,a=0,s=function(n){var r,a,s,l=o?n.ok:n.fail,c=n.resolve,u=n.reject,d=n.domain;try{l?(o||(2===t.rejection&&K(e,t),t.rejection=1),!0===l?r=i:(d&&d.enter(),r=l(i),d&&(d.exit(),s=!0)),r===n.promise?u(I("Promise-chain cycle")):(a=H(r))?a.call(r,c,u):c(r)):u(i)}catch(e){d&&!s&&d.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&Y(e,t)})}},$=function(e,t,n){var r,i;U?((r=M.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(i=l["on"+e])?i(r):"unhandledrejection"===e&&_("Unhandled promise rejection",n)},Y=function(e,t){v.call(l,function(){var n,r=t.value;if(V(t)&&(n=E(function(){B?j.emit("unhandledRejection",r,e):$("unhandledrejection",e,r)}),t.rejection=B||V(t)?2:1,n.error))throw n.value})},V=function(e){return 1!==e.rejection&&!e.parent},K=function(e,t){v.call(l,function(){B?j.emit("rejectionHandled",e):$("rejectionhandled",e,t.value)})},G=function(e,t,n,r){return function(i){e(t,n,i,r)}},X=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,W(e,t,!0))},Q=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw I("Promise can't be resolved itself");var i=H(n);i?y(function(){var r={done:!1};try{i.call(n,G(Q,e,r,t),G(X,e,r,t))}catch(n){X(e,r,n,t)}}):(t.value=n,t.state=1,W(e,t,!1))}catch(n){X(e,{done:!1},n,t)}}};q&&(N=function(e){f(this,N,a),d(e),r.call(this);var t=C(this);try{e(G(Q,this,t),G(X,this,t))}catch(e){X(this,t,e)}},(r=function(e){O(this,{type:a,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n(373)(N.prototype,{then:function(e,t){var n=A(this),r=R(g(this,N));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=B?j.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&W(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=C(e);this.promise=e,this.resolve=G(Q,e,t),this.reject=G(X,e,t)},w.f=R=function(e){return e===N||e===o?new i(e):F(e)},s||"function"!=typeof L||c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return b(N,L.apply(l,arguments))}})),c({global:!0,wrap:!0,forced:q},{Promise:N}),n(243)(N,a,!1,!0),n(372)(a),o=n(623).Promise,c({target:a,stat:!0,forced:q},{reject:function(e){var t=R(this);return t.reject.call(void 0,e),t.promise}}),c({target:a,stat:!0,forced:s||q},{resolve:function(e){return b(s&&this===o?N:this,e)}}),c({target:a,stat:!0,forced:z},{all:function(e){var t=this,n=R(t),r=n.resolve,i=n.reject,o=E(function(){var n=[],o=0,a=1;h(e,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=R(t),r=n.reject,i=E(function(){h(e,function(e){t.resolve(e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(74);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){"use strict";var r=n(628),i=n(311),o=n(788);n(24)({target:"Promise",proto:!0,real:!0},{finally:function(e){var t=i(this,r("Promise")),n="function"==typeof e;return this.then(n?function(n){return o(t,e()).then(function(){return n})}:e,n?function(n){return o(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){var r=n(220),i=n(102),o=(n(74).Reflect||{}).apply,a=Function.apply,s=!n(63)(function(){o(function(){})});n(24)({target:"Reflect",stat:!0,forced:s},{apply:function(e,t,n){return r(e),i(n),o?o(e,t,n):a.call(e,t,n)}})},function(e,t,n){var r=n(339),i=n(220),o=n(102),a=n(97),s=n(63),l=n(1405),c=(n(74).Reflect||{}).construct,u=s(function(){function e(){}return!(c(function(){},[],e)instanceof e)}),d=!s(function(){c(function(){})}),f=u||d;n(24)({target:"Reflect",stat:!0,forced:f,sham:f},{construct:function(e,t){i(e),o(t);var n=arguments.length<3?e:i(arguments[2]);if(d&&!u)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var s=[null];return s.push.apply(s,t),new(l.apply(e,s))}var f=n.prototype,p=r(a(f)?f:Object.prototype),h=Function.apply.call(e,p,t);return a(h)?h:p}})},function(e,t,n){"use strict";var r=n(220),i=n(97),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(133),i=n(102),o=n(242),a=n(125),s=n(63)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})});n(24)({target:"Reflect",stat:!0,forced:s,sham:!a},{defineProperty:function(e,t,n){i(e),t=o(t,!0),i(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(174).f,i=n(102);n(24)({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=r(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){var r=n(174),i=n(244),o=n(142),a=n(97),s=n(102);n(24)({target:"Reflect",stat:!0},{get:function e(t,n){var l,c,u=arguments.length<3?t:arguments[2];return s(t)===u?t[n]:(l=r.f(t,n))?o(l,"value")?l.value:void 0===l.get?void 0:l.get.call(u):a(c=i(t))?e(c,n,u):void 0}})},function(e,t,n){var r=n(174),i=n(102),o=n(125);n(24)({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return r.f(i(e),t)}})},function(e,t,n){var r=n(244),i=n(102),o=n(627);n(24)({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(e){return r(i(e))}})},function(e,t,n){n(24)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){var r=n(102),i=Object.isExtensible;n(24)({target:"Reflect",stat:!0},{isExtensible:function(e){return r(e),!i||i(e)}})},function(e,t,n){n(24)({target:"Reflect",stat:!0},{ownKeys:n(621)})},function(e,t,n){var r=n(628),i=n(102),o=n(437);n(24)({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(e){i(e);try{var t=r("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(133),i=n(174),o=n(244),a=n(142),s=n(337),l=n(102),c=n(97);n(24)({target:"Reflect",stat:!0},{set:function e(t,n,u){var d,f,p=arguments.length<4?t:arguments[3],h=i.f(l(t),n);if(!h){if(c(f=o(t)))return e(f,n,u,p);h=s(0)}if(a(h,"value")){if(!1===h.writable||!c(p))return!1;if(d=i.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=u,r.f(p,n,d)}else r.f(p,n,s(0,u));return!0}return void 0!==h.set&&(h.set.call(p,u),!0)}})},function(e,t,n){var r=n(436),i=n(779);r&&n(24)({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e,t);try{return r(e,t),!0}catch(e){return!1}}})},function(e,t,n){var r=n(125),i=n(110)("match"),o=n(74),a=n(431),s=n(630),l=n(133).f,c=n(338).f,u=n(635),d=n(507),f=n(189),p=n(63),h=o.RegExp,m=h.prototype,g=/a/g,v=/a/g,y=new h(g)!==g;if(a("RegExp",r&&(!y||p(function(){return v[i]=!1,h(g)!=g||h(v)==v||"/a/i"!=h(g,"i")})))){for(var b=function(e,t){var n=this instanceof b,r=u(e),i=void 0===t;return!n&&r&&e.constructor===b&&i?e:s(y?new h(r&&!i?e.source:e,t):h((r=e instanceof b)?e.source:e,r&&i?d.call(e):t),n?this:m,b)},_=function(e){e in b||l(b,e,{configurable:!0,get:function(){return h[e]},set:function(t){h[e]=t}})},w=c(h),E=0;E<w.length;)_(w[E++]);m.constructor=b,b.prototype=m,f(o,"RegExp",b)}n(372)("RegExp")},function(e,t,n){n(125)&&"g"!=/./g.flags&&n(133).f(RegExp.prototype,"flags",{configurable:!0,get:n(507)})},function(e,t,n){"use strict";var r=n(102),i=n(63),o=n(507),a=n(125),s=/./.toString,l=i(function(){return"/a/b"!=s.call({source:"a",flags:"b"})}),c="toString"!=s.name;(l||c)&&n(189)(RegExp.prototype,"toString",function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?o.call(e):void 0)},{unsafe:!0})},function(e,t,n){"use strict";e.exports=n(503)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(781))},function(e,t,n){"use strict";var r=n(508);n(24)({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var r=n(117),i=n(636),o="".endsWith,a=Math.min,s=n(637)("endsWith");n(24)({target:"String",proto:!0,forced:!s},{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,s=r(t.length),l=void 0===n?s:a(r(n),s),c=String(e);return o?o.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){var r=n(307),i=String.fromCharCode,o=String.fromCodePoint,a=!!o&&1!=o.length;n(24)({target:"String",stat:!0,forced:a},{fromCodePoint:function(e){for(var t,n=[],o=arguments.length,a=0;o>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(636),i=n(637)("includes");n(24)({target:"String",proto:!0,forced:!i},{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(102),i=n(117),o=n(202),a=n(638),s=n(509);n(510)("match",1,function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var l=r(e),c=String(this);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;for(var d,f=[],p=0;null!==(d=s(l,c));){var h=String(d[0]);f[p]=h,""===h&&(l.lastIndex=a(c,i(l.lastIndex),u)),p++}return 0===p?null:f}]})},function(e,t,n){"use strict";var r=n(791),i=n(792);n(24)({target:"String",proto:!0,forced:i},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(791),i=n(792);n(24)({target:"String",proto:!0,forced:i},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){var r=n(188),i=n(117);n(24)({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=i(t.length),o=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<o&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){n(24)({target:"String",proto:!0},{repeat:n(632)})},function(e,t,n){"use strict";var r=n(102),i=n(143),o=n(117),a=n(204),s=n(202),l=n(638),c=n(509),u=Math.max,d=Math.min,f=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(510)("replace",2,function(e,t,n){return[function(n,r){var i=s(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,i){var s=n(t,e,this,i);if(s.done)return s.value;var f=r(e),p=String(this),h="function"==typeof i;h||(i=String(i));var g=f.global;if(g){var v=f.unicode;f.lastIndex=0}for(var y=[];;){var b=c(f,p);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=l(p,o(f.lastIndex),v))}for(var _,w="",E=0,k=0;k<y.length;k++){b=y[k];for(var x=String(b[0]),S=u(d(a(b.index),p.length),0),T=[],C=1;C<b.length;C++)T.push(void 0===(_=b[C])?_:String(_));var O=b.groups;if(h){var A=[x].concat(T,S,p);void 0!==O&&A.push(O);var N=String(i.apply(void 0,A))}else N=m(x,p,S,T,O,i);S>=E&&(w+=p.slice(E,S)+N,E=S+x.length)}return w+p.slice(E)}];function m(e,n,r,o,a,s){var l=r+e.length,c=o.length,u=h;return void 0!==a&&(a=i(a),u=p),t.call(s,u,function(t,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return t;if(u>c){var d=f(u/10);return 0===d?t:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}s=o[u-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var r=n(102),i=n(202),o=n(786),a=n(509);n(510)("search",1,function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var s=r(e),l=String(this),c=s.lastIndex;o(c,0)||(s.lastIndex=0);var u=a(s,l);return o(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},function(e,t,n){"use strict";var r=n(635),i=n(102),o=n(202),a=n(311),s=n(638),l=n(117),c=n(509),u=n(639),d=n(63),f=[].push,p=Math.min,h=!d(function(){return!RegExp(4294967295,"y")});n(510)("split",2,function(e,t,n){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=String(o(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!r(e))return t.call(i,e,a);for(var s,l,c,d=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,m=new RegExp(e.source,p+"g");(s=u.call(m,i))&&!((l=m.lastIndex)>h&&(d.push(i.slice(h,s.index)),s.length>1&&s.index<i.length&&f.apply(d,s.slice(1)),c=s[0].length,h=l,d.length>=a));)m.lastIndex===s.index&&m.lastIndex++;return h===i.length?!c&&m.test("")||d.push(""):d.push(i.slice(h)),d.length>a?d.slice(0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=o(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,r,n):d.call(String(r),t,n)},function(e,r){var o=n(d,e,this,r,d!==t);if(o.done)return o.value;var u=i(e),f=String(this),m=a(u,RegExp),g=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new m(h?u:"^(?:"+u.source+")",v),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===f.length)return null===c(y,f)?[f]:[];for(var _=0,w=0,E=[];w<f.length;){y.lastIndex=h?w:0;var k,x=c(y,h?f:f.slice(w));if(null===x||(k=p(l(y.lastIndex+(h?0:w)),f.length))===_)w=s(f,w,g);else{if(E.push(f.slice(_,w)),E.length===b)return E;for(var S=1;S<=x.length-1;S++)if(E.push(x[S]),E.length===b)return E;w=_=k}}return E.push(f.slice(_)),E}]},!h)},function(e,t,n){"use strict";var r=n(117),i=n(636),o=n(637)("startsWith"),a="".startsWith;n(24)({target:"String",proto:!0,forced:!o},{startsWith:function(e){var t=i(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),o=String(e);return a?a.call(t,o,n):t.slice(n,n+o.length)===o}})},function(e,t,n){"use strict";var r=n(374),i=n(640)("trim");n(24)({target:"String",proto:!0,forced:i},{trim:function(){return r(this,3)}})},function(e,t,n){"use strict";var r=n(374),i=n(640)("trimEnd"),o=i?function(){return r(this,2)}:"".trimEnd;n(24)({target:"String",proto:!0,forced:i},{trimEnd:o,trimRight:o})},function(e,t,n){"use strict";var r=n(374),i=n(640)("trimStart"),o=i?function(){return r(this,1)}:"".trimStart;n(24)({target:"String",proto:!0,forced:i},{trimStart:o,trimLeft:o})},function(e,t,n){"use strict";var r=n(191),i=n(192)("anchor");n(24)({target:"String",proto:!0,forced:i},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("big");n(24)({target:"String",proto:!0,forced:i},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("blink");n(24)({target:"String",proto:!0,forced:i},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("bold");n(24)({target:"String",proto:!0,forced:i},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("fixed");n(24)({target:"String",proto:!0,forced:i},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("fontcolor");n(24)({target:"String",proto:!0,forced:i},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("fontsize");n(24)({target:"String",proto:!0,forced:i},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("italics");n(24)({target:"String",proto:!0,forced:i},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("link");n(24)({target:"String",proto:!0,forced:i},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("small");n(24)({target:"String",proto:!0,forced:i},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("strike");n(24)({target:"String",proto:!0,forced:i},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("sub");n(24)({target:"String",proto:!0,forced:i},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(191),i=n(192)("sup");n(24)({target:"String",proto:!0,forced:i},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){n(278)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(278)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(278)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";var r=n(773),i=n(111),o=i.aTypedArray;i.exportProto("copyWithin",function(e,t){return r.call(o(this),e,t,arguments.length>2?arguments[2]:void 0)})},function(e,t,n){"use strict";var r=n(175)(4),i=n(111),o=i.aTypedArray;i.exportProto("every",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(624),i=n(111),o=i.aTypedArray;i.exportProto("fill",function(e){return r.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(311),i=n(111),o=n(175)(2),a=i.aTypedArray,s=i.aTypedArrayConstructor;i.exportProto("filter",function(e){for(var t=o(a(this),e,arguments.length>1?arguments[1]:void 0),n=r(this,this.constructor),i=0,l=t.length,c=new(s(n))(l);l>i;)c[i]=t[i++];return c})},function(e,t,n){"use strict";var r=n(175)(5),i=n(111),o=i.aTypedArray;i.exportProto("find",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(175)(6),i=n(111),o=i.aTypedArray;i.exportProto("findIndex",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(175)(0),i=n(111),o=i.aTypedArray;i.exportProto("forEach",function(e){r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(641),i=n(111),o=n(794);i.exportStatic("from",o,r)},function(e,t,n){"use strict";var r=n(497)(!0),i=n(111),o=i.aTypedArray;i.exportProto("includes",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(497)(!1),i=n(111),o=i.aTypedArray;i.exportProto("indexOf",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(501),i=n(74).Uint8Array,o=n(111),a=n(110)("iterator"),s=r.values,l=r.keys,c=r.entries,u=o.aTypedArray,d=o.exportProto,f=i&&i.prototype[a],p=!!f&&("values"==f.name||null==f.name),h=function(){return s.call(u(this))};d("entries",function(){return c.call(u(this))}),d("keys",function(){return l.call(u(this))}),d("values",h,!p),d(a,h,!p)},function(e,t,n){"use strict";var r=n(111),i=r.aTypedArray,o=[].join;r.exportProto("join",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(1472),i=n(111),o=i.aTypedArray;i.exportProto("lastIndexOf",function(e){return r.apply(o(this),arguments)})},function(e,t,n){"use strict";var r=n(188),i=n(204),o=n(117),a=[].lastIndexOf,s=!!a&&1/[1].lastIndexOf(1,-0)<0,l=n(502)("lastIndexOf");e.exports=s||l?function(e){if(s)return a.apply(this,arguments)||0;var t=r(this),n=o(t.length),l=n-1;for(arguments.length>1&&(l=Math.min(l,i(arguments[1]))),l<0&&(l=n+l);l>=0;l--)if(l in t&&t[l]===e)return l||0;return-1}:a},function(e,t,n){"use strict";var r=n(311),i=n(111),o=i.aTypedArray,a=i.aTypedArrayConstructor,s=n(175)(1,function(e,t){return new(a(r(e,e.constructor)))(t)});i.exportProto("map",function(e){return s(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(641),i=n(111),o=i.aTypedArrayConstructor;i.exportStatic("of",function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n},r)},function(e,t,n){"use strict";var r=n(111),i=r.aTypedArray,o=[].reduce;r.exportProto("reduce",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(111),i=r.aTypedArray,o=[].reduceRight;r.exportProto("reduceRight",function(e){return o.apply(i(this),arguments)})},function(e,t,n){"use strict";var r=n(111),i=r.aTypedArray;r.exportProto("reverse",function(){for(var e,t=i(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this})},function(e,t,n){"use strict";var r=n(117),i=n(793),o=n(143),a=n(111),s=a.aTypedArray,l=n(63)(function(){new Int8Array(1).set({})});a.exportProto("set",function(e){s(this);var t=i(arguments[1],1),n=this.length,a=o(e),l=r(a.length),c=0;if(l+t>n)throw RangeError("Wrong length");for(;c<l;)this[t+c]=a[c++]},l)},function(e,t,n){"use strict";var r=n(311),i=n(111),o=i.aTypedArray,a=i.aTypedArrayConstructor,s=[].slice,l=n(63)(function(){new Int8Array(1).slice()});i.exportProto("slice",function(e,t){for(var n=s.call(o(this),e,t),i=r(this,this.constructor),l=0,c=n.length,u=new(a(i))(c);c>l;)u[l]=n[l++];return u},l)},function(e,t,n){"use strict";var r=n(175)(3),i=n(111),o=i.aTypedArray;i.exportProto("some",function(e){return r(o(this),e,arguments.length>1?arguments[1]:void 0)})},function(e,t,n){"use strict";var r=n(111),i=r.aTypedArray,o=[].sort;r.exportProto("sort",function(e){return o.call(i(this),e)})},function(e,t,n){"use strict";var r=n(117),i=n(307),o=n(311),a=n(111),s=a.aTypedArray;a.exportProto("subarray",function(e,t){var n=s(this),a=n.length,l=i(e,a);return new(o(n,n.constructor))(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,r((void 0===t?a:i(t,a))-l))})},function(e,t,n){"use strict";var r=n(74).Int8Array,i=n(63),o=n(111),a=o.aTypedArray,s=[].toLocaleString,l=[].slice,c=!!r&&i(function(){s.call(new r(1))}),u=i(function(){return[1,2].toLocaleString()!=new r([1,2]).toLocaleString()})||!i(function(){r.prototype.toLocaleString.call([1,2])});o.exportProto("toLocaleString",function(){return s.apply(c?l.call(a(this)):a(this),arguments)},u)},function(e,t,n){"use strict";var r=n(74).Uint8Array,i=r&&r.prototype,o=n(111),a=[].toString,s=[].join;n(63)(function(){a.call({})})&&(a=function(){return s.call(this)}),o.exportProto("toString",a,(i||{}).toString!=a)},function(e,t,n){"use strict";var r,i=n(74),o=n(373),a=n(341),s=n(795),l=n(97),c=n(203).enforce,u=n(765),d=!i.ActiveXObject&&"ActiveXObject"in i,f=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},h=e.exports=n(503)("WeakMap",p,s,!0,!0);if(u&&d){r=s.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var m=h.prototype,g=m.delete,v=m.has,y=m.get,b=m.set;o(m,{delete:function(e){if(l(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),g.call(this,e)||t.frozen.delete(e)}return g.call(this,e)},has:function(e){if(l(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),v.call(this,e)||t.frozen.has(e)}return v.call(this,e)},get:function(e){if(l(e)&&!f(e)){var t=c(this);return t.frozen||(t.frozen=new r),v.call(this,e)?y.call(this,e):t.frozen.get(e)}return y.call(this,e)},set:function(e,t){if(l(e)&&!f(e)){var n=c(this);n.frozen||(n.frozen=new r),v.call(this,e)?b.call(this,e,t):n.frozen.set(e,t)}else b.call(this,e,t);return this}})}},function(e,t,n){"use strict";n(503)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(795),!1,!0)},function(e,t,n){var r=n(796),i=n(1488),o=n(163),a=n(74);for(var s in r){var l=a[s],c=l&&l.prototype;if(c&&c.forEach!==i)try{o(c,"forEach",i)}catch(e){c.forEach=i}}},function(e,t,n){"use strict";var r=[].forEach,i=n(175)(0),o=n(502)("forEach");e.exports=o?function(e){return i(this,e,arguments[1])}:r},function(e,t,n){var r=n(796),i=n(501),o=n(74),a=n(163),s=n(110),l=s("iterator"),c=s("toStringTag"),u=i.values;for(var d in r){var f=o[d],p=f&&f.prototype;if(p){if(p[l]!==u)try{a(p,l,u)}catch(e){p[l]=u}if(p[c]||a(p,c,d),r[d])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(e){p[h]=i[h]}}}},function(e,t,n){var r=n(74),i=n(633),o=!r.setImmediate||!r.clearImmediate;n(24)({global:!0,bind:!0,enumerable:!0,forced:o},{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){var r=n(787),i=n(74).process,o="process"==n(219)(i);n(24)({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){var t=o&&i.domain;r(t?t.bind(e):e)}})},function(e,t,n){"use strict";n(790);var r,i=n(125),o=n(797),a=n(74).URL,s=n(770),l=n(189),c=n(310),u=n(142),d=n(784),f=n(775),p=n(508),h=n(1493),m=n(798),g=m.URLSearchParams,v=m.getState,y=n(203),b=y.set,_=y.getterFor("URL"),w=Math.pow,E=/[a-zA-Z]/,k=/[a-zA-Z0-9+\-.]/,x=/\d/,S=/^(0x|0X)/,T=/^[0-7]+$/,C=/^\d+$/,O=/^[0-9A-Fa-f]+$/,A=/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/,N=/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/,I=/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,M=/\u0009|\u000A|\u000D/g,j=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=P(t.slice(1,-1))))return"Invalid host";e.host=n}else if(H(e)){if(t=h(t),A.test(t))return"Invalid host";if(null===(n=L(t)))return"Invalid host";e.host=n}else{if(N.test(t))return"Invalid host";for(n="",r=f(t),i=0;i<r.length;i++)n+=q(r[i],R);e.host=n}},L=function(e){var t,n,r,i,o,a,s,l=e.split(".");if(""==l[l.length-1]&&l.length&&l.pop(),(t=l.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=l[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=S.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?C:8==o?T:O).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=w(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*w(256,3-r);return s},P=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,f=function(){return e.charAt(d)};if(":"==f()){if(":"!=e.charAt(1))return;d+=2,u=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&O.test(f());)t=16*t+parseInt(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;d++}if(!x.test(f()))return;for(;x.test(f());){if(o=parseInt(f(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;d++}l[c]=256*l[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(a=c-u,c=7;0!=c&&a>0;)s=l[c],l[c--]=l[u+a-1],l[u+--a]=s;else if(8!=c)return;return l},D=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Math.floor(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},R={},F=d({},R,{" ":1,'"':1,"<":1,">":1,"`":1}),B=d({},F,{"#":1,"?":1,"{":1,"}":1}),U=d({},B,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),q=function(e,t){var n=p(e,0);return n>32&&n<127&&!u(t,e)?e:encodeURIComponent(e)},z={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},H=function(e){return u(z,e.scheme)},W=function(e){return""!=e.username||""!=e.password},$=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Y=function(e,t){var n;return 2==e.length&&E.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},V=function(e){var t;return e.length>1&&Y(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},K=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&Y(t[0],!0)||t.pop()},G=function(e){return"."===e||"%2e"===e.toLowerCase()},X={},Q={},Z={},J={},ee={},te={},ne={},re={},ie={},oe={},ae={},se={},le={},ce={},ue={},de={},fe={},pe={},he={},me={},ge={},ve=function(e,t,n,i){var o,a,s,l,c,d=n||X,p=0,h="",m=!1,g=!1,v=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(I,"")),t=t.replace(M,""),o=f(t);p<=o.length;){switch(a=o[p],d){case X:if(!a||!E.test(a)){if(n)return"Invalid scheme";d=Z;continue}h+=a.toLowerCase(),d=Q;break;case Q:if(a&&(k.test(a)||"+"==a||"-"==a||"."==a))h+=a.toLowerCase();else{if(":"!=a){if(n)return"Invalid scheme";h="",d=Z,p=0;continue}if(n&&(H(e)!=u(z,h)||"file"==h&&(W(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=h,n)return void(H(e)&&z[e.scheme]==e.port&&(e.port=null));h="","file"==e.scheme?d=ce:H(e)&&i&&i.scheme==e.scheme?d=J:H(e)?d=re:"/"==o[p+1]?(d=ee,p++):(e.cannotBeABaseURL=!0,e.path.push(""),d=he)}break;case Z:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){e.scheme=i.scheme,e.path=i.path.slice(),e.query=i.query,e.fragment="",e.cannotBeABaseURL=!0,d=ge;break}d="file"==i.scheme?ce:te;continue;case J:if("/"!=a||"/"!=o[p+1]){d=te;continue}d=ie,p++;break;case ee:if("/"==a){d=oe;break}d=pe;continue;case te:if(e.scheme=i.scheme,a==r)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query;else if("/"==a||"\\"==a&&H(e))d=ne;else if("?"==a)e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query="",d=me;else{if("#"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.path.pop(),d=pe;continue}e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,e.path=i.path.slice(),e.query=i.query,e.fragment="",d=ge}break;case ne:if(!H(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=i.username,e.password=i.password,e.host=i.host,e.port=i.port,d=pe;continue}d=oe}else d=ie;break;case re:if(d=ie,"/"!=a||"/"!=h.charAt(p+1))continue;p++;break;case ie:if("/"!=a&&"\\"!=a){d=oe;continue}break;case oe:if("@"==a){m&&(h="%40"+h),m=!0,s=f(h);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||v){var _=q(b,U);v?e.password+=_:e.username+=_}else v=!0}h=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(m&&""==h)return"Invalid authority";p-=f(h).length+1,h="",d=ae}else h+=a;break;case ae:case se:if(n&&"file"==e.scheme){d=de;continue}if(":"!=a||g){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)){if(H(e)&&""==h)return"Invalid host";if(n&&""==h&&(W(e)||null!==e.port))return;if(l=j(e,h))return l;if(h="",d=fe,n)return;continue}"["==a?g=!0:"]"==a&&(g=!1),h+=a}else{if(""==h)return"Invalid host";if(l=j(e,h))return l;if(h="",d=le,n==se)return}break;case le:if(!x.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&H(e)||n){if(""!=h){var w=parseInt(h,10);if(w>65535)return"Invalid port";e.port=H(e)&&w===z[e.scheme]?null:w,h=""}if(n)return;d=fe;continue}return"Invalid port"}h+=a;break;case ce:if(e.scheme="file","/"==a||"\\"==a)d=ue;else{if(!i||"file"!=i.scheme){d=pe;continue}if(a==r)e.host=i.host,e.path=i.path.slice(),e.query=i.query;else if("?"==a)e.host=i.host,e.path=i.path.slice(),e.query="",d=me;else{if("#"!=a){V(o.slice(p).join(""))||(e.host=i.host,e.path=i.path.slice(),K(e)),d=pe;continue}e.host=i.host,e.path=i.path.slice(),e.query=i.query,e.fragment="",d=ge}}break;case ue:if("/"==a||"\\"==a){d=de;break}i&&"file"==i.scheme&&!V(o.slice(p).join(""))&&(Y(i.path[0],!0)?e.path.push(i.path[0]):e.host=i.host),d=pe;continue;case de:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Y(h))d=pe;else if(""==h){if(e.host="",n)return;d=fe}else{if(l=j(e,h))return l;if("localhost"==e.host&&(e.host=""),n)return;h="",d=fe}continue}h+=a;break;case fe:if(H(e)){if(d=pe,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(d=pe,"/"!=a))continue}else e.fragment="",d=ge;else e.query="",d=me;break;case pe:if(a==r||"/"==a||"\\"==a&&H(e)||!n&&("?"==a||"#"==a)){if(".."===(c=(c=h).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(K(e),"/"==a||"\\"==a&&H(e)||e.path.push("")):G(h)?"/"==a||"\\"==a&&H(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Y(h)&&(e.host&&(e.host=""),h=h.charAt(0)+":"),e.path.push(h)),h="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",d=me):"#"==a&&(e.fragment="",d=ge)}else h+=q(a,B);break;case he:"?"==a?(e.query="",d=me):"#"==a?(e.fragment="",d=ge):a!=r&&(e.path[0]+=q(a,R));break;case me:n||"#"!=a?a!=r&&("'"==a&&H(e)?e.query+="%27":e.query+="#"==a?"%23":q(a,R)):(e.fragment="",d=ge);break;case ge:a!=r&&(e.fragment+=q(a,F))}p++}},ye=function(e){var t,n,r=c(this,ye,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=b(r,{type:"URL"});if(void 0!==o)if(o instanceof ye)t=_(o);else if(n=ve(t={},String(o)))throw TypeError(n);if(n=ve(s,a,null,t))throw TypeError(n);var l=s.searchParams=new g,u=v(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},i||(r.href=_e.call(r),r.origin=we.call(r),r.protocol=Ee.call(r),r.username=ke.call(r),r.password=xe.call(r),r.host=Se.call(r),r.hostname=Te.call(r),r.port=Ce.call(r),r.pathname=Oe.call(r),r.search=Ae.call(r),r.searchParams=Ne.call(r),r.hash=Ie.call(r))},be=ye.prototype,_e=function(){var e=_(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",W(e)&&(c+=n+(r?":"+r:"")+"@"),c+=D(i),null!==o&&(c+=":"+o)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(c+="?"+s),null!==l&&(c+="#"+l),c},we=function(){var e=_(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&H(e)?t+"://"+D(e.host)+(null!==n?":"+n:""):"null"},Ee=function(){return _(this).scheme+":"},ke=function(){return _(this).username},xe=function(){return _(this).password},Se=function(){var e=_(this),t=e.host,n=e.port;return null===t?"":null===n?D(t):D(t)+":"+n},Te=function(){var e=_(this).host;return null===e?"":D(e)},Ce=function(){var e=_(this).port;return null===e?"":String(e)},Oe=function(){var e=_(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Ae=function(){var e=_(this).query;return e?"?"+e:""},Ne=function(){return _(this).searchParams},Ie=function(){var e=_(this).fragment;return e?"#"+e:""},Me=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&s(be,{href:Me(_e,function(e){var t=_(this),n=String(e),r=ve(t,n);if(r)throw TypeError(r);v(t.searchParams).updateSearchParams(t.query)}),origin:Me(we),protocol:Me(Ee,function(e){var t=_(this);ve(t,String(e)+":",X)}),username:Me(ke,function(e){var t=_(this),n=f(String(e));if(!$(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=q(n[r],U)}}),password:Me(xe,function(e){var t=_(this),n=f(String(e));if(!$(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=q(n[r],U)}}),host:Me(Se,function(e){var t=_(this);t.cannotBeABaseURL||ve(t,String(e),ae)}),hostname:Me(Te,function(e){var t=_(this);t.cannotBeABaseURL||ve(t,String(e),se)}),port:Me(Ce,function(e){var t=_(this);$(t)||(""==(e=String(e))?t.port=null:ve(t,e,le))}),pathname:Me(Oe,function(e){var t=_(this);t.cannotBeABaseURL||(t.path=[],ve(t,e+"",fe))}),search:Me(Ae,function(e){var t=_(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",ve(t,e,me)),v(t.searchParams).updateSearchParams(t.query)}),searchParams:Me(Ne),hash:Me(Ie,function(e){var t=_(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",ve(t,e,ge)):t.fragment=null})}),l(be,"toJSON",function(){return _e.call(this)},{enumerable:!0}),l(be,"toString",function(){return _e.call(this)},{enumerable:!0}),a){var je=a.createObjectURL,Le=a.revokeObjectURL;je&&l(ye,"createObjectURL",function(e){return je.apply(a,arguments)}),Le&&l(ye,"revokeObjectURL",function(e){return Le.apply(a,arguments)})}n(243)(ye,"URL"),n(24)({global:!0,forced:!o,sham:!i},{URL:ye})},function(e,t,n){"use strict";var r=/[^\0-\u007E]/,i=/[\u002E\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(e){return e+22+75*(e<26)},c=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;r+=36)e=a(e/35);return a(r+36*e/(e+38))},u=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,u=128,d=0,f=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(s(n));var p=r.length,h=p;for(p&&r.push("-");h<i;){var m=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=u&&n<m&&(m=n);var g=h+1;if(m-u>a((2147483647-d)/g))throw RangeError(o);for(d+=(m-u)*g,u=m,t=0;t<e.length;t++){if((n=e[t])<u&&++d>2147483647)throw RangeError(o);if(n==u){for(var v=d,y=36;;y+=36){var b=y<=f?1:y>=f+26?26:y-f;if(v<b)break;var _=v-b,w=36-b;r.push(s(l(b+_%w))),v=a(_/w)}r.push(s(l(v))),f=c(d,g,h==p),d=0,++h}}++d,++u}return r.join("")};e.exports=function(e){var t,n,o=[],a=e.toLowerCase().replace(i,".").split(".");for(t=0;t<a.length;t++)n=a[t],o.push(r.test(n)?"xn--"+u(n):n);return o.join(".")}},function(e,t,n){var r=n(102),i=n(435);e.exports=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},function(e,t,n){"use strict";n(24)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(800),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function v(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function _(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(v(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var k=E.prototype=new w;k.constructor=E,r(k,_.prototype),k.isPureReactComponent=!0;var x={current:null},S=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:x.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var A=/\/+/g,N=[];function I(e,t,n,r){if(N.length){var i=N.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function M(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case o:case a:l=!0}}if(l)return r(i,t,""===n?"."+L(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+L(s=t[c],c);l+=e(s,u,r,i)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=g&&t[g]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=e(s=s.value,u=n+L(s,c++),r,i);else if("object"===s)throw r=""+t,Error(v(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function L(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function P(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?R(e,r,n,function(e){return e}):null!=e&&(O(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function R(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),j(e,D,t=I(t,o,r,i)),M(t)}var F={current:null};function B(){var e=F.current;if(null===e)throw Error(v(321));return e}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return R(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,P,t=I(null,null,t,n)),M(t)},count:function(e){return j(e,function(){return null},null)},toArray:function(e){var t=[];return R(e,t,null,function(e){return e}),t},only:function(e){if(!O(e))throw Error(v(143));return e}},t.Component=_,t.Fragment=s,t.Profiler=c,t.PureComponent=E,t.StrictMode=l,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null==e)throw Error(v(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)S.call(t,u)&&!T.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.13.1"},function(e,t,n){"use strict";
/** @license React v16.13.0
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r=n(0),i=n(800),o=n(1498);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=!1,l=null,c=!1,u=null,d={onError:function(e){s=!0,l=e}};function f(e,t,n,r,i,o,a,c,u){s=!1,l=null,function(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}.apply(d,arguments)}var p=null,h=null,m=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,d,p,h){if(f.apply(this,arguments),s){if(!s)throw Error(a(198));var m=l;s=!1,l=null,c||(c=!0,u=m)}}(r,t,void 0,e),e.currentTarget=null}var v=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;v.hasOwnProperty("ReactCurrentDispatcher")||(v.ReactCurrentDispatcher={current:null}),v.hasOwnProperty("ReactCurrentBatchConfig")||(v.ReactCurrentBatchConfig={suspense:null});var y=/^(.*)[\\\/]/,b="function"==typeof Symbol&&Symbol.for,_=b?Symbol.for("react.element"):60103,w=b?Symbol.for("react.portal"):60106,E=b?Symbol.for("react.fragment"):60107,k=b?Symbol.for("react.strict_mode"):60108,x=b?Symbol.for("react.profiler"):60114,S=b?Symbol.for("react.provider"):60109,T=b?Symbol.for("react.context"):60110,C=b?Symbol.for("react.concurrent_mode"):60111,O=b?Symbol.for("react.forward_ref"):60112,A=b?Symbol.for("react.suspense"):60113,N=b?Symbol.for("react.suspense_list"):60120,I=b?Symbol.for("react.memo"):60115,M=b?Symbol.for("react.lazy"):60116,j=b?Symbol.for("react.block"):60121,L="function"==typeof Symbol&&Symbol.iterator;function P(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}function D(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case E:return"Fragment";case w:return"Portal";case x:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return"Context.Consumer";case S:return"Context.Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case I:return D(e.type);case j:return D(e.render);case M:if(e=1===e._status?e._result:null)return D(e)}return null}function R(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=D(e.type);n=null,r&&(n=D(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(y,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var F=null,B={};function U(){if(F)for(var e in B){var t=B[e],n=F.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!z[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in z[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,l=r;if(H.hasOwnProperty(l))throw Error(a(99,l));H[l]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&q(c[i],s,l);i=!0}else o.registrationName?(q(o.registrationName,s,l),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function q(e,t,n){if(W[e])throw Error(a(100,e));W[e]=t,$[e]=t.eventTypes[n].dependencies}var z=[],H={},W={},$={};function Y(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!B.hasOwnProperty(t)||B[t]!==r){if(B[t])throw Error(a(102,t));B[t]=r,n=!0}}n&&U()}var V=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),K=null,G=null,X=null;function Q(e){if(e=h(e)){if("function"!=typeof K)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),K(e.stateNode,e.type,t))}}function Z(e){G?X?X.push(e):X=[e]:G=e}function J(){if(G){var e=G,t=X;if(X=G=null,Q(e),t)for(e=0;e<t.length;e++)Q(t[e])}}function ee(e,t){return e(t)}function te(e,t,n,r,i){return e(t,n,r,i)}function ne(){}var re=ee,ie=!1,oe=!1;function ae(){null===G&&null===X||(ne(),J())}function se(e,t,n){if(oe)return e(t,n);oe=!0;try{return re(e,t,n)}finally{oe=!1,ae()}}var le=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ce=Object.prototype.hasOwnProperty,ue={},de={};function fe(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new fe(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new fe(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new fe(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new fe(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new fe(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new fe(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){pe[e]=new fe(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){pe[e]=new fe(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){pe[e]=new fe(e,5,!1,e.toLowerCase(),null,!1)});var he=/[\-:]([a-z])/g;function me(e){return e[1].toUpperCase()}function ge(e,t,n,r){var i=pe.hasOwnProperty(t)?pe[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!ce.call(de,e)||!ce.call(ue,e)&&(le.test(e)?de[e]=!0:(ue[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function ve(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function be(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ye(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function we(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ve(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&ge(e,"checked",t,!1)}function xe(e,t){ke(e,t);var n=ve(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ve(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ve(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ve(n)}}function Ie(e,t){var n=ve(t.value),r=ve(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(he,me);pe[t]=new fe(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(he,me);pe[t]=new fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(he,me);pe[t]=new fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new fe(e,1,!1,e.toLowerCase(),null,!1)}),pe.xlinkHref=new fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){pe[e]=new fe(e,1,!1,e.toLowerCase(),null,!0)});var je="http://www.w3.org/1999/xhtml",Le="http://www.w3.org/2000/svg";function Pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Re,Fe,Be=(Fe=function(e,t){if(e.namespaceURI!==Le||"innerHTML"in e)e.innerHTML=t;else{for((Re=Re||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Re.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Fe(e,t)})}:Fe);function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ze={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},He={},We={};function $e(e){if(He[e])return He[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return He[e]=n[t];return e}V&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var Ye=$e("animationend"),Ve=$e("animationiteration"),Ke=$e("animationstart"),Ge=$e("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Je(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Je(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(c)throw e=u,c=!1,u=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!V)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function ft(e,t,n,r){if(ut.length){var i=ut.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=An(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=lt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<z.length;l++){var c=z[l];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=rt(s,c))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Vt(e,t)}n.set(e,null)}}var mt,gt,vt,yt=!1,bt=[],_t=null,wt=null,Et=null,kt=new Map,xt=new Map,St=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ot(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function At(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function Nt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=Ot(t,n,r,i,o),null!==t&&(null!==(t=Nn(t))&&gt(t)),e):(e.eventSystemFlags|=r,e)}function It(e){var t=An(e.target);if(null!==t){var n=Je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,function(){vt(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Nn(t);return null!==n&&gt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){Mt(e)&&n.delete(t)}function Lt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=Nn(e.blockedOn))&&mt(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==_t&&Mt(_t)&&(_t=null),null!==wt&&Mt(wt)&&(wt=null),null!==Et&&Mt(Et)&&(Et=null),kt.forEach(jt),xt.forEach(jt)}function Pt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Lt)))}function Dt(e){function t(t){return Pt(t,e)}if(0<bt.length){Pt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Pt(_t,e),null!==wt&&Pt(wt,e),null!==Et&&Pt(Et,e),kt.forEach(t),xt.forEach(t),n=0;n<St.length;n++)(r=St[n]).blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&null===(n=St[0]).blockedOn;)It(n),null===n.blockedOn&&St.shift()}var Rt={},Ft=new Map,Bt=new Map,Ut=["abort","abort",Ye,"animationEnd",Ve,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Ge,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),Ft.set(r,o),Rt[i]=o}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(Ut,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<zt.length;Ht++)Bt.set(zt[Ht],0);var Wt=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Yt=!0;function Vt(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=function(e,t,n,r){ie||ne();var i=Gt,o=ie;ie=!0;try{te(i,e,t,n,r)}finally{(ie=o)||ae()}}.bind(null,t,1,e);break;case 1:r=function(e,t,n,r){$t(Wt,Gt.bind(null,e,t,n,r))}.bind(null,t,1,e);break;default:r=Gt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Gt(e,t,n,r){if(Yt)if(0<bt.length&&-1<Tt.indexOf(e))e=Ot(null,e,t,n,r),bt.push(e);else{var i=Xt(e,t,n,r);if(null===i)At(e,r);else if(-1<Tt.indexOf(e))e=Ot(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return _t=Nt(_t,e,t,n,r,i),!0;case"dragenter":return wt=Nt(wt,e,t,n,r,i),!0;case"mouseover":return Et=Nt(Et,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return kt.set(o,Nt(kt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,xt.set(o,Nt(xt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){At(e,r),e=ft(e,r,null,t);try{se(pt,e)}finally{dt(e)}}}}function Xt(e,t,n,r){if(null!==(n=An(n=lt(r)))){var i=Je(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ft(e,r,n,t);try{se(pt,e)}finally{dt(e)}return null}var Qt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zt=["Webkit","ms","Moz","O"];function Jt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Qt.hasOwnProperty(e)&&Qt[e]?(""+t).trim():t+"px"}function en(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Jt(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Qt).forEach(function(e){Zt.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qt[t]=Qt[e]})});var tn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nn(e,t){if(t){if(tn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function rn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=je;function an(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=$[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function sn(){}function ln(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var n,r=cn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cn(r)}}function dn(){for(var e=window,t=ln();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=ln((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pn="$",hn="/$",mn="$?",gn="$!",vn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _n(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wn="function"==typeof setTimeout?setTimeout:void 0,En="function"==typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function xn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===pn||n===gn||n===mn){if(0===t)return e;t--}else n===hn&&t++}e=e.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),Tn="__reactInternalInstance$"+Sn,Cn="__reactEventHandlers$"+Sn,On="__reactContainere$"+Sn;function An(e){var t=e[Tn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[On]||n[Tn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=xn(e);null!==e;){if(n=e[Tn])return n;e=xn(e)}return t}n=(e=n).parentNode}return null}function Nn(e){return!(e=e[Tn]||e[On])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Mn(e){return e[Cn]||null}function jn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Ln(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Pn(e,t,n){(t=Ln(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=jn(t);for(t=n.length;0<t--;)Pn(n[t],"captured",e);for(t=0;t<n.length;t++)Pn(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Ln(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Fn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function Bn(e){it(e,Dn)}var Un=null,qn=null,zn=null;function Hn(){if(zn)return zn;var e,t,n=qn,r=n.length,i="value"in Un?Un.value:Un.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return zn=i.slice(e,1<t?1-t:void 0)}function Wn(){return!0}function $n(){return!1}function Yn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Wn:$n,this.isPropagationStopped=$n,this}function Vn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Vn,e.release=Kn}i(Yn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wn)},persist:function(){this.isPersistent=Wn},isPersistent:$n,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$n,this._dispatchInstances=this._dispatchListeners=null}}),Yn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Yn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Yn);var Xn=Yn.extend({data:null}),Qn=Yn.extend({data:null}),Zn=[9,13,27,32],Jn=V&&"CompositionEvent"in window,er=null;V&&"documentMode"in document&&(er=document.documentMode);var tr=V&&"TextEvent"in window&&!er,nr=V&&(!Jn||er&&8<er&&11>=er),rr=String.fromCharCode(32),ir={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ar(e,t){switch(e){case"keyup":return-1!==Zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function sr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var lr=!1;var cr={eventTypes:ir,extractEvents:function(e,t,n,r){var i;if(Jn)e:{switch(e){case"compositionstart":var o=ir.compositionStart;break e;case"compositionend":o=ir.compositionEnd;break e;case"compositionupdate":o=ir.compositionUpdate;break e}o=void 0}else lr?ar(e,n)&&(o=ir.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=ir.compositionStart);return o?(nr&&"ko"!==n.locale&&(lr||o!==ir.compositionStart?o===ir.compositionEnd&&lr&&(i=Hn()):(qn="value"in(Un=r)?Un.value:Un.textContent,lr=!0)),o=Xn.getPooled(o,t,n,r),i?o.data=i:null!==(i=sr(n))&&(o.data=i),Bn(o),i=o):i=null,(e=tr?function(e,t){switch(e){case"compositionend":return sr(t);case"keypress":return 32!==t.which?null:(or=!0,rr);case"textInput":return(e=t.data)===rr&&or?null:e;default:return null}}(e,n):function(e,t){if(lr)return"compositionend"===e||!Jn&&ar(e,t)?(e=Hn(),zn=qn=Un=null,lr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(ir.beforeInput,t,n,r)).data=e,Bn(t)):t=null,null===i?t:null===t?i:[i,t]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var fr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=Yn.getPooled(fr.change,e,t,n)).type="change",Z(n),Bn(e),e}var hr=null,mr=null;function gr(e){st(e)}function vr(e){if(_e(In(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function _r(){hr&&(hr.detachEvent("onpropertychange",wr),mr=hr=null)}function wr(e){if("value"===e.propertyName&&vr(mr))if(e=pr(mr,e,lt(e)),ie)st(e);else{ie=!0;try{ee(gr,e)}finally{ie=!1,ae()}}}function Er(e,t,n){"focus"===e?(_r(),mr=n,(hr=t).attachEvent("onpropertychange",wr)):"blur"===e&&_r()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(mr)}function xr(e,t){if("click"===e)return vr(t)}function Sr(e,t){if("input"===e||"change"===e)return vr(t)}V&&(br=ct("input")&&(!document.documentMode||9<document.documentMode));var Tr={eventTypes:fr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?In(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(dr(i))if(br)a=Sr;else{a=kr;var s=Er}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=xr);if(a&&(a=a(e,t)))return pr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Cr=Yn.extend({view:null,detail:null}),Or={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ar(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Or[e])&&!!t[e]}function Nr(){return Ar}var Ir=0,Mr=0,jr=!1,Lr=!1,Pr=Cr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ir;return Ir=e.screenX,jr?"mousemove"===e.type?e.screenX-t:0:(jr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Mr;return Mr=e.screenY,Lr?"mousemove"===e.type?e.screenY-t:0:(Lr=!0,0)}}),Dr=Pr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?An(t):null)&&(t!==Je(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Pr,l=Rr.mouseLeave,c=Rr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Dr,l=Rr.pointerLeave,c=Rr.pointerEnter,u="pointer");if(e=null==a?o:In(a),o=null==t?o:In(t),(l=s.getPooled(l,a,n,r)).type=u+"leave",l.target=e,l.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(c=u,a=0,e=s=r;e;e=jn(e))a++;for(e=0,t=c;t;t=jn(t))e++;for(;0<a-e;)s=jn(s),a--;for(;0<e-a;)c=jn(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=jn(s),c=jn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=jn(r);for(r=[];u&&u!==c&&(null===(a=u.alternate)||a!==c);)r.push(u),u=jn(u);for(u=0;u<s.length;u++)Rn(s[u],"bubbled",l);for(u=r.length;0<u--;)Rn(r[u],"captured",n);return 0==(64&i)?[l]:[l,n]}};var Br="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function qr(e,t){if(Br(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!Br(e[n[r]],t[n[r]]))return!1;return!0}var zr=V&&"documentMode"in document&&11>=document.documentMode,Hr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wr=null,$r=null,Yr=null,Vr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==Wr||Wr!==ln(n)?null:("selectionStart"in(n=Wr)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Yr&&qr(Yr,n)?null:(Yr=n,(e=Yn.getPooled(Hr.select,$r,e,t)).type="select",e.target=Wr,Bn(e),e))}var Gr={eventTypes:Hr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=$.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?In(t):window,e){case"focus":(dr(i)||"true"===i.contentEditable)&&(Wr=i,$r=t,Yr=null);break;case"blur":Yr=$r=Wr=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,Kr(n,r);case"selectionchange":if(zr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Xr=Yn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Yn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zr=Cr.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var ei={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ti={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ni=Cr.extend({key:function(e){if(e.key){var t=ei[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ti[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ri=Pr.extend({dataTransfer:null}),ii=Cr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nr}),oi=Yn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ai=Pr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),si={eventTypes:Rt,extractEvents:function(e,t,n,r){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=ni;break;case"blur":case"focus":e=Zr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ri;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ii;break;case Ye:case Ve:case Ke:e=Xr;break;case Ge:e=oi;break;case"scroll":e=Cr;break;case"wheel":e=ai;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Yn}return Bn(t=e.getPooled(i,t,n,r)),t}};if(F)throw Error(a(101));F=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),U(),p=Mn,h=Nn,m=In,Y({SimpleEventPlugin:si,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Tr,SelectEventPlugin:Gr,BeforeInputEventPlugin:cr});var li=[],ci=-1;function ui(e){0>ci||(e.current=li[ci],li[ci]=null,ci--)}function di(e,t){li[++ci]=e.current,e.current=t}var fi={},pi={current:fi},hi={current:!1},mi=fi;function gi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!=(e=e.childContextTypes)}function yi(){ui(hi),ui(pi)}function bi(e,t,n){if(pi.current!==fi)throw Error(a(168));di(pi,t),di(hi,n)}function _i(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,D(t)||"Unknown",o));return i({},n,{},r)}function wi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,mi=pi.current,di(pi,e),di(hi,hi.current),!0}function Ei(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=_i(e,t,mi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(pi),di(pi,e)):ui(hi),di(hi,n)}var ki=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ti=o.unstable_requestPaint,Ci=o.unstable_now,Oi=o.unstable_getCurrentPriorityLevel,Ai=o.unstable_ImmediatePriority,Ni=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,ji=o.unstable_IdlePriority,Li={},Pi=o.unstable_shouldYield,Di=void 0!==Ti?Ti:function(){},Ri=null,Fi=null,Bi=!1,Ui=Ci(),qi=1e4>Ui?Ci:function(){return Ci()-Ui};function zi(){switch(Oi()){case Ai:return 99;case Ni:return 98;case Ii:return 97;case Mi:return 96;case ji:return 95;default:throw Error(a(332))}}function Hi(e){switch(e){case 99:return Ai;case 98:return Ni;case 97:return Ii;case 96:return Mi;case 95:return ji;default:throw Error(a(332))}}function Wi(e,t){return e=Hi(e),ki(e,t)}function $i(e,t,n){return e=Hi(e),xi(e,t,n)}function Yi(e){return null===Ri?(Ri=[e],Fi=xi(Ai,Ki)):Ri.push(e),Li}function Vi(){if(null!==Fi){var e=Fi;Fi=null,Si(e)}Ki()}function Ki(){if(!Bi&&null!==Ri){Bi=!0;var e=0;try{var t=Ri;Wi(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),xi(Ai,Vi),t}finally{Bi=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Xi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Zi=null,Ji=null,eo=null;function to(){eo=Ji=Zi=null}function no(e){var t=Qi.current;ui(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function io(e,t){Zi=e,eo=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ma=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===Zi)throw Error(a(308));Ji=t,Zi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function co(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.alternate;null!==n&&lo(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function po(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,o.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var c=o.baseState,u=0,d=null,f=null,p=null;if(null!==l)for(var h=l;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(f=p=m,d=c):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),ml(s,h.suspenseConfig);e:{var g=e,v=h;switch(s=t,m=n,v.tag){case 1:if("function"==typeof(g=v.payload)){c=g.call(m,c,s);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null==(s="function"==typeof(g=v.payload)?g.call(m,c,s):g))break e;c=i({},c,s);break e;case 2:ao=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===l){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=l,o.baseQueue=a=s,o.shared.pending=null}}null===p?d=c:p.next=f,o.baseState=d,o.baseQueue=p,gl(u),e.expirationTime=u,e.memoizedState=c}}function ho(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var mo=v.ReactCurrentBatchConfig,go=(new r.Component).refs;function vo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=rl(),i=mo.suspense;(i=co(r=il(r,e,i),i)).payload=t,null!=n&&(i.callback=n),uo(e,i),ol(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=rl(),i=mo.suspense;(i=co(r=il(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),uo(e,i),ol(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=rl(),r=mo.suspense;(r=co(n=il(n,e,r),r)).tag=2,null!=t&&(r.callback=t),uo(e,r),ol(e,n)}};function bo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!qr(n,r)||!qr(i,o))}function _o(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=vi(t)?mi:pi.current,o=(r=null!=(r=t.contextTypes))?gi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function wo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yo.enqueueReplaceState(t,t.state,null)}function Eo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=vi(t)?mi:pi.current,i.context=gi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&yo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var ko=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===go&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ll(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Rl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Pl(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Dl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Rl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Pl(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case w:return(t=Fl(t,e.mode,n)).return=e,t}if(ko(t)||P(t))return(t=Dl(t,e.mode,n,null)).return=e,t;So(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===E?d(e,t,n.props.children,r,i):c(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null}if(ko(n)||P(n))return null!==i?null:d(e,t,n,r,null);So(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return e=e.get(null===r.key?n:r.key)||null,r.type===E?d(t,e,r.props.children,i,r.key):c(t,e,r,i);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ko(r)||P(r))return d(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function m(i,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(i,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(i,d),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(i,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(i,s[m],l))&&(a=o(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(i,d);m<s.length;m++)null!==(g=h(d,i,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),c}function g(i,s,l,c){var u=P(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(i,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(i,y.value,c))&&(s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(i,m);!y.done;g++,y=l.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(i,e)}),u}return function(e,r,o,l){var c="object"==typeof o&&null!==o&&o.type===E&&null===o.key;c&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case _:e:{for(u=o.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(o.type===E){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=xo(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===E?((r=Dl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Pl(o.type,o.key,o.props,null,e.mode,l)).ref=xo(e,r,o),l.return=e,e=l)}return s(e);case w:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Fl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Rl(o,e.mode,l)).return=e,e=r),s(e);if(ko(o))return m(e,r,o,l);if(P(o))return g(e,r,o,l);if(u&&So(e,o),void 0===o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Co=To(!0),Oo=To(!1),Ao={},No={current:Ao},Io={current:Ao},Mo={current:Ao};function jo(e){if(e===Ao)throw Error(a(174));return e}function Lo(e,t){switch(di(Mo,t),di(Io,e),di(No,Ao),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(No),di(No,t)}function Po(){ui(No),ui(Io),ui(Mo)}function Do(e){jo(Mo.current);var t=jo(No.current),n=De(t,e.type);t!==n&&(di(Io,e),di(No,n))}function Ro(e){Io.current===e&&(ui(No),ui(Io))}var Fo={current:0};function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===mn||n.data===gn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Uo(e,t){return{responder:e,props:t}}var qo=v.ReactCurrentDispatcher,zo=v.ReactCurrentBatchConfig,Ho=0,Wo=null,$o=null,Yo=null,Vo=!1;function Ko(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Xo(e,t,n,r,i,o){if(Ho=o,Wo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,qo.current=null===e||null===e.memoizedState?ba:_a,e=n(r,i),t.expirationTime===Ho){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Yo=$o=null,t.updateQueue=null,qo.current=wa,e=n(r,i)}while(t.expirationTime===Ho)}if(qo.current=ya,t=null!==$o&&null!==$o.next,Ho=0,Yo=$o=Wo=null,Vo=!1,t)throw Error(a(300));return e}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yo?Wo.memoizedState=Yo=e:Yo=Yo.next=e,Yo}function Zo(){if(null===$o){var e=Wo.alternate;e=null!==e?e.memoizedState:null}else e=$o.next;var t=null===Yo?Wo.memoizedState:Yo.next;if(null!==t)Yo=t,$o=e;else{if(null===e)throw Error(a(310));e={memoizedState:($o=e).memoizedState,baseState:$o.baseState,baseQueue:$o.baseQueue,queue:$o.queue,next:null},null===Yo?Wo.memoizedState=Yo=e:Yo=Yo.next=e}return Yo}function Jo(e,t){return"function"==typeof t?t(e):t}function ea(e){var t=Zo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=$o,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,c=i;do{var u=c.expirationTime;if(u<Ho){var d={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,o=r):l=l.next=d,u>Wo.expirationTime&&(Wo.expirationTime=u,gl(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ml(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===l?o=r:l.next=s,Br(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ta(e){var t=Zo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Br(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function na(e){var t=Qo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:e}).dispatch=va.bind(null,Wo,e),[t.memoizedState,e]}function ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Wo.updateQueue)?(t={lastEffect:null},Wo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ia(){return Zo().memoizedState}function oa(e,t,n,r){var i=Qo();Wo.effectTag|=e,i.memoizedState=ra(1|t,n,void 0,void 0===r?null:r)}function aa(e,t,n,r){var i=Zo();r=void 0===r?null:r;var o=void 0;if(null!==$o){var a=$o.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ra(t,n,o,r)}Wo.effectTag|=e,i.memoizedState=ra(1|t,n,o,r)}function sa(e,t){return oa(516,4,e,t)}function la(e,t){return aa(516,4,e,t)}function ca(e,t){return aa(4,2,e,t)}function ua(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function da(e,t,n){return n=null!=n?n.concat([e]):null,aa(4,2,ua.bind(null,t,e),n)}function fa(){}function pa(e,t){return Qo().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ma(e,t){var n=Zo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ga(e,t,n){var r=zi();Wi(98>r?98:r,function(){e(!0)}),Wi(97<r?97:r,function(){var r=zo.suspense;zo.suspense=void 0===t?null:t;try{e(!1),n()}finally{zo.suspense=r}})}function va(e,t,n){var r=rl(),i=mo.suspense;i={expirationTime:r=il(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Wo||null!==o&&o===Wo)Vo=!0,i.expirationTime=Ho,Wo.expirationTime=Ho;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Br(s,a))return}catch(e){}ol(e,r)}}var ya={readContext:oo,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ba={readContext:oo,useCallback:pa,useContext:oo,useEffect:sa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=Qo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Wo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Qo().memoizedState=e},useState:na,useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var n=na(e),r=n[0],i=n[1];return sa(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=na(!1),n=t[0];return t=t[1],[pa(ga.bind(null,t,e),[t,e]),n]}},_a={readContext:oo,useCallback:ha,useContext:oo,useEffect:la,useImperativeHandle:da,useLayoutEffect:ca,useMemo:ma,useReducer:ea,useRef:ia,useState:function(){return ea(Jo)},useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var n=ea(Jo),r=n[0],i=n[1];return la(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=ea(Jo),n=t[0];return t=t[1],[ha(ga.bind(null,t,e),[t,e]),n]}},wa={readContext:oo,useCallback:ha,useContext:oo,useEffect:la,useImperativeHandle:da,useLayoutEffect:ca,useMemo:ma,useReducer:ta,useRef:ia,useState:function(){return ta(Jo)},useDebugValue:fa,useResponder:Uo,useDeferredValue:function(e,t){var n=ta(Jo),r=n[0],i=n[1];return la(function(){var n=zo.suspense;zo.suspense=void 0===t?null:t;try{i(e)}finally{zo.suspense=n}},[e,t]),r},useTransition:function(e){var t=ta(Jo),n=t[0];return t=t[1],[ha(ga.bind(null,t,e),[t,e]),n]}},Ea=null,ka=null,xa=!1;function Sa(e,t){var n=Ml(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ta(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ca(e){if(xa){var t=ka;if(t){var n=t;if(!Ta(e,t)){if(!(t=kn(n.nextSibling))||!Ta(e,t))return e.effectTag=-1025&e.effectTag|2,xa=!1,void(Ea=e);Sa(Ea,n)}Ea=e,ka=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,xa=!1,Ea=e}}function Oa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ea=e}function Aa(e){if(e!==Ea)return!1;if(!xa)return Oa(e),xa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!_n(t,e.memoizedProps))for(t=ka;t;)Sa(e,t),t=kn(t.nextSibling);if(Oa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===hn){if(0===t){ka=kn(e.nextSibling);break e}t--}else n!==pn&&n!==gn&&n!==mn||t++}e=e.nextSibling}ka=null}}else ka=Ea?kn(e.stateNode.nextSibling):null;return!0}function Na(){ka=Ea=null,xa=!1}var Ia=v.ReactCurrentOwner,Ma=!1;function ja(e,t,n,r){t.child=null===e?Oo(t,null,n,r):Co(t,e.child,n,r)}function La(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=Xo(e,t,n,r,o,i),null===e||Ma?(t.effectTag|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function Pa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||jl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Pl(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:qr)(i,r)&&e.ref===t.ref)?Qa(e,t,o):(t.effectTag|=1,(e=Ll(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){return null!==e&&qr(e.memoizedProps,r)&&e.ref===t.ref&&(Ma=!1,i<o)?(t.expirationTime=e.expirationTime,Qa(e,t,o)):Fa(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Fa(e,t,n,r,i){var o=vi(n)?mi:pi.current;return o=gi(t,o),io(t,i),n=Xo(e,t,n,r,o,i),null===e||Ma?(t.effectTag|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Qa(e,t,i))}function Ba(e,t,n,r,i){if(vi(n)){var o=!0;wi(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),_o(t,n,r),Eo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=oo(c):c=gi(t,c=vi(n)?mi:pi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wo(t,a,r,c),ao=!1;var f=t.memoizedState;a.state=f,po(t,r,a,i),l=t.memoizedState,s!==r||f!==l||hi.current||ao?("function"==typeof u&&(vo(t,n,u,r),l=t.memoizedState),(s=ao||bo(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,lo(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Xi(t.type,s),l=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=oo(c):c=gi(t,c=vi(n)?mi:pi.current),(d="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&wo(t,a,r,c),ao=!1,l=t.memoizedState,a.state=l,po(t,r,a,i),f=t.memoizedState,s!==r||l!==f||hi.current||ao?("function"==typeof u&&(vo(t,n,u,r),f=t.memoizedState),(u=ao||bo(t,n,s,r,l,f,c))?(d||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,f,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,f,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Ra(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&Ei(t,n,!1),Qa(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):ja(e,t,s,o),t.memoizedState=r.state,i&&Ei(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Lo(e,t.containerInfo)}var za,Ha,Wa,$a,Ya={dehydrated:null,retryTime:0};function Va(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Fo.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),di(Fo,1&a),null===e){if(void 0!==o.fallback&&Ca(t),s){if(s=o.fallback,(o=Dl(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dl(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Ya,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Oo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ll(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ll(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Ya,t.child=n,i}return n=Co(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Dl(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dl(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Ya,t.child=o,n}return t.memoizedState=null,t.child=Co(t,e,o.children,n)}function Ka(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ro(e.return,t)}function Ga(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Xa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=Fo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ka(e,n);else if(19===e.tag)Ka(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(di(Fo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ga(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ga(t,!0,n,null,o,t.lastEffect);break;case"together":Ga(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&gl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ll(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ll(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&yi(),null;case 3:return Po(),ui(hi),ui(pi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Aa(t)||(t.effectTag|=4),Ha(t),null;case 5:Ro(t),n=jo(Mo.current);var o=t.type;if(null!==e&&null!=t.stateNode)Wa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=jo(No.current),Aa(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Tn]=t,r[Cn]=s,o){case"iframe":case"object":case"embed":Vt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Vt(Xe[e],r);break;case"source":Vt("error",r);break;case"img":case"image":case"link":Vt("error",r),Vt("load",r);break;case"form":Vt("reset",r),Vt("submit",r);break;case"details":Vt("toggle",r);break;case"input":Ee(r,s),Vt("invalid",r),an(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Vt("invalid",r),an(n,"onChange");break;case"textarea":Ne(r,s),Vt("invalid",r),an(n,"onChange")}for(var l in nn(o,s),e=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):W.hasOwnProperty(l)&&null!=c&&an(n,l)}switch(o){case"input":be(r),Se(r,s,!0);break;case"textarea":be(r),Me(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Pe(o)),e===on?"script"===o?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(o,{is:r.is}):(e=l.createElement(o),"select"===o&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,o),e[Tn]=t,e[Cn]=r,za(e,t,!1,!1),t.stateNode=e,l=rn(o,r),o){case"iframe":case"object":case"embed":Vt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Vt(Xe[c],e);c=r;break;case"source":Vt("error",e),c=r;break;case"img":case"image":case"link":Vt("error",e),Vt("load",e),c=r;break;case"form":Vt("reset",e),Vt("submit",e),c=r;break;case"details":Vt("toggle",e),c=r;break;case"input":Ee(e,r),c=we(e,r),Vt("invalid",e),an(n,"onChange");break;case"option":c=Ce(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Vt("invalid",e),an(n,"onChange");break;case"textarea":Ne(e,r),c=Ae(e,r),Vt("invalid",e),an(n,"onChange");break;default:c=r}nn(o,c);var u=c;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?en(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Be(e,d):"children"===s?"string"==typeof d?("textarea"!==o||""!==d)&&Ue(e,d):"number"==typeof d&&Ue(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(W.hasOwnProperty(s)?null!=d&&an(n,s):null!=d&&ge(e,s,d,l))}switch(o){case"input":be(e),Se(e,r,!1);break;case"textarea":be(e),Me(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ve(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Oe(e,!!r.multiple,n,!1):null!=r.defaultValue&&Oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=sn)}bn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=jo(Mo.current),jo(No.current),Aa(t)?(n=t.stateNode,r=t.memoizedProps,n[Tn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Tn]=t,t.stateNode=n)}return null;case 13:return ui(Fo),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Aa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fo.current)?Rs===Cs&&(Rs=Ns):(Rs!==Cs&&Rs!==Ns||(Rs=Is),0!==zs&&null!==Ls&&(ql(Ls,Ds),zl(Ls,zs)))),(n||r)&&(t.effectTag|=4),null);case 4:return Po(),Ha(t),null;case 10:return no(t),null;case 17:return vi(t.type)&&yi(),null;case 19:if(ui(Fo),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Za(r,!1);else if(Rs!==Cs||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Bo(s))){for(t.effectTag|=64,Za(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return di(Fo,1&Fo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Bo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Za(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*qi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Za(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=qi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qi(),n.sibling=null,t=Fo.current,di(Fo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function es(e){switch(e.tag){case 1:vi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Po(),ui(hi),ui(pi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ui(Fo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(Fo),null;case 4:return Po(),null;case 10:return no(e),null;default:return null}}function ts(e,t){return{value:e,source:t,stack:R(t)}}za=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(){},Wa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,l,c=t.stateNode;switch(jo(No.current),e=null,n){case"input":a=we(c,a),r=we(c,r),e=[];break;case"option":a=Ce(c,a),r=Ce(c,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ae(c,a),r=Ae(c,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(c.onclick=sn)}for(s in nn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in c=a[s])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(W.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==c&&(null!=u||null!=c))if("style"===s)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(s,u)):"children"===s?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(W.hasOwnProperty(s)?(null!=u&&an(o,s),e||c===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},$a=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ns="function"==typeof WeakSet?WeakSet:Set;function rs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=R(n)),null!==n&&D(n.type),t=t.value,null!==e&&1===e.tag&&D(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function is(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Cl(e,t)}else t.current=null}function os(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function as(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ss(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ls(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ss(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&ho(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ho(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function cs(e,t,n){switch("function"==typeof Nl&&Nl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Wi(97<n?97:n,function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Cl(i,e)}}e=e.next}while(e!==r)})}break;case 1:is(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Cl(e,t)}}(t,n);break;case 5:is(t);break;case 4:ps(e,t,n)}}function us(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&us(t)}function ds(e){return 5===e.tag||3===e.tag||4===e.tag}function fs(e){e:{for(var t=e.return;null!==t;){if(ds(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ds(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode,n.insertBefore(t,r)):(n=r,n.appendChild(t)),r=r._reactRootContainer,null!=r||null!==n.onclick||(n.onclick=sn));else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&(t=t.child,null!==t))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ps(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,c=o,u=n,d=c;;)if(cs(l,d,u),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===c)break e;for(;null===d.sibling;){if(null===d.return||d.return===c)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(l=r,c=o.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(cs(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function hs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void as(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Cn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),rn(e,i),t=rn(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?en(n,l):"dangerouslySetInnerHTML"===s?Be(n,l):"children"===s?Ue(n,l):ge(n,s,l,t)}switch(e){case"input":xe(n,r);break;case"textarea":Ie(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Oe(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Oe(n,!!r.multiple,r.defaultValue,!0):Oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ws=qi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=Jt("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ms(t);case 19:return void ms(t);case 17:return}throw Error(a(163))}function ms(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ns),t.forEach(function(t){var r=function(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(t=il(t=rl(),e,null)),null!==(e=al(e,t))&&ll(e)}.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var gs="function"==typeof WeakMap?WeakMap:Map;function vs(e,t,n){(n=co(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vs||(Vs=!0,Ks=r),rs(e,t)},n}function ys(e,t,n){(n=co(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return rs(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Gs?Gs=new Set([this]):Gs.add(this),rs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bs,_s=Math.ceil,ws=v.ReactCurrentDispatcher,Es=v.ReactCurrentOwner,ks=0,xs=8,Ss=16,Ts=32,Cs=0,Os=1,As=2,Ns=3,Is=4,Ms=5,js=ks,Ls=null,Ps=null,Ds=0,Rs=Cs,Fs=null,Bs=1073741823,Us=1073741823,qs=null,zs=0,Hs=!1,Ws=0,$s=500,Ys=null,Vs=!1,Ks=null,Gs=null,Xs=!1,Qs=null,Zs=90,Js=null,el=0,tl=null,nl=0;function rl(){return(js&(Ss|Ts))!==ks?1073741821-(qi()/10|0):0!==nl?nl:nl=1073741821-(qi()/10|0)}function il(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=zi();if(0==(4&t))return 99===r?1073741823:1073741822;if((js&Ss)!==ks)return Ds;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ls&&e===Ds&&--e,e}function ol(e,t){if(50<el)throw el=0,tl=null,Error(a(185));if(null!==(e=al(e,t))){var n=zi();1073741823===t?(js&xs)!==ks&&(js&(Ss|Ts))===ks?cl(e):(ll(e),js===ks&&Vi()):ll(e),(4&js)===ks||98!==n&&99!==n||(null===Js?Js=new Map([[e,t]]):(void 0===(n=Js.get(e))||n>t)&&Js.set(e,t))}}function al(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ls===i&&(gl(t),Rs===Is&&ql(i,Ds)),zl(i,t)),i}function sl(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ul(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function ll(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(cl.bind(null,e));else{var t=sl(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=rl();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Li&&Si(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yi(cl.bind(null,e)):$i(r,function e(t,n){nl=0;if(n)return n=rl(),Hl(t,n),ll(t),null;var r=sl(t);if(0!==r){if(n=t.callbackNode,(js&(Ss|Ts))!==ks)throw Error(a(327));if(xl(),t===Ls&&r===Ds||fl(t,r),null!==Ps){var i=js;js|=Ss;for(var o=hl();;)try{yl();break}catch(e){pl(t,e)}if(to(),js=i,ws.current=o,Rs===Os)throw n=Fs,fl(t,r),ql(t,r),ll(t),n;if(null===Ps)switch(o=t.finishedWork=t.current.alternate,t.finishedExpirationTime=r,i=Rs,Ls=null,i){case Cs:case Os:throw Error(a(345));case As:Hl(t,2<r?2:r);break;case Ns:if(ql(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=wl(o)),1073741823===Bs&&10<(o=Ws+$s-qi())){if(Hs){var s=t.lastPingedTime;if(0===s||s>=r){t.lastPingedTime=r,fl(t,r);break}}if(0!==(s=sl(t))&&s!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}t.timeoutHandle=wn(El.bind(null,t),o);break}El(t);break;case Is:if(ql(t,r),i=t.lastSuspendedTime,r===i&&(t.nextKnownPendingLevel=wl(o)),Hs&&(0===(o=t.lastPingedTime)||o>=r)){t.lastPingedTime=r,fl(t,r);break}if(0!==(o=sl(t))&&o!==r)break;if(0!==i&&i!==r){t.lastPingedTime=i;break}if(1073741823!==Us?i=10*(1073741821-Us)-qi():1073741823===Bs?i=0:(i=10*(1073741821-Bs)-5e3,o=qi(),r=10*(1073741821-r)-o,0>(i=o-i)&&(i=0),i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*_s(i/1960))-i,r<i&&(i=r)),10<i){t.timeoutHandle=wn(El.bind(null,t),i);break}El(t);break;case Ms:if(1073741823!==Bs&&null!==qs){s=Bs;var l=qs;if(0>=(i=0|l.busyMinDurationMs)?i=0:(o=0|l.busyDelayMs,s=qi()-(10*(1073741821-s)-(0|l.timeoutMs||5e3)),i=s<=o?0:o+i-s),10<i){ql(t,r),t.timeoutHandle=wn(El.bind(null,t),i);break}}El(t);break;default:throw Error(a(329))}if(ll(t),t.callbackNode===n)return e.bind(null,t)}}return null}.bind(null,e),{timeout:10*(1073741821-t)-qi()}),e.callbackNode=t}}}function cl(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(js&(Ss|Ts))!==ks)throw Error(a(327));if(xl(),e===Ls&&t===Ds||fl(e,t),null!==Ps){var n=js;js|=Ss;for(var r=hl();;)try{vl();break}catch(t){pl(e,t)}if(to(),js=n,ws.current=r,Rs===Os)throw n=Fs,fl(e,t),ql(e,t),ll(e),n;if(null!==Ps)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ls=null,El(e),ll(e)}return null}function ul(e,t){var n=js;js|=1;try{return e(t)}finally{(js=n)===ks&&Vi()}}function dl(e,t){var n=js;js&=-2,js|=xs;try{return e(t)}finally{(js=n)===ks&&Vi()}}function fl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&yi();break;case 3:Po(),ui(hi),ui(pi);break;case 5:Ro(r);break;case 4:Po();break;case 13:case 19:ui(Fo);break;case 10:no(r)}n=n.return}Ls=e,Ps=Ll(e.current,null),Ds=t,Rs=Cs,Fs=null,Us=Bs=1073741823,qs=null,zs=0,Hs=!1}function pl(e,t){for(;;){try{if(to(),qo.current=ya,Vo)for(var n=Wo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ho=0,Yo=$o=Wo=null,Vo=!1,null===Ps||null===Ps.return)return Rs=Os,Fs=t,Ps=null;e:{var i=e,o=Ps.return,a=Ps,s=t;if(t=Ds,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var l=s;if(0==(2&a.mode)){var c=a.alternate;c?(a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):a.memoizedState=null}var u=0!=(1&Fo.current),d=o;do{var f;if(f=13===d.tag){var p=d.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var h=d.memoizedProps;f=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(f){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0==(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=co(1073741823,null);v.tag=2,uo(a,v)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new gs,s=new Set,y.set(l,s)):void 0===(s=y.get(l))&&(s=new Set,y.set(l,s)),!s.has(a)){s.add(a);var b=Ol.bind(null,i,l,a);l.then(b,b)}d.effectTag|=4096,d.expirationTime=t;break e}d=d.return}while(null!==d);s=Error((D(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+R(a))}Rs!==Ms&&(Rs=As),s=ts(s,a),d=o;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=t,fo(d,vs(d,l,t));break e;case 1:l=s;var _=d.type,w=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===Gs||!Gs.has(w)))){d.effectTag|=4096,d.expirationTime=t,fo(d,ys(d,l,t));break e}}d=d.return}while(null!==d)}Ps=_l(Ps)}catch(e){t=e;continue}break}}function hl(){var e=ws.current;return ws.current=ya,null===e?ya:e}function ml(e,t){e<Bs&&2<e&&(Bs=e),null!==t&&e<Us&&2<e&&(Us=e,qs=t)}function gl(e){e>zs&&(zs=e)}function vl(){for(;null!==Ps;)Ps=bl(Ps)}function yl(){for(;null!==Ps&&!Pi();)Ps=bl(Ps)}function bl(e){var t=bs(e.alternate,e,Ds);return e.memoizedProps=e.pendingProps,null===t&&(t=_l(e)),Es.current=null,t}function _l(e){Ps=e;do{var t=Ps.alternate;if(e=Ps.return,0==(2048&Ps.effectTag)){if(t=Ja(t,Ps,Ds),1===Ds||1!==Ps.childExpirationTime){for(var n=0,r=Ps.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ps.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ps.firstEffect),null!==Ps.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ps.firstEffect),e.lastEffect=Ps.lastEffect),1<Ps.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ps:e.firstEffect=Ps,e.lastEffect=Ps))}else{if(null!==(t=es(Ps)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ps.sibling))return t;Ps=e}while(null!==Ps);return Rs===Cs&&(Rs=Ms),null}function wl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function El(e){var t=zi();return Wi(99,function(e,t){do{xl()}while(null!==Qs);if((js&(Ss|Ts))!==ks)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=wl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ls&&(Ps=Ls=null,Ds=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=js;js|=Ts,Es.current=null,vn=Yt;var s=dn();if(fn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,d=c.focusNode;c=c.focusOffset;try{l.nodeType,d.nodeType}catch(e){l=null;break e}var f=0,p=-1,h=-1,m=0,g=0,v=s,y=null;t:for(;;){for(var b;v!==l||0!==u&&3!==v.nodeType||(p=f+u),v!==d||0!==c&&3!==v.nodeType||(h=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===s)break t;if(y===l&&++m===u&&(p=f),y===d&&++g===c&&(h=f),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:l},Yt=!1,Ys=i;do{try{kl()}catch(e){if(null===Ys)throw Error(a(330));Cl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=i;do{try{for(s=e,l=t;null!==Ys;){var _=Ys.effectTag;if(16&_&&Ue(Ys.stateNode,""),128&_){var w=Ys.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&_){case 2:fs(Ys),Ys.effectTag&=-3;break;case 6:fs(Ys),Ys.effectTag&=-3,hs(Ys.alternate,Ys);break;case 1024:Ys.effectTag&=-1025;break;case 1028:Ys.effectTag&=-1025,hs(Ys.alternate,Ys);break;case 4:hs(Ys.alternate,Ys);break;case 8:ps(s,u=Ys,l),us(u)}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Cl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);if(E=yn,w=dn(),_=E.focusedElem,l=E.selectionRange,w!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==l&&fn(_)&&(w=l.start,void 0===(E=l.end)&&(E=w),"selectionStart"in _?(_.selectionStart=w,_.selectionEnd=Math.min(E,_.value.length)):(E=(w=_.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=_.textContent.length,s=Math.min(l.start,u),l=void 0===l.end?s:Math.min(l.end,u),!E.extend&&s>l&&(u=l,l=s,s=u),u=un(_,s),d=un(_,l),u&&d&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==d.node||E.focusOffset!==d.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),s>l?(E.addRange(w),E.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),E.addRange(w))))),w=[];for(E=_;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<w.length;_++)(E=w[_]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Yt=!!vn,yn=vn=null,e.current=n,Ys=i;do{try{for(_=e;null!==Ys;){var k=Ys.effectTag;if(36&k&&ls(_,Ys.alternate,Ys),128&k){w=void 0;var x=Ys.ref;if(null!==x){var S=Ys.stateNode;switch(Ys.tag){case 5:w=S;break;default:w=S}"function"==typeof x?x(w):x.current=w}}Ys=Ys.nextEffect}}catch(e){if(null===Ys)throw Error(a(330));Cl(Ys,e),Ys=Ys.nextEffect}}while(null!==Ys);Ys=null,Di(),js=o}else e.current=n;if(Xs)Xs=!1,Qs=e,Zs=t;else for(Ys=i;null!==Ys;)t=Ys.nextEffect,Ys.nextEffect=null,Ys=t;if(0===(t=e.firstPendingTime)&&(Gs=null),1073741823===t?e===tl?el++:(el=0,tl=e):el=0,"function"==typeof Al&&Al(n.stateNode,r),ll(e),Vs)throw Vs=!1,e=Ks,Ks=null,e;return(js&xs)!==ks?null:(Vi(),null)}.bind(null,e,t)),null}function kl(){for(;null!==Ys;){var e=Ys.effectTag;0!=(256&e)&&os(Ys.alternate,Ys),0==(512&e)||Xs||(Xs=!0,$i(97,function(){return xl(),null})),Ys=Ys.nextEffect}}function xl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Sl)}}function Sl(){if(null===Qs)return!1;var e=Qs;if(Qs=null,(js&(Ss|Ts))!==ks)throw Error(a(331));var t=js;for(js|=Ts,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:as(5,n),ss(5,n)}}catch(t){if(null===e)throw Error(a(330));Cl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return js=t,Vi(),!0}function Tl(e,t,n){uo(e,t=vs(e,t=ts(n,t),1073741823)),null!==(e=al(e,1073741823))&&ll(e)}function Cl(e,t){if(3===e.tag)Tl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Tl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Gs||!Gs.has(r))){uo(n,e=ys(n,e=ts(t,e),1073741823)),null!==(n=al(n,1073741823))&&ll(n);break}}n=n.return}}function Ol(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ls===e&&Ds===n?Rs===Is||Rs===Ns&&1073741823===Bs&&qi()-Ws<$s?fl(e,Ds):Hs=!0:Ul(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,ll(e)))}bs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||hi.current)Ma=!0;else{if(r<n){switch(Ma=!1,t.tag){case 3:qa(t),Na();break;case 5:if(Do(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&wi(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,di(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Va(e,t,n):(di(Fo,1&Fo.current),null!==(t=Qa(e,t,n))?t.sibling:null);di(Fo,1&Fo.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Xa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),di(Fo,Fo.current),!r)return null}return Qa(e,t,n)}Ma=!1}}else Ma=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=gi(t,pi.current),io(t,n),i=Xo(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;wi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&vo(t,r,s,e),i.updater=yo,t.stateNode=i,i._reactInternalFiber=t,Eo(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return jl(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===I)return 14}return 2}(i),e=Xi(i,e),o){case 0:t=Fa(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=La(null,t,i,e,n);break e;case 14:t=Pa(null,t,i,Xi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Fa(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Na(),t=Qa(e,t,n);else{if((i=t.stateNode.hydrate)&&(ka=kn(t.stateNode.containerInfo.firstChild),Ea=t,i=xa=!0),i)for(n=Oo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else ja(e,t,r,n),Na();t=t.child}return t;case 5:return Do(t),null===e&&Ca(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,_n(r,i)?s=null:null!==o&&_n(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ja(e,t,s,n),t=t.child),t;case 6:return null===e&&Ca(t),null;case 13:return Va(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(di(Qi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0===(o=Br(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!hi.current){t=Qa(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===l.tag&&((u=co(n,null)).tag=2,uo(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ro(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.effectTag|=1,ja(e,t,r,n),t.child;case 14:return o=Xi(i=t.type,t.pendingProps),Pa(e,t,i,o=Xi(i.type,o),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(r)?(e=!0,wi(t)):e=!1,io(t,n),_o(t,r,i),Eo(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Xa(e,t,n)}throw Error(a(156,t.tag))};var Al=null,Nl=null;function Il(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ml(e,t,n,r){return new Il(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ll(e,t){var n=e.alternate;return null===n?((n=Ml(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Pl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)jl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case E:return Dl(n.children,i,o,t);case C:s=8,i|=7;break;case k:s=8,i|=1;break;case x:return(e=Ml(12,n,t,8|i)).elementType=x,e.type=x,e.expirationTime=o,e;case A:return(e=Ml(13,n,t,i)).type=A,e.elementType=A,e.expirationTime=o,e;case N:return(e=Ml(19,n,t,i)).elementType=N,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case T:s=9;break e;case O:s=11;break e;case I:s=14;break e;case M:s=16,r=null;break e;case j:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ml(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Dl(e,t,n,r){return(e=Ml(7,e,r,t)).expirationTime=n,e}function Rl(e,t,n){return(e=Ml(6,e,null,t)).expirationTime=n,e}function Fl(e,t,n){return(t=Ml(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ul(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function ql(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function zl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Wl(e,t,n,r){var i=t.current,o=rl(),s=mo.suspense;o=il(o,i,s);e:if(n){t:{if(Je(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(vi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vi(c)){n=_i(n,c,l);break e}}n=l}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),ol(i,o),o}function $l(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Vl(e,t){Yl(e,t),(e=e.alternate)&&Yl(e,t)}function Kl(e,t,n){var r=new Bl(e,t,n=null!=n&&!0===n.hydrate),i=Ml(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,so(i),e[On]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Tt.forEach(function(e){ht(e,t,n)}),Ct.forEach(function(e){ht(e,t,n)})}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Gl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=$l(a);s.call(e)}}Wl(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Kl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=$l(a);l.call(e)}}dl(function(){Wl(t,a,e,i)})}return $l(a)}function Ql(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Gl(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Kl.prototype.render=function(e){Wl(e,this._internalRoot,null,null)},Kl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Wl(null,e,null,function(){t[On]=null})},mt=function(e){if(13===e.tag){var t=Gi(rl(),150,100);ol(e,t),Vl(e,t)}},gt=function(e){13===e.tag&&(ol(e,3),Vl(e,3))},vt=function(e){if(13===e.tag){var t=rl();ol(e,t=il(t,e,null)),Vl(e,t)}},K=function(e,t,n){switch(t){case"input":if(xe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Mn(r);if(!i)throw Error(a(90));_e(r),xe(r,i)}}}break;case"textarea":Ie(e,n);break;case"select":null!=(t=n.value)&&Oe(e,!!n.multiple,t,!1)}},ee=ul,te=function(e,t,n,r,i){var o=js;js|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{(js=o)===ks&&Vi()}},ne=function(){(js&(1|Ss|Ts))===ks&&(function(){if(null!==Js){var e=Js;Js=null,e.forEach(function(e,t){Hl(t,e),ll(t)}),Vi()}}(),xl())},re=function(e,t){var n=js;js|=2;try{return e(t)}finally{(js=n)===ks&&Vi()}};var Zl={Events:[Nn,In,Mn,Y,H,Bn,function(e){it(e,Fn)},Z,J,Gt,st,xl,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Al=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Nl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:An,bundleType:0,version:"16.13.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zl,t.createPortal=Ql,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if((js&(Ss|Ts))!==ks)throw Error(a(187));var n=js;js|=1;try{return Wi(99,e.bind(null,t))}finally{js=n,Vi()}},t.hydrate=function(e,t,n){if(!Gl(t))throw Error(a(200));return Xl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Gl(t))throw Error(a(200));return Xl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(a(40));return!!e._reactRootContainer&&(dl(function(){Xl(null,null,e,!1,function(){e._reactRootContainer=null,e[On]=null})}),!0)},t.unstable_batchedUpdates=ul,t.unstable_createPortal=function(e,t){return Ql(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Xl(e,t,n,!1,r)},t.version="16.13.0"},function(e,t,n){"use strict";e.exports=n(1499)},function(e,t,n){"use strict";
/** @license React v0.19.1
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},d=Date.now();t.unstable_now=function(){return Date.now()-d},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var g=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof f&&"function"==typeof f.now)t.unstable_now=function(){return f.now()};else{var v=p.now();t.unstable_now=function(){return p.now()-v}}var y=!1,b=null,_=-1,w=5,E=0;a=function(){return t.unstable_now()>=E},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,x=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();E=e+w;try{b(!0,e)?x.postMessage(null):(y=!1,b=null)}catch(e){throw x.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,x.postMessage(null))},i=function(e,n){_=h(function(){e(t.unstable_now())},n)},o=function(){m(_),_=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<O(i,t)))break e;e[r]=t,e[n]=i,n=r}}function T(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>O(a,n))void 0!==l&&0>O(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>O(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function O(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],N=[],I=1,M=null,j=3,L=!1,P=!1,D=!1;function R(e){for(var t=T(N);null!==t;){if(null===t.callback)C(N);else{if(!(t.startTime<=e))break;C(N),t.sortIndex=t.expirationTime,S(A,t)}t=T(N)}}function F(e){if(D=!1,R(e),!P)if(null!==T(A))P=!0,r(B);else{var t=T(N);null!==t&&i(F,t.startTime-e)}}function B(e,n){P=!1,D&&(D=!1,o()),L=!0;var r=j;try{for(R(n),M=T(A);null!==M&&(!(M.expirationTime>n)||e&&!a());){var s=M.callback;if(null!==s){M.callback=null,j=M.priorityLevel;var l=s(M.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?M.callback=l:M===T(A)&&C(A),R(n)}else C(A);M=T(A)}if(null!==M)var c=!0;else{var u=T(N);null!==u&&i(F,u.startTime-n),c=!1}return c}finally{M=null,j=r,L=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||L||(P=!0,r(B))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return T(A)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var l=a.delay;l="number"==typeof l&&0<l?s+l:s,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),l=s;return e={id:I++,callback:n,priorityLevel:e,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(e.sortIndex=l,S(N,e),null===T(A)&&e===T(N)&&(D?o():D=!0,i(F,l-s))):(e.sortIndex=a,S(A,e),P||L||(P=!0,r(B))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();R(e);var n=T(A);return n!==M&&null!==M&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<M.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";var r=n(1501);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";e.exports=n(1503)},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case c:return e;default:return t}}case o:return t}}}function k(e){return E(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||E(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case c:return e;default:return t}}case g:case m:case o:return t}}}function y(e){return v(e)===f}t.typeOf=v,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||v(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===l},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===h}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){},function(e,t,n){var r=n(1508);e.exports=r},function(e,t,n){var r=n(1509),i=String.prototype;e.exports=function(e){var t=e.startsWith;return"string"==typeof e||e===i||e instanceof String&&t===i.startsWith?r:t}},function(e,t,n){n(1510);var r=n(145);e.exports=r("String").startsWith},function(e,t,n){"use strict";var r,i=n(70),o=n(342).f,a=n(221),s=n(643),l=n(345),c=n(647),u=n(281),d="".startsWith,f=Math.min,p=c("startsWith");i({target:"String",proto:!0,forced:!!(u||p||(r=o(String.prototype,"startsWith"),!r||r.writable))&&!p},{startsWith:function(e){var t=String(l(this));s(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(164),i=n(344),o=n(134)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(144),i=n(246);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(1514);n(1526),n(1527),n(1528),n(1529),e.exports=r},function(e,t,n){n(805),n(439),n(312),n(1521),n(823),n(1525);var r=n(118);e.exports=r.Promise},function(e,t,n){var r=n(514),i=n(345),o=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){var r=n(144),i=n(806),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(176),i=n(280),o=n(205),a=n(442);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,l=0;s>l;)i.f(e,n=r[l++],t[n]);return e}},function(e,t,n){"use strict";var r=n(651),i=n(283);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){var r=n(164);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r,i,o,a,s=n(70),l=n(281),c=n(144),u=n(282),d=n(813),f=n(377),p=n(814),h=n(346),m=n(1522),g=n(164),v=n(279),y=n(815),b=n(344),_=n(806),w=n(518),E=n(818),k=n(819),x=n(820).set,S=n(1523),T=n(822),C=n(1524),O=n(444),A=n(520),N=n(376),I=n(802),M=n(134),j=n(654),L=M("species"),P="Promise",D=N.get,R=N.set,F=N.getterFor(P),B=d,U=c.TypeError,q=c.document,z=c.process,H=u("fetch"),W=O.f,$=W,Y="process"==b(z),V=!!(q&&q.createEvent&&c.dispatchEvent),K=I(P,function(){if(!(_(B)!==String(B))){if(66===j)return!0;if(!Y&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!B.prototype.finally)return!0;if(j>=51&&/native code/.test(B))return!1;var e=B.resolve(1),t=function(e){e(function(){},function(){})};return(e.constructor={})[L]=t,!(e.then(function(){})instanceof t)}),G=K||!E(function(e){B.all(e).catch(function(){})}),X=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Q=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;S(function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,l,c,u=r[a++],d=o?u.ok:u.fail,f=u.resolve,p=u.reject,h=u.domain;try{d?(o||(2===t.rejection&&te(e,t),t.rejection=1),!0===d?s=i:(h&&h.enter(),s=d(i),h&&(h.exit(),c=!0)),s===u.promise?p(U("Promise-chain cycle")):(l=X(s))?l.call(s,f,p):f(s)):p(i)}catch(e){h&&!c&&h.exit(),p(e)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&J(e,t)})}},Z=function(e,t,n){var r,i;V?((r=q.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},(i=c["on"+e])?i(r):"unhandledrejection"===e&&C("Unhandled promise rejection",n)},J=function(e,t){x.call(c,function(){var n,r=t.value;if(ee(t)&&(n=A(function(){Y?z.emit("unhandledRejection",r,e):Z("unhandledrejection",e,r)}),t.rejection=Y||ee(t)?2:1,n.error))throw n.value})},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){x.call(c,function(){Y?z.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},ne=function(e,t,n,r){return function(i){e(t,n,i,r)}},re=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Q(e,t,!0))},ie=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw U("Promise can't be resolved itself");var i=X(n);i?S(function(){var r={done:!1};try{i.call(n,ne(ie,e,r,t),ne(re,e,r,t))}catch(n){re(e,r,n,t)}}):(t.value=n,t.state=1,Q(e,t,!1))}catch(n){re(e,{done:!1},n,t)}}};K&&(B=function(e){y(this,B,P),v(e),r.call(this);var t=D(this);try{e(ne(ie,this,t),ne(re,this,t))}catch(e){re(this,t,e)}},(r=function(e){R(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(B.prototype,{then:function(e,t){var n=F(this),r=W(k(this,B));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Y?z.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=D(e);this.promise=e,this.resolve=ne(ie,e,t),this.reject=ne(re,e,t)},O.f=W=function(e){return e===B||e===o?new i(e):$(e)},l||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",function(e,t){var n=this;return new B(function(e,t){a.call(n,e,t)}).then(e,t)},{unsafe:!0}),"function"==typeof H&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return T(B,H.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:K},{Promise:B}),h(B,P,!1,!0),m(P),o=u(P),s({target:P,stat:!0,forced:K},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:l||K},{resolve:function(e){return T(l&&this===o?B:this,e)}}),s({target:P,stat:!0,forced:G},{all:function(e){var t=this,n=W(t),r=n.resolve,i=n.reject,o=A(function(){var n=v(t.resolve),o=[],a=0,s=1;w(e,function(e){var l=a++,c=!1;o.push(void 0),s++,n.call(t,e).then(function(e){c||(c=!0,o[l]=e,--s||r(o))},i)}),--s||r(o)});return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,i=A(function(){var i=v(t.resolve);w(e,function(e){i.call(t,e).then(n.resolve,r)})});return i.error&&r(i.value),n.promise}})},function(e,t,n){"use strict";var r=n(282),i=n(280),o=n(134),a=n(176),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r,i,o,a,s,l,c,u,d=n(144),f=n(342).f,p=n(344),h=n(820).set,m=n(821),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,y=d.Promise,b="process"==p(v),_=f(d,"queueMicrotask"),w=_&&_.value;w||(r=function(){var e,t;for(b&&(e=v.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},b?a=function(){v.nextTick(r)}:g&&!m?(s=!0,l=document.createTextNode(""),new g(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(c=y.resolve(void 0),u=c.then,a=function(){u.call(c,r)}):a=function(){h.call(d,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(144);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var r=n(70),i=n(281),o=n(813),a=n(137),s=n(282),l=n(819),c=n(822),u=n(377);r({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=l(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return c(t,e()).then(function(){return n})}:e,n?function(n){return c(t,e()).then(function(){throw n})}:e)}}),i||"function"!=typeof o||o.prototype.finally||u(o.prototype,"finally",s("Promise").prototype.finally)},function(e,t,n){"use strict";var r=n(70),i=n(176),o=n(440),a=n(652),s=n(441),l=n(280),c=n(343),u=n(518),d=n(246),f=n(376),p=f.set,h=f.getterFor("AggregateError"),m=function(e,t){var n=this;if(!(n instanceof m))return new m(e,t);a&&(n=a(new Error(t),o(n)));var r=[];return u(e,r.push,r),i?p(n,{errors:r,type:"AggregateError"}):n.errors=r,void 0!==t&&d(n,"message",String(t)),n};m.prototype=s(Error.prototype,{constructor:c(5,m),message:c(5,""),name:c(5,"AggregateError")}),i&&l.f(m.prototype,"errors",{get:function(){return h(this).errors},configurable:!0}),r({global:!0},{AggregateError:m})},function(e,t,n){n(823)},function(e,t,n){"use strict";var r=n(70),i=n(444),o=n(520);r({target:"Promise",stat:!0},{try:function(e){var t=i.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},function(e,t,n){"use strict";var r=n(70),i=n(279),o=n(282),a=n(444),s=n(520),l=n(518);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,u=s(function(){var n=i(t.resolve),a=[],s=0,u=1,d=!1;l(e,function(e){var i=s++,l=!1;a.push(void 0),u++,n.call(t,e).then(function(e){l||d||(d=!0,r(e))},function(e){l||d||(l=!0,a[i]=e,--u||c(new(o("AggregateError"))(a,"No one promise resolved")))})}),--u||c(new(o("AggregateError"))(a,"No one promise resolved"))});return u.error&&c(u.value),n.promise}})},function(e,t,n){var r=n(348),i=n(521);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!i(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,i(u)||(l-=1),c+=1}return l<=0?o.apply(this,a):r(l,e(t,a,o))}}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(1533);e.exports=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in r&&(e=r[e]);var t="";e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e);return t+=String.fromCharCode(e)}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,n){var r=n(446),i=/\s+/g,o=n(826),a=n(1538);function s(e,t,n){"object"==typeof e?(n=t,t=e,e=null):"function"==typeof t&&(n=t,t=l),this._callback=e,this._options=t||l,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var l={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};s.prototype.onparserinit=function(e){this._parser=e},s.prototype.onreset=function(){s.call(this,this._callback,this._options,this._elementCB)},s.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},s.prototype._handleCallback=s.prototype.onerror=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},s.prototype.onclosetag=function(){var e=this._tagStack.pop();this._options.withEndIndices&&e&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e)},s.prototype._createDomElement=function(e){if(!this._options.withDomLvl1)return e;var t;for(var n in t="tag"===e.type?Object.create(a):Object.create(o),e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},s.prototype._addDomElement=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,r=n[n.length-1];e.next=null,this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),r?(e.prev=r,r.next=e):e.prev=null,n.push(e),e.parent=t||null},s.prototype.onopentag=function(e,t){var n={type:"script"===e?r.Script:"style"===e?r.Style:r.Tag,name:e,attribs:t,children:[]},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)},s.prototype.ontext=function(e){var t,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(t=this.dom[this.dom.length-1]).type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else if(this._tagStack.length&&(t=this._tagStack[this._tagStack.length-1])&&(t=t.children[t.children.length-1])&&t.type===r.Text)n?t.data=(t.data+e).replace(i," "):t.data+=e;else{n&&(e=e.replace(i," "));var o=this._createDomElement({data:e,type:r.Text});this._addDomElement(o)}},s.prototype.oncomment=function(e){var t=this._tagStack[this._tagStack.length-1];if(t&&t.type===r.Comment)t.data+=e;else{var n={data:e,type:r.Comment},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)}},s.prototype.oncdatastart=function(){var e={children:[{data:"",type:r.Text}],type:r.CDATA},t=this._createDomElement(e);this._addDomElement(t),this._tagStack.push(t)},s.prototype.oncommentend=s.prototype.oncdataend=function(){this._tagStack.pop()},s.prototype.onprocessinginstruction=function(e,t){var n=this._createDomElement({name:e,data:t,type:r.Directive});this._addDomElement(n)},e.exports=s},function(e,t,n){var r=n(826),i=e.exports=Object.create(r),o={tagName:"name"};Object.keys(o).forEach(function(e){var t=o[e];Object.defineProperty(i,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})})},function(e,t,n){var r=n(445),i=r.DomHandler,o=r.DomUtils;function a(e,t){this.init(e,t)}function s(e,t){return o.getElementsByTagName(e,t,!0)}function l(e,t){return o.getElementsByTagName(e,t,!0,1)[0]}function c(e,t,n){return o.getText(o.getElementsByTagName(e,t,n,1)).trim()}function u(e,t,n,r,i){var o=c(n,r,i);o&&(e[t]=o)}n(247)(a,i),a.prototype.init=i;var d=function(e){return"rss"===e||"feed"===e||"rdf:RDF"===e};a.prototype.onend=function(){var e,t,n={},r=l(d,this.dom);r&&("feed"===r.name?(t=r.children,n.type="atom",u(n,"id","id",t),u(n,"title","title",t),(e=l("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),u(n,"description","subtitle",t),(e=c("updated",t))&&(n.updated=new Date(e)),u(n,"author","email",t,!0),n.items=s("entry",t).map(function(e){var t,n={};return u(n,"id","id",e=e.children),u(n,"title","title",e),(t=l("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),(t=c("summary",e)||c("content",e))&&(n.description=t),(t=c("updated",e))&&(n.pubDate=new Date(t)),n})):(t=l("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t),(e=c("lastBuildDate",t))&&(n.updated=new Date(e)),u(n,"author","managingEditor",t,!0),n.items=s("item",r.children).map(function(e){var t,n={};return u(n,"id","guid",e=e.children),u(n,"title","title",e),u(n,"link","link",e),u(n,"description","description",e),(t=c("pubDate",e))&&(n.pubDate=new Date(t)),n}))),this.dom=n,i.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},e.exports=a},function(e,t,n){e.exports=i;var r=n(827);function i(e){r.call(this,new o(this),e)}function o(e){this.scope=e}n(247)(i,r),i.prototype.readable=!0;var a=n(445).EVENTS;Object.keys(a).forEach(function(e){if(0===a[e])o.prototype["on"+e]=function(){this.scope.emit(e)};else if(1===a[e])o.prototype["on"+e]=function(t){this.scope.emit(e,t)};else{if(2!==a[e])throw Error("wrong number of arguments!");o.prototype["on"+e]=function(t,n){this.scope.emit(e,t,n)}}})},function(e,t,n){e.exports=i;var r=n(387).EventEmitter;function i(){r.call(this)}n(247)(i,r),i.Readable=n(655),i.Writable=n(1551),i.Duplex=n(1552),i.Transform=n(1553),i.PassThrough=n(1554),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,e.end())}function l(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",c),e.removeListener("error",c),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",c),e.on("error",c),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-c(e)},t.toByteArray=function(e){var t,n,r,a,s,l=e.length;a=c(e),s=new o(3*l/4-a),n=a>0?l-4:l;var u=0;for(t=0;t<n;t+=4)r=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],s[u++]=r>>16&255,s[u++]=r>>8&255,s[u++]=255&r;2===a?(r=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[u++]=255&r):1===a&&(r=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[u++]=r>>8&255,s[u++]=255&r);return s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o="",a=[],s=0,l=n-i;s<l;s+=16383)a.push(u(e,s,s+16383>l?l:s+16383));1===i?(t=e[n-1],o+=r[t>>2],o+=r[t<<4&63],o+="=="):2===i&&(t=(e[n-2]<<8)+e[n-1],o+=r[t>>10],o+=r[t>>4&63],o+=r[t<<2&63],o+="=");return a.push(o),a.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*l-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},function(e,t){},function(e,t,n){"use strict";var r=n(656).Buffer;e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}()},function(e,t,n){var r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(1547),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,l=1,c={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[l]=i,r(l),l++},f.clearImmediate=p}function p(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(69),n(284))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(69))},function(e,t,n){var r=n(349),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=o;var r=n(832),i=n(447);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(247),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){e.exports=n(657)},function(e,t,n){e.exports=n(350)},function(e,t,n){e.exports=n(655).Transform},function(e,t,n){e.exports=n(655).PassThrough},function(e,t){},function(e,t,n){function r(e){this._cbs=e||{}}e.exports=r;var i=n(445).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this._cbs[e]&&this._cbs[e](t,n)}}})},function(e,t,n){var r=e.exports;[n(1558),n(1566),n(1567),n(1568),n(1569),n(1570)].forEach(function(e){Object.keys(e).forEach(function(t){r[t]=e[t].bind(r)})})},function(e,t,n){var r=n(446),i=n(1559),o=r.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(""):""},getOuterHTML:i,getText:function e(t){if(Array.isArray(t))return t.map(e).join("");if(o(t))return"br"===t.name?"\n":e(t.children);if(t.type===r.CDATA)return e(t.children);if(t.type===r.Text)return t.data;return""}}},function(e,t,n){var r=n(1560),i=n(1561),o=n(1565);o.elementNames.__proto__=null,o.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var s={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=e.exports=function(e,t){Array.isArray(e)||e.cheerio||(e=[e]),t=t||{};for(var n="",i=0;i<e.length;i++){var o=e[i];"root"===o.type?n+=l(o.children,t):r.isTag(o)?n+=u(o,t):o.type===r.Directive?n+=d(o):o.type===r.Comment?n+=h(o):o.type===r.CDATA?n+=p(o):n+=f(o,t)}return n},c=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function u(e,t){"foreign"===t.xmlMode&&(e.name=o.elementNames[e.name]||e.name,e.parent&&c.indexOf(e.parent.name)>=0&&(t=Object.assign({},t,{xmlMode:!1}))),!t.xmlMode&&["svg","math"].indexOf(e.name)>=0&&(t=Object.assign({},t,{xmlMode:"foreign"}));var n="<"+e.name,r=function(e,t){if(e){var n,r="";for(var a in e)n=e[a],r&&(r+=" "),"foreign"===t.xmlMode&&(a=o.attributeNames[a]||a),r+=a,(null!==n&&""!==n||t.xmlMode)&&(r+='="'+(t.decodeEntities?i.encodeXML(n):n.replace(/\"/g,"&quot;"))+'"');return r}}(e.attribs,t);return r&&(n+=" "+r),!t.xmlMode||e.children&&0!==e.children.length?(n+=">",e.children&&(n+=l(e.children,t)),s[e.name]&&!t.xmlMode||(n+="</"+e.name+">")):n+="/>",n}function d(e){return"<"+e.data+">"}function f(e,t){var n=e.data||"";return!t.decodeEntities||e.parent&&e.parent.name in a||(n=i.encodeXML(n)),n}function p(e){return"<![CDATA["+e.children[0].data+"]]>"}function h(e){return"\x3c!--"+e.data+"--\x3e"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(833),i=n(836);t.decode=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?r.decodeXML:r.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var o=n(836);t.encodeXML=o.encodeXML,t.encodeHTML=o.encodeHTML,t.escape=o.escape,t.encodeHTML4=o.encodeHTML,t.encodeHTML5=o.encodeHTML;var a=n(833);t.decodeXML=a.decodeXML,t.decodeHTML=a.decodeHTML,t.decodeHTMLStrict=a.decodeHTMLStrict,t.decodeHTML4=a.decodeHTML,t.decodeHTML5=a.decodeHTML,t.decodeHTML4Strict=a.decodeHTMLStrict,t.decodeHTML5Strict=a.decodeHTMLStrict,t.decodeXMLStrict=a.decodeXML},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(1564));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={elementNames:{altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},attributeNames:{definitionurl:"definitionURL",attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"}}},function(e,t){var n=t.getChildren=function(e){return e.children},r=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=r(e);return t?n(t):[e]},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs[t]},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},t.append=function(e,t){var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prepend=function(e,t){var n=e.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){var r=n(446).isTag;function i(e,t,n,r){for(var o,a=[],s=0,l=t.length;s<l&&!(e(t[s])&&(a.push(t[s]),--r<=0))&&(o=t[s].children,!(n&&o&&o.length>0&&(o=i(e,o,n,r),a=a.concat(o),(r-=o.length)<=0)));s++);return a}e.exports={filter:function(e,t,n,r){Array.isArray(t)||(t=[t]);"number"==typeof r&&isFinite(r)||(r=1/0);return i(e,t,!1!==n,r)},find:i,findOneChild:function(e,t){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n];return null},findOne:function e(t,n){var i=null;for(var o=0,a=n.length;o<a&&!i;o++)r(n[o])&&(t(n[o])?i=n[o]:n[o].children.length>0&&(i=e(t,n[o].children)));return i},existsOne:function e(t,n){for(var i=0,o=n.length;i<o;i++)if(r(n[i])&&(t(n[i])||n[i].children.length>0&&e(t,n[i].children)))return!0;return!1},findAll:function(e,t){var n=[],i=t.slice();for(;i.length;){var o=i.shift();r(o)&&(o.children&&o.children.length>0&&i.unshift.apply(i,o.children),e(o)&&n.push(o))}return n}}},function(e,t,n){var r=n(446),i=t.isTag=r.isTag;t.testElement=function(e,t){for(var n in e)if(e.hasOwnProperty(n)){if("tag_name"===n){if(!i(t)||!e.tag_name(t.name))return!1}else if("tag_type"===n){if(!e.tag_type(t.type))return!1}else if("tag_contains"===n){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e[n](t.attribs[n]))return!1}else;return!0};var o={tag_name:function(e){return"function"==typeof e?function(t){return i(t)&&e(t.name)}:"*"===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return n.attribs&&t(n.attribs[e])}:function(n){return n.attribs&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}t.getElements=function(e,t,n,r){var i=Object.keys(e).map(function(t){var n=e[t];return t in o?o[t](n):a(t,n)});return 0===i.length?[]:this.filter(i.reduce(s),t,n,r)},t.getElementById=function(e,t,n){return Array.isArray(t)||(t=[t]),this.findOne(a("id",e),t,!1!==n)},t.getElementsByTagName=function(e,t,n,r){return this.filter(o.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return this.filter(o.tag_type(e),t,n,r)}},function(e,t){t.removeSubsets=function(e){for(var t,n,r,i=e.length;--i>-1;){for(t=n=e[i],e[i]=null,r=!0;n;){if(e.indexOf(n)>-1){r=!1,e.splice(i,1);break}n=n.parent}r&&(e[i]=t)}return e};var n=1,r=2,i=4,o=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,l,c,u,d,f,p=[],h=[];if(e===t)return 0;for(s=e;s;)p.unshift(s),s=s.parent;for(s=t;s;)h.unshift(s),s=s.parent;for(f=0;p[f]===h[f];)f++;return 0===f?n:(c=(l=p[f-1]).children,u=p[f],d=h[f],c.indexOf(u)>c.indexOf(d)?l===t?i|a:i:l===e?r|o:r)};t.uniqueSort=function(e){var t,n,o=e.length;for(e=e.slice();--o>-1;)t=e[o],(n=e.indexOf(t))>-1&&n<o&&e.splice(o,1);return e.sort(function(e,t){var n=s(e,t);return n&r?-1:n&i?1:0}),e}},function(e,t,n){function r(e){this._cbs=e||{},this.events=[]}e.exports=r;var i=n(445).EVENTS;Object.keys(i).forEach(function(e){if(0===i[e])e="on"+e,r.prototype[e]=function(){this.events.push([e]),this._cbs[e]&&this._cbs[e]()};else if(1===i[e])e="on"+e,r.prototype[e]=function(t){this.events.push([e,t]),this._cbs[e]&&this._cbs[e](t)};else{if(2!==i[e])throw Error("wrong number of arguments");e="on"+e,r.prototype[e]=function(t,n){this.events.push([e,t,n]),this._cbs[e]&&this._cbs[e](t,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e<t;e++)if(this._cbs[this.events[e][0]]){var n=this.events[e].length;1===n?this._cbs[this.events[e][0]]():2===n?this._cbs[this.events[e][0]](this.events[e][1]):this._cbs[this.events[e][0]](this.events[e][1],this.events[e][2])}}},function(e,t,n){(function(t){var n=1/0,r="[object Symbol]",i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source),a="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),c=Object.prototype.toString,u=l.Symbol,d=u?u.prototype:void 0,f=d?d.toString:void 0;function p(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&c.call(e)==r}(e))return f?f.call(e):"";var t=e+"";return"0"==t&&1/e==-n?"-0":t}e.exports=function(e){var t;return(e=null==(t=e)?"":p(t))&&o.test(e)?e.replace(i,"\\$&"):e}}).call(this,n(69))},function(e,t,n){(function(e,n){var r=200,i="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",s="[object Boolean]",l="[object Date]",c="[object Function]",u="[object GeneratorFunction]",d="[object Map]",f="[object Number]",p="[object Object]",h="[object RegExp]",m="[object Set]",g="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",E="[object Int8Array]",k="[object Int16Array]",x="[object Int32Array]",S="[object Uint8Array]",T="[object Uint8ClampedArray]",C="[object Uint16Array]",O="[object Uint32Array]",A=/\w*$/,N=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M[a]=M["[object Array]"]=M[y]=M[b]=M[s]=M[l]=M[_]=M[w]=M[E]=M[k]=M[x]=M[d]=M[f]=M[p]=M[h]=M[m]=M[g]=M[v]=M[S]=M[T]=M[C]=M[O]=!0,M["[object Error]"]=M[c]=M["[object WeakMap]"]=!1;var j="object"==typeof e&&e&&e.Object===Object&&e,L="object"==typeof self&&self&&self.Object===Object&&self,P=j||L||Function("return this")(),D=t&&!t.nodeType&&t,R=D&&"object"==typeof n&&n&&!n.nodeType&&n,F=R&&R.exports===D;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function q(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function W(e,t){return function(n){return e(t(n))}}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Y,V=Array.prototype,K=Function.prototype,G=Object.prototype,X=P["__core-js_shared__"],Q=(Y=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Y:"",Z=K.toString,J=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+Z.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=F?P.Buffer:void 0,re=P.Symbol,ie=P.Uint8Array,oe=W(Object.getPrototypeOf,Object),ae=Object.create,se=G.propertyIsEnumerable,le=V.splice,ce=Object.getOwnPropertySymbols,ue=ne?ne.isBuffer:void 0,de=W(Object.keys,Object),fe=Re(P,"DataView"),pe=Re(P,"Map"),he=Re(P,"Promise"),me=Re(P,"Set"),ge=Re(P,"WeakMap"),ve=Re(Object,"create"),ye=ze(fe),be=ze(pe),_e=ze(he),we=ze(me),Ee=ze(ge),ke=re?re.prototype:void 0,xe=ke?ke.valueOf:void 0;function Se(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){this.__data__=new Te(e)}function Ae(e,t){var n=We(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&$e(e)}(e)&&J.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!J.call(e,o)||i&&("length"==o||Ue(o,r))||n.push(o);return n}function Ne(e,t,n){var r=e[t];J.call(e,t)&&He(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ie(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function Me(e,t,n,r,i,o,N){var I;if(r&&(I=o?r(e,i,o,N):r(e)),void 0!==I)return I;if(!Ke(e))return e;var j=We(e);if(j){if(I=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&J.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,I)}else{var L=Be(e),P=L==c||L==u;if(Ye(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(L==p||L==a||P&&!o){if(z(e))return o?e:{};if(I=function(e){return"function"!=typeof e.constructor||qe(e)?{}:(t=oe(e),Ke(t)?ae(t):{});var t}(P?{}:e),!t)return function(e,t){return Pe(e,Fe(e),t)}(e,function(e,t){return e&&Pe(t,Ge(t),e)}(I,e))}else{if(!M[L])return o?e:{};I=function(e,t,n,r){var i=e.constructor;switch(t){case y:return Le(e);case s:case l:return new i(+e);case b:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case _:case w:case E:case k:case x:case S:case T:case C:case O:return function(e,t){var n=t?Le(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case d:return function(e,t,n){return q(t?n(H(e),!0):H(e),B,new e.constructor)}(e,r,n);case f:case g:return new i(e);case h:return(c=new(a=e).constructor(a.source,A.exec(a))).lastIndex=a.lastIndex,c;case m:return function(e,t,n){return q(t?n($(e),!0):$(e),U,new e.constructor)}(e,r,n);case v:return o=e,xe?Object(xe.call(o)):{}}var o;var a,c}(e,L,Me,t)}}N||(N=new Oe);var D=N.get(e);if(D)return D;if(N.set(e,I),!j)var R=n?function(e){return function(e,t,n){var r=t(e);return We(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ge,Fe)}(e):Ge(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(R||e,function(i,o){R&&(i=e[o=i]),Ne(I,o,Me(i,t,n,r,o,e,N))}),I}function je(e){return!(!Ke(e)||(t=e,Q&&Q in t))&&(Ve(e)||z(e)?te:N).test(ze(e));var t}function Le(e){var t=new e.constructor(e.byteLength);return new ie(t).set(new ie(e)),t}function Pe(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;Ne(n,a,void 0===s?e[a]:s)}return n}function De(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return je(n)?n:void 0}Se.prototype.clear=function(){this.__data__=ve?ve(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(ve){var n=t[e];return n===i?void 0:n}return J.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:J.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?i:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0||(n==t.length-1?t.pop():le.call(t,n,1),0))},Te.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Ie(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Ie(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new Se,map:new(pe||Te),string:new Se}},Ce.prototype.delete=function(e){return De(this,e).delete(e)},Ce.prototype.get=function(e){return De(this,e).get(e)},Ce.prototype.has=function(e){return De(this,e).has(e)},Ce.prototype.set=function(e,t){return De(this,e).set(e,t),this},Oe.prototype.clear=function(){this.__data__=new Te},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var i=n.__data__;if(!pe||i.length<r-1)return i.push([e,t]),this;n=this.__data__=new Ce(i)}return n.set(e,t),this};var Fe=ce?W(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ue(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function ze(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function He(e,t){return e===t||e!=e&&t!=t}(fe&&Be(new fe(new ArrayBuffer(1)))!=b||pe&&Be(new pe)!=d||he&&"[object Promise]"!=Be(he.resolve())||me&&Be(new me)!=m||ge&&"[object WeakMap]"!=Be(new ge))&&(Be=function(e){var t=ee.call(e),n=t==p?e.constructor:void 0,r=n?ze(n):void 0;if(r)switch(r){case ye:return b;case be:return d;case _e:return"[object Promise]";case we:return m;case Ee:return"[object WeakMap]"}return t});var We=Array.isArray;function $e(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Ve(e)}var Ye=ue||function(){return!1};function Ve(e){var t=Ke(e)?ee.call(e):"";return t==c||t==u}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ge(e){return $e(e)?Ae(e):function(e){if(!qe(e))return de(e);var t=[];for(var n in Object(e))J.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return Me(e,!0,!0)}}).call(this,n(69),n(223)(e))},function(e,t,n){(function(e,n){var r=200,i="__lodash_hash_undefined__",o=800,a=16,s=9007199254740991,l="[object Arguments]",c="[object AsyncFunction]",u="[object Function]",d="[object GeneratorFunction]",f="[object Null]",p="[object Object]",h="[object Proxy]",m="[object Undefined]",g=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,y={};y["[object Float32Array]"]=y["[object Float64Array]"]=y["[object Int8Array]"]=y["[object Int16Array]"]=y["[object Int32Array]"]=y["[object Uint8Array]"]=y["[object Uint8ClampedArray]"]=y["[object Uint16Array]"]=y["[object Uint32Array]"]=!0,y[l]=y["[object Array]"]=y["[object ArrayBuffer]"]=y["[object Boolean]"]=y["[object DataView]"]=y["[object Date]"]=y["[object Error]"]=y[u]=y["[object Map]"]=y["[object Number]"]=y[p]=y["[object RegExp]"]=y["[object Set]"]=y["[object String]"]=y["[object WeakMap]"]=!1;var b="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,w=b||_||Function("return this")(),E=t&&!t.nodeType&&t,k=E&&"object"==typeof n&&n&&!n.nodeType&&n,x=k&&k.exports===E,S=x&&b.process,T=function(){try{var e=k&&k.require&&k.require("util").types;return e||S&&S.binding&&S.binding("util")}catch(e){}}(),C=T&&T.isTypedArray;var O,A,N,I=Array.prototype,M=Function.prototype,j=Object.prototype,L=w["__core-js_shared__"],P=M.toString,D=j.hasOwnProperty,R=(O=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",F=j.toString,B=P.call(Object),U=RegExp("^"+P.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=x?w.Buffer:void 0,z=w.Symbol,H=w.Uint8Array,W=q?q.allocUnsafe:void 0,$=(A=Object.getPrototypeOf,N=Object,function(e){return A(N(e))}),Y=Object.create,V=j.propertyIsEnumerable,K=I.splice,G=z?z.toStringTag:void 0,X=function(){try{var e=we(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Q=q?q.isBuffer:void 0,Z=Math.max,J=Date.now,ee=we(w,"Map"),te=we(Object,"create"),ne=function(){function e(){}return function(t){if(!je(t))return{};if(Y)return Y(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ae(e){var t=this.__data__=new ie(e);this.size=t.size}function se(e,t){var n=Oe(e),r=!n&&Ce(e),i=!n&&!r&&Ne(e),o=!n&&!r&&!i&&Pe(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!D.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ee(c,l))||s.push(c);return s}function le(e,t,n){(void 0===n||Te(e[t],n))&&(void 0!==n||t in e)||de(e,t,n)}function ce(e,t,n){var r=e[t];D.call(e,t)&&Te(r,n)&&(void 0!==n||t in e)||de(e,t,n)}function ue(e,t){for(var n=e.length;n--;)if(Te(e[n][0],t))return n;return-1}function de(e,t,n){"__proto__"==t&&X?X(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}re.prototype.clear=function(){this.__data__=te?te(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(te){var n=t[e];return n===i?void 0:n}return D.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return te?void 0!==t[e]:D.call(t,e)},re.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=te&&void 0===t?i:t,this},ie.prototype.clear=function(){this.__data__=[],this.size=0},ie.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0||(n==t.length-1?t.pop():K.call(t,n,1),--this.size,0))},ie.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},ie.prototype.has=function(e){return ue(this.__data__,e)>-1},ie.prototype.set=function(e,t){var n=this.__data__,r=ue(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},oe.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(ee||ie),string:new re}},oe.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},oe.prototype.get=function(e){return _e(this,e).get(e)},oe.prototype.has=function(e){return _e(this,e).has(e)},oe.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ae.prototype.clear=function(){this.__data__=new ie,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var i=n.__data__;if(!ee||i.length<r-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(i)}return n.set(e,t),this.size=n.size,this};var fe,pe=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[fe?a:++r];if(!1===t(i[s],s,i))break}return e};function he(e){return null==e?void 0===e?m:f:G&&G in Object(e)?function(e){var t=D.call(e,G),n=e[G];try{e[G]=void 0;var r=!0}catch(e){}var i=F.call(e);r&&(t?e[G]=n:delete e[G]);return i}(e):function(e){return F.call(e)}(e)}function me(e){return Le(e)&&he(e)==l}function ge(e){return!(!je(e)||(t=e,R&&R in t))&&(Ie(e)?U:g).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function ve(e){if(!je(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ke(e),n=[];for(var r in e)("constructor"!=r||!t&&D.call(e,r))&&n.push(r);return n}function ye(e,t,n,r,i){e!==t&&pe(t,function(o,a){if(i||(i=new ae),je(o))!function(e,t,n,r,i,o,a){var s=xe(e,n),l=xe(t,n),c=a.get(l);if(c)return void le(e,n,c);var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Oe(l),h=!f&&Ne(l),m=!f&&!h&&Pe(l);u=l,f||h||m?Oe(s)?u=s:Le(_=s)&&Ae(_)?u=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):h?(d=!1,u=function(e,t){if(t)return e.slice();var n=e.length,r=W?W(n):new e.constructor(n);return e.copy(r),r}(l,!0)):m?(d=!1,g=l,v=!0?(y=g.buffer,b=new y.constructor(y.byteLength),new H(b).set(new H(y)),b):g.buffer,u=new g.constructor(v,g.byteOffset,g.length)):u=[]:function(e){if(!Le(e)||he(e)!=p)return!1;var t=$(e);if(null===t)return!0;var n=D.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==B}(l)||Ce(l)?(u=s,Ce(s)?u=function(e){return function(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?de(n,s,l):ce(n,s,l)}return n}(e,De(e))}(s):je(s)&&!Ie(s)||(u=function(e){return"function"!=typeof e.constructor||ke(e)?{}:ne($(e))}(l))):d=!1}var g,v,y,b;var _;d&&(a.set(l,u),i(u,l,r,o,a),a.delete(l));le(e,n,u)}(e,t,a,n,ye,r,i);else{var s=r?r(xe(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),le(e,a,s)}},De)}function be(e,t){return Se(function(e,t,n){return t=Z(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Z(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Be),e+"")}function _e(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function we(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ge(n)?n:void 0}function Ee(e,t){var n=typeof e;return!!(t=null==t?s:t)&&("number"==n||"symbol"!=n&&v.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||j)}function xe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Se=function(e){var t=0,n=0;return function(){var r=J(),i=a-(r-n);if(n=r,i>0){if(++t>=o)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(X?function(e,t){return X(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Be);function Te(e,t){return e===t||e!=e&&t!=t}var Ce=me(function(){return arguments}())?me:function(e){return Le(e)&&D.call(e,"callee")&&!V.call(e,"callee")},Oe=Array.isArray;function Ae(e){return null!=e&&Me(e.length)&&!Ie(e)}var Ne=Q||function(){return!1};function Ie(e){if(!je(e))return!1;var t=he(e);return t==u||t==d||t==c||t==h}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Le(e){return null!=e&&"object"==typeof e}var Pe=C?function(e){return function(t){return e(t)}}(C):function(e){return Le(e)&&Me(e.length)&&!!y[he(e)]};function De(e){return Ae(e)?se(e,!0):ve(e)}var Re,Fe=(Re=function(e,t,n,r){ye(e,t,n,r)},be(function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Re.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!je(n))return!1;var r=typeof t;return!!("number"==r?Ae(n)&&Ee(t,n.length):"string"==r&&t in n)&&Te(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&Re(e,a,n,i)}return e}));function Be(e){return e}n.exports=Fe}).call(this,n(69),n(223)(e))},function(e,t,n){"use strict";var r=n(1576),i=n(1577),o=/^\d+$/;t.parse=function(e){return(t=e.split(",").map(function(e){var t={};return e.trim().split(/\s+/).forEach(function(e,n){if(0===n)return t.url=e;var i=e.substring(0,e.length-1),a=e[e.length-1],s=parseInt(i,10),l=parseFloat(i);if("w"===a&&o.test(i))t.width=s;else if("h"===a&&o.test(i))t.height=s;else{if("x"!==a||r(l))throw new Error("Invalid srcset descriptor: "+e+".");t.density=l}}),t})).sort().filter(function(e,n){return JSON.stringify(e)!==JSON.stringify(t[n-1])});var t},t.stringify=function(e){return i(e.map(function(e){if(!e.url)throw new Error("URL is required.");var t=[e.url];return e.width&&t.push(e.width+"w"),e.height&&t.push(e.height+"h"),e.density&&t.push(e.density+"x"),t.join(" ")})).join(", ")}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";(function(t){var n;"Set"in t?"function"==typeof Set.prototype.forEach&&(n=!1,new Set([!0]).forEach(function(e){n=e}),!0===n)?e.exports=function(e){var t=[];return new Set(e).forEach(function(e){t.push(e)}),t}:e.exports=function(e){var t=new Set;return e.filter(function(e){return!t.has(e)&&(t.add(e),!0)})}:e.exports=function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}}).call(this,n(69))},function(e,t,n){"use strict";t.__esModule=!0;var r=p(n(659)),i=p(n(848)),o=p(n(661)),a=p(n(663)),s=p(n(523)),l=p(n(1593)),c=p(n(662)),u=p(n(850)),d=p(n(524)),f=p(n(665));function p(e){return e&&e.__esModule?e:{default:e}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 1===t.length&&Array.isArray(t[0])&&(t=t[0]),new i.default(t)}h.plugin=function(e,t){var n=function(){var n=t.apply(void 0,arguments);return n.postcssPlugin=e,n.postcssVersion=(new i.default).version,n},r=void 0;return Object.defineProperty(n,"postcss",{get:function(){return r||(r=n()),r}}),n.process=function(e,t,r){return h([n(r)]).process(e,t)},n},h.stringify=o.default,h.parse=c.default,h.vendor=l.default,h.list=u.default,h.comment=function(e){return new a.default(e)},h.atRule=function(e){return new s.default(e)},h.decl=function(e){return new r.default(e)},h.rule=function(e){return new d.default(e)},h.root=function(e){return new f.default(e)},t.default=h,e.exports=t.default},function(e,t){},function(e,t,n){"use strict";t.__esModule=!0;var r=a(n(839)),i=a(n(840)),o=a(n(841));function a(e){return e&&e.__esModule?e:{default:e}}var s={brackets:r.default.cyan,"at-word":r.default.cyan,call:r.default.cyan,comment:r.default.gray,string:r.default.green,class:r.default.yellow,hash:r.default.magenta,"(":r.default.cyan,")":r.default.cyan,"{":r.default.yellow,"}":r.default.yellow,"[":r.default.yellow,"]":r.default.yellow,":":r.default.yellow,";":r.default.yellow};t.default=function(e){for(var t=(0,i.default)(new o.default(e),{ignoreErrors:!0}),n="",r=function(){var e=t.nextToken(),r=s[function(e,t){var n=e[0],r=e[1];if("word"===n){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!t.endOfFile()){var i=t.nextToken();if(t.back(i),"brackets"===i[0]||"("===i[0])return"call"}return n}(e,t)];n+=r?e[1].split(/\r?\n/).map(function(e){return r(e)}).join("\n"):e[1]};!t.endOfFile();)r();return n},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=l(n(842)),a=l(n(388)),s=l(n(1588));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var r=n.map?n.map.prev:void 0,i=this.loadMap(n.from,r);i&&(this.text=i)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),r?r.from&&r.from!==Uint8Array.from?r.from(n,"base64").toString():new r(n,"base64").toString():window.atob(n);var n,i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var n=t(e);if(n&&s.default.existsSync&&s.default.existsSync(n))return s.default.readFileSync(n,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+n.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var r=this.annotation;return e&&(r=a.default.join(a.default.dirname(e),r)),this.root=a.default.dirname(r),!(!s.default.existsSync||!s.default.existsSync(r))&&s.default.readFileSync(r,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":i(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();t.default=c,e.exports=t.default}).call(this,n(349).Buffer)},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var r=n(448);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,o,a,s;t=this._last,n=e,i=t.generatedLine,o=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,o>i||o==i&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},function(e,t,n){var r=n(448),i=n(1585),o=n(845).ArraySet,a=n(844),s=n(1586).quickSort;function l(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new d(n,t):new c(n,t)}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var i=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null),u=r.getArg(n,"mappings"),d=r.getArg(n,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);l&&(l=r.normalize(l)),a=a.map(String).map(r.normalize).map(function(e){return l&&r.isAbsolute(l)&&r.isAbsolute(e)?r.relative(l,e):e}),this._names=o.fromArray(s.map(String),!0),this._sources=o.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return r.computeSourceURL(l,e,t)}),this.sourceRoot=l,this.sourcesContent=c,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var i=r.getArg(n,"version"),a=r.getArg(n,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new o,this._names=new o;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),i=r.getArg(n,"line"),o=r.getArg(n,"column");if(i<s.line||i===s.line&&o<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new l(r.getArg(e,"map"),t)}})}l.fromSourceMap=function(e,t){return c.fromSourceMap(e,t)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},l.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(e,t,n){var i,o=t||null;switch(n||l.GENERATED_ORDER){case l.GENERATED_ORDER:i=this._generatedMappings;break;case l.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;i.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=r.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,o)},l.prototype.allGeneratedPositionsFor=function(e){var t=r.getArg(e,"line"),n={source:r.getArg(e,"source"),originalLine:t,originalColumn:r.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var o=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var l=s.originalLine;s&&s.originalLine===l;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var c=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==c;)o.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return o},t.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},c.fromSourceMap=function(e,t){var n=Object.create(c.prototype),i=n._names=o.fromArray(e._names.toArray(),!0),a=n._sources=o.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map(function(e){return r.computeSourceURL(n.sourceRoot,e,t)});for(var l=e._mappings.toArray().slice(),d=n.__generatedMappings=[],f=n.__originalMappings=[],p=0,h=l.length;p<h;p++){var m=l[p],g=new u;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=a.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=i.indexOf(m.name)),f.push(g)),d.push(g)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(e,t){for(var n,i,o,l,c,d=1,f=0,p=0,h=0,m=0,g=0,v=e.length,y=0,b={},_={},w=[],E=[];y<v;)if(";"===e.charAt(y))d++,y++,f=0;else if(","===e.charAt(y))y++;else{for((n=new u).generatedLine=d,l=y;l<v&&!this._charIsMappingSeparator(e,l);l++);if(o=b[i=e.slice(y,l)])y+=i.length;else{for(o=[];y<l;)a.decode(e,y,_),c=_.value,y=_.rest,o.push(c);if(2===o.length)throw new Error("Found a source, but no line and column");if(3===o.length)throw new Error("Found a source and line, but no column");b[i]=o}n.generatedColumn=f+o[0],f=n.generatedColumn,o.length>1&&(n.source=m+o[1],m+=o[1],n.originalLine=p+o[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=h+o[3],h=n.originalColumn,o.length>4&&(n.name=g+o[4],g+=o[4])),E.push(n),"number"==typeof n.originalLine&&w.push(n)}s(E,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,s(w,r.compareByOriginalPositions),this.__originalMappings=w},c.prototype._findMapping=function(e,t,n,r,o,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o,a)},c.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=r.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=r.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var a=r.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:o,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i,o=e;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=r.urlParse(this.sourceRoot))){var a=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:r.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=c,d.prototype=Object.create(l.prototype),d.prototype.constructor=l,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")},n=i.search(t,this._sections,function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn}),o=this._sections[n];return o?o.consumer.originalPositionFor({line:t.generatedLine-(o.generatedOffset.generatedLine-1),column:t.generatedColumn-(o.generatedOffset.generatedLine===t.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},d.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(r.getArg(e,"source"))){var i=n.consumer.generatedPositionFor(e);if(i)return{line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,a=0;a<o.length;a++){var l=o[a],c=i.consumer._sources.at(l.source);c=r.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=i.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},t.IndexedSourceMapConsumer=d},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var o=function e(n,r,i,o,a,s){var l=Math.floor((r-n)/2)+n,c=a(i,o[l],!0);return 0===c?l:c>0?r-l>1?e(l,r,i,o,a,s):s==t.LEAST_UPPER_BOUND?r<o.length?r:-1:l:l-n>1?e(n,l,i,o,a,s):s==t.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===r(n[o],n[o-1],!0);)--o;return o}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,i,o){if(i<o){var a=i-1;n(e,(u=i,d=o,Math.round(u+Math.random()*(d-u))),o);for(var s=e[o],l=i;l<o;l++)t(e[l],s)<=0&&n(e,a+=1,l);n(e,a+1,l);var c=a+1;r(e,t,i,c-1),r(e,t,c+1,o)}var u,d}t.quickSort=function(e,t){r(e,t,0,e.length-1)}},function(e,t,n){var r=n(843).SourceMapGenerator,i=n(448),o=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(e,t,n){var r=new s,a=e.split(o),l=0,c=function(){return e()+(e()||"");function e(){return l<a.length?a[l++]:void 0}},u=1,d=0,f=null;return t.eachMapping(function(e){if(null!==f){if(!(u<e.generatedLine)){var t=(n=a[l]||"").substr(0,e.generatedColumn-d);return a[l]=n.substr(e.generatedColumn-d),d=e.generatedColumn,p(f,t),void(f=e)}p(f,c()),u++,d=0}for(;u<e.generatedLine;)r.add(c()),u++;if(d<e.generatedColumn){var n=a[l]||"";r.add(n.substr(0,e.generatedColumn)),a[l]=n.substr(e.generatedColumn),d=e.generatedColumn}f=e},this),l<a.length&&(f&&p(f,c()),r.add(a.splice(l).join(""))),t.sources.forEach(function(e){var o=t.sourceContentFor(e);null!=o&&(null!=n&&(e=i.join(n,e)),r.setSourceContent(e,o))}),r;function p(e,t){if(null===e||void 0===e.source)r.add(t);else{var o=n?i.join(n,e.source):e.source;r.add(new s(e.originalLine,e.originalColumn,o,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n<r;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,r=this.children.length;if(r>0){for(t=[],n=0;n<r-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var r=Object.keys(this.sourceContents);for(t=0,n=r.length;t<n;t++)e(i.fromSetString(r[t]),this.sourceContents[r[t]])},s.prototype.toString=function(){var e="";return this.walk(function(t){e+=t}),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new r(e),i=!1,o=null,a=null,s=null,l=null;return this.walk(function(e,r){t.code+=e,null!==r.source&&null!==r.line&&null!==r.column?(o===r.source&&a===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name}),o=r.source,a=r.line,s=r.column,l=r.name,i=!0):i&&(n.addMapping({generated:{line:t.line,column:t.column}}),o=null,i=!1);for(var c=0,u=e.length;c<u;c++)10===e.charCodeAt(c)?(t.line++,t.column=0,c+1===u?(o=null,i=!1):i&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:t.line,column:t.column},name:r.name})):t.column++}),this.walkSourceContents(function(e,t){n.setSourceContent(e,t)}),{code:t.code,map:n}},t.SourceNode=s},function(e,t){},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i=a(n(842)),o=a(n(388));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=r.map||{},this.root=n,this.opts=r}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(t){if(t.source&&t.source.input.map){var n=t.source.input.map;-1===e.previousMaps.indexOf(n)&&e.previousMaps.push(n)}})),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk(function(n){if(n.source){var r=n.source.input.from;if(r&&!t[r]){t[r]=!0;var i=e.relative(r);e.map.setSourceContent(i,n.source.input.css)}}})},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var r;if(t){if(n>=e.length)break;r=e[n++]}else{if((n=e.next()).done)break;r=n.value}var a=r,s=this.relative(a.file),l=a.root||o.default.dirname(a.file),c=void 0;!1===this.mapOpts.sourcesContent?(c=new i.default.SourceMapConsumer(a.text)).sourcesContent&&(c.sourcesContent=c.sourcesContent.map(function(){return null})):c=a.consumer(),this.map.applySourceMap(c,s,this.relative(l))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},e.prototype.toBase64=function(e){return r?r.from&&r.from!==Uint8Array.from?r.from(e).toString("base64"):new r(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e=void 0;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new i.default.SourceMapGenerator({file:this.outputFile()});var t=1,n=1,r=void 0,o=void 0;this.stringify(this.root,function(i,a,s){e.css+=i,a&&"end"!==s&&(a.source&&a.source.start?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.start.line,column:a.source.start.column-1}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}})),(r=i.match(/\n/g))?(t+=r.length,o=i.lastIndexOf("\n"),n=i.length-o):n+=i.length,a&&"start"!==s&&(a.source&&a.source.end?e.map.addMapping({source:e.sourcePath(a),generated:{line:t,column:n-1},original:{line:a.source.end.line,column:a.source.end.column}}):e.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:t,column:n-1}}))})},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},e}();t.default=s,e.exports=t.default}).call(this,n(349).Buffer)},function(e,t,n){"use strict";t.__esModule=!0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1591),a=(r=o)&&r.__esModule?r:{default:r};var s=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.processor=t,this.messages=[],this.root=n,this.opts=r,this.css=void 0,this.map=void 0}return e.prototype.toString=function(){return this.css},e.prototype.warn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var n=new a.default(e,t);return this.messages.push(n),n},e.prototype.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},i(e,[{key:"content",get:function(){return this.css}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="warning",this.text=t,n.node&&n.node.source){var r=n.node.positionBy(n);this.line=r.line,this.column=r.column}for(var i in n)this[i]=n[i]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(659)),i=c(n(840)),o=c(n(663)),a=c(n(523)),s=c(n(665)),l=c(n(524));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.root=new s.default,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.createTokenizer=function(){this.tokenizer=(0,i.default)(this.input)},e.prototype.parse=function(){for(var e=void 0;!this.tokenizer.endOfFile();)switch((e=this.tokenizer.nextToken())[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()},e.prototype.comment=function(e){var t=new o.default;this.init(t,e[2],e[3]),t.source.end={line:e[4],column:e[5]};var n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{var r=n.match(/^(\s*)([^]*[^\s])(\s*)$/);t.text=r[2],t.raws.left=r[1],t.raws.right=r[3]}},e.prototype.emptyRule=function(e){var t=new l.default;this.init(t,e[2],e[3]),t.selector="",t.raws.between="",this.current=t},e.prototype.other=function(e){for(var t=!1,n=null,r=!1,i=null,o=[],a=[],s=e;s;){if(n=s[0],a.push(s),"("===n||"["===n)i||(i=s),o.push("("===n?")":"]");else if(0===o.length){if(";"===n){if(r)return void this.decl(a);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));s=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){for(;a.length&&("space"===(s=a[a.length-1][0])||"comment"===s);)this.tokenizer.back(a.pop());this.decl(a)}else this.unknownWord(a)},e.prototype.rule=function(e){e.pop();var t=new l.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new r.default;this.init(t);var n=e[e.length-1];for(";"===n[0]&&(this.semicolon=!0,e.pop()),n[4]?t.source.end={line:n[4],column:n[5]}:t.source.end={line:n[2],column:n[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(":"===(o=e.shift())[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var a=e.length-1;a>0;a--){if("!important"===(o=e[a])[1].toLowerCase()){t.important=!0;var s=this.stringFrom(e,a);" !important"!==(s=this.spacesFromEnd(e)+s)&&(t.raws.important=s);break}if("important"===o[1].toLowerCase()){for(var l=e.slice(0),c="",u=a;u>0;u--){var d=l[u][0];if(0===c.trim().indexOf("!")&&"space"!==d)break;c=l.pop()[1]+c}0===c.trim().indexOf("!")&&(t.important=!0,t.raws.important=c,e=l)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new a.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var n=void 0,r=void 0,i=!1,o=!1,s=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){o=!0;break}if("}"===e[0]){if(s.length>0){for(n=s[r=s.length-1];n&&"space"===n[0];)n=s[--r];n&&(t.source.end={line:n[4],column:n[5]})}this.end(e);break}if(s.push(e),this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(s),s.length?(t.raws.afterName=this.spacesAndCommentsFromStart(s),this.raw(t,"params",s),i&&(e=s[s.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,n){this.current.push(e),e.source={start:{line:t,column:n},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,n){for(var r=void 0,i=void 0,o=n.length,a="",s=!0,l=0;l<o;l+=1)"comment"===(i=(r=n[l])[0])||"space"===i&&l===o-1?s=!1:a+=r[1];if(!s){var c=n.reduce(function(e,t){return e+t[1]},"");e.raws[t]={value:a,raw:c}}e[t]=a},e.prototype.spacesAndCommentsFromEnd=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[e.length-1][0])||"comment"===t);)n=e.pop()[1]+n;return n},e.prototype.spacesAndCommentsFromStart=function(e){for(var t=void 0,n="";e.length&&("space"===(t=e[0][0])||"comment"===t);)n+=e.shift()[1];return n},e.prototype.spacesFromEnd=function(e){for(var t="";e.length&&"space"===e[e.length-1][0];)t=e.pop()[1]+t;return t},e.prototype.stringFrom=function(e,t){for(var n="",r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n},e.prototype.colon=function(e){for(var t=0,n=void 0,r=void 0,i=void 0,o=0;o<e.length;o++){if("("===(r=(n=e[o])[0]))t+=1;else if(")"===r)t-=1;else if(0===t&&":"===r){if(i){if("word"===i[0]&&"progid"===i[1])continue;return o}this.doubleColon(n)}i=n}return!1},e.prototype.unclosedBracket=function(e){throw this.input.error("Unclosed bracket",e[2],e[3])},e.prototype.unknownWord=function(e){throw this.input.error("Unknown word",e[0][2],e[0][3])},e.prototype.unexpectedClose=function(e){throw this.input.error("Unexpected }",e[2],e[3])},e.prototype.unclosedBlock=function(){var e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)},e.prototype.doubleColon=function(e){throw this.input.error("Double colon",e[2],e[3])},e.prototype.unnamedAtrule=function(e,t){throw this.input.error("At-rule without name",t[2],t[3])},e.prototype.precheckMissedSemicolon=function(e){},e.prototype.checkMissedSemicolon=function(e){var t=this.colon(e);if(!1!==t){for(var n=0,r=void 0,i=t-1;i>=0&&("space"===(r=e[i])[0]||2!==(n+=1));i--);throw this.input.error("Missed semicolon",r[2],r[3])}},e}();t.default=u,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;t.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},e.exports=t.default},function(e,t,n){var r=n(1595);e.exports=r},function(e,t,n){n(1596);var r=n(118).Object,i=e.exports=function(e,t,n){return r.defineProperty(e,t,n)};r.defineProperty.sham&&(i.sham=!0)},function(e,t,n){var r=n(70),i=n(176);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(280).f})},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(348),i=n(34);e.exports=i(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})})},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}},function(e,t,n){var r=n(34),i=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(851);e.exports=function(e){return function t(n){for(var i,o,a,s=[],l=0,c=n.length;l<c;){if(r(n[l]))for(a=0,o=(i=e?t(n[l]):n[l]).length;a<o;)s[s.length]=i[a],a+=1;else s[s.length]=n[l];l+=1}return s}}},function(e,t,n){var r=n(34),i=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(1605),i=n(1606),o=n(250),a=n(1607),s=n(106),l=n(1608);e.exports=function e(t,n,c,u){if(a(t,n))return!0;if(l(t)!==l(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(l(t)){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===i(t.constructor))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!a(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!a(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1;break;case"Map":case"Set":if(!e(r(t.entries()),r(n.entries()),c,u))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var d=s(t);if(d.length!==s(n).length)return!1;for(var f=c.length-1;f>=0;){if(c[f]===t)return u[f]===n;f-=1}for(c.push(t),u.push(n),f=d.length-1;f>=0;){var p=d[f];if(!o(p,n)||!e(n[p],t[p],c,u))return!1;f-=1}return c.pop(),u.pop(),!0}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t})},function(e,t,n){var r=n(87);e.exports=r(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)})},function(e,t,n){var r=n(1610);e.exports=r},function(e,t,n){n(1611);var r=n(118);e.exports=r.Object.assign},function(e,t,n){var r=n(70),i=n(1612);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";var r=n(176),i=n(137),o=n(442),a=n(855),s=n(511),l=n(222),c=n(512),u=Object.assign,d=Object.defineProperty;e.exports=!u||i(function(){if(r&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||"abcdefghijklmnopqrst"!=o(u({},t)).join("")})?function(e,t){for(var n=l(e),i=arguments.length,u=1,d=a.f,f=s.f;i>u;)for(var p,h=c(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,v=0;g>v;)p=m[v++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:u},function(e,t,n){var r=n(1614);e.exports=r},function(e,t,n){n(1615);var r=n(118);e.exports=r.Object.values},function(e,t,n){var r=n(70),i=n(1616).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){var r=n(176),i=n(442),o=n(245),a=n(511).f,s=function(e){return function(t){for(var n,s=o(t),l=i(s),c=l.length,u=0,d=[];c>u;)n=l[u++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},function(e,t,n){var r=n(1618);e.exports=r},function(e,t,n){n(1619);var r=n(118);e.exports=r.Object.keys},function(e,t,n){var r=n(70),i=n(222),o=n(442);r({target:"Object",stat:!0,forced:n(137)(function(){o(1)})},{keys:function(e){return o(i(e))}})},function(e,t,n){var r=n(1621);e.exports=r},function(e,t,n){var r=n(1622),i=Array.prototype;e.exports=function(e){var t=e.reduce;return e===i||e instanceof Array&&t===i.reduce?r:t}},function(e,t,n){n(1623);var r=n(145);e.exports=r("Array").reduce},function(e,t,n){"use strict";var r=n(70),i=n(1624).left,o=n(450),a=n(285),s=o("reduce"),l=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!s||!l},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(279),i=n(222),o=n(512),a=n(221),s=function(e){return function(t,n,s,l){r(n);var c=i(t),u=o(c),d=a(c.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){l=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in u&&(l=n(l,u[f],f,c));return l}};e.exports={left:s(!1),right:s(!0)}},function(e,t,n){var r=n(1626);e.exports=r},function(e,t,n){n(312);var r=n(1627),i=n(283),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.forEach;return e===o||e instanceof Array&&t===o.forEach||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(1628);e.exports=r},function(e,t,n){n(1629);var r=n(145);e.exports=r("Array").forEach},function(e,t,n){"use strict";var r=n(70),i=n(1630);r({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(e,t,n){"use strict";var r=n(451).forEach,i=n(450),o=n(285),a=i("forEach"),s=o("forEach");e.exports=a&&s?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(1632);e.exports=r},function(e,t,n){n(1633);var r=n(118).Object,i=e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)};r.getOwnPropertyDescriptor.sham&&(i.sham=!0)},function(e,t,n){var r=n(70),i=n(137),o=n(245),a=n(342).f,s=n(176),l=i(function(){a(1)});r({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){var r=n(1635);e.exports=r},function(e,t,n){var r=n(1636),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){n(1637);var r=n(145);e.exports=r("Array").filter},function(e,t,n){"use strict";var r=n(70),i=n(451).filter,o=n(525),a=n(285),s=o("filter"),l=a("filter");r({target:"Array",proto:!0,forced:!s||!l},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1639);e.exports=r},function(e,t,n){var r=n(1640),i=Array.prototype;e.exports=function(e){var t=e.concat;return e===i||e instanceof Array&&t===i.concat?r:t}},function(e,t,n){n(857);var r=n(145);e.exports=r("Array").concat},function(e,t,n){var r=n(1642);e.exports=r},function(e,t,n){n(670);var r=n(118);e.exports=r.Object.getOwnPropertySymbols},function(e,t,n){var r=n(245),i=n(858).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(1645);e.exports=r},function(e,t,n){var r=n(1646),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||e instanceof Array&&t===i.indexOf?r:t}},function(e,t,n){n(1647);var r=n(145);e.exports=r("Array").indexOf},function(e,t,n){"use strict";var r=n(70),i=n(648).indexOf,o=n(450),a=n(285),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,c=o("indexOf"),u=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:l||!c||!u},{indexOf:function(e){return l?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(1649);e.exports=r},function(e,t,n){var r=n(1650),i=Function.prototype;e.exports=function(e){var t=e.bind;return e===i||e instanceof Function&&t===i.bind?r:t}},function(e,t,n){n(1651);var r=n(145);e.exports=r("Function").bind},function(e,t,n){n(70)({target:"Function",proto:!0},{bind:n(1652)})},function(e,t,n){"use strict";var r=n(279),i=n(164),o=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),s=function(){var r=n.concat(o.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(1654);e.exports=r},function(e,t,n){n(1655);var r=n(118);r.JSON||(r.JSON={stringify:JSON.stringify}),e.exports=function(e,t,n){return r.JSON.stringify.apply(null,arguments)}},function(e,t,n){var r=n(70),i=n(282),o=n(137),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,c=/^[\uDC00-\uDFFF]$/,u=function(e,t,n){var r=n.charAt(t-1),i=n.charAt(t+1);return l.test(e)&&!c.test(i)||c.test(e)&&!l.test(r)?"\\u"+e.charCodeAt(0).toString(16):e},d=o(function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")});a&&r({target:"JSON",stat:!0,forced:d},{stringify:function(e,t,n){var r=a.apply(null,arguments);return"string"==typeof r?r.replace(s,u):r}})},function(e,t,n){var r=n(1657);e.exports=r},function(e,t,n){var r=n(1658),i=String.prototype;e.exports=function(e){var t=e.trim;return"string"==typeof e||e===i||e instanceof String&&t===i.trim?r:t}},function(e,t,n){n(1659);var r=n(145);e.exports=r("String").trim},function(e,t,n){"use strict";var r=n(70),i=n(672).trim;r({target:"String",proto:!0,forced:n(1660)("trim")},{trim:function(){return i(this)}})},function(e,t,n){var r=n(137),i=n(526);e.exports=function(e){return r(function(){return!!i[e]()||"​᠎"!="​᠎"[e]()||i[e].name!==e})}},function(e,t,n){var r=n(379),i=n(668),o=n(1662),a=n(1663),s=n(106),l=n(112);e.exports=function e(t,n){var c=function(i){var o=n.concat([t]);return r(i,o)?"<Circular>":e(i,o)},u=function(e,t){return i(function(t){return o(t)+": "+c(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+i(c,t).join(", ")+"))";case"[object Array]":return"["+i(c,t).concat(u(t,l(function(e){return/^\d+$/.test(e)},s(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+c(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?c(NaN):o(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+c(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+c(t.valueOf())+")":o(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var d=t.toString();if("[object Object]"!==d)return d}return"{"+u(t,s(t)).join(", ")+"}"}}},function(e,t){e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(e,t){var n;e.exports=(n=function(e){return(e<10?"0":"")+e},"function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+n(e.getUTCMonth()+1)+"-"+n(e.getUTCDate())+"T"+n(e.getUTCHours())+":"+n(e.getUTCMinutes())+":"+n(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"})},function(e,t){e.exports=function(e){return function(){return!e.apply(this,arguments)}}},function(e,t,n){var r=n(1666);e.exports=r},function(e,t,n){var r=n(1667),i=n(1669),o=Array.prototype,a=String.prototype;e.exports=function(e){var t=e.includes;return e===o||e instanceof Array&&t===o.includes?r:"string"==typeof e||e===a||e instanceof String&&t===a.includes?i:t}},function(e,t,n){n(1668);var r=n(145);e.exports=r("Array").includes},function(e,t,n){"use strict";var r=n(70),i=n(648).includes,o=n(517);r({target:"Array",proto:!0,forced:!n(285)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(e,t,n){n(1670);var r=n(145);e.exports=r("String").includes},function(e,t,n){"use strict";var r=n(70),i=n(643),o=n(345);r({target:"String",proto:!0,forced:!n(647)("includes")},{includes:function(e){return!!~String(o(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";
/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},i=t||{},a=e.split(o),l=i.decode||r,c=0;c<a.length;c++){var u=a[c],d=u.indexOf("=");if(!(d<0)){var f=u.substr(0,d).trim(),p=u.substr(++d,u.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[f]&&(n[f]=s(p,l))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||i;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=r.maxAge){var c=r.maxAge-0;if(isNaN(c))throw new Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(c)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");l+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(l+="; HttpOnly");r.secure&&(l+="; Secure");if(r.sameSite){var u="string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=decodeURIComponent,i=encodeURIComponent,o=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){var r=n(1673);e.exports=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}(t)}catch(e){return r(t)}}},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(e){this.message=e}r.prototype=new Error,r.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,a=0,s=0,l="";o=t.charAt(s++);~o&&(i=a%4?64*i+o:o,a++%4)?l+=String.fromCharCode(255&i>>(-2*a&6)):0)o=n.indexOf(o);return l}},function(e,t,n){var r=n(250);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,i=arguments.length;n<i;){var o=arguments[n];if(null!=o)for(var a in o)r(a,o)&&(t[a]=o[a]);n+=1}return t}},function(e,t,n){var r=n(34),i=n(351),o=n(1676),a=n(60),s=n(35);e.exports=r(function(e,t){var n=a(e,t);return a(e,function(){return i(o,s(n,arguments[0]),Array.prototype.slice.call(arguments,1))})})},function(e,t,n){var r=n(353),i=n(34),o=n(351),a=n(35);e.exports=i(function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:o(function(e,n){return r(e,a(n,t))},[],e)})},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){var r=n(348),i=n(34);e.exports=function(e){return i(function(t,n){return r(Math.max(0,t.length-n.length),function(){return t.apply(this,e(n,arguments))})})}},function(e,t,n){var r=n(1680);e.exports=r},function(e,t,n){var r=n(1681),i=Array.prototype;e.exports=function(e){var t=e.map;return e===i||e instanceof Array&&t===i.map?r:t}},function(e,t,n){n(1682);var r=n(145);e.exports=r("Array").map},function(e,t,n){"use strict";var r=n(70),i=n(451).map,o=n(525),a=n(285),s=o("map"),l=a("map");r({target:"Array",proto:!0,forced:!s||!l},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(87),i=n(854),o=n(352),a=n(667),s=n(449);e.exports=r(function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():o(e)?[]:s(e)?"":a(e)?{}:i(e)?function(){return arguments}():void 0})},function(e,t,n){var r=n(1685);e.exports=r},function(e,t,n){n(439),n(1686);var r=n(118);e.exports=r.Array.from},function(e,t,n){var r=n(70),i=n(1687);r({target:"Array",stat:!0,forced:!n(818)(function(e){Array.from(e)})},{from:i})},function(e,t,n){"use strict";var r=n(375),i=n(222),o=n(817),a=n(816),s=n(221),l=n(669),c=n(519);e.exports=function(e){var t,n,u,d,f,p,h=i(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,y=void 0!==v,b=c(h),_=0;if(y&&(v=r(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=s(h.length));t>_;_++)p=y?v(h[_],_):h[_],l(n,_,p);else for(f=(d=b.call(h)).next,n=new m;!(u=f.call(d)).done;_++)p=y?o(d,v,[u.value,_],!0):u.value,l(n,_,p);return n.length=_,n}},function(e,t,n){n(312),n(439);var r=n(864);e.exports=r},function(e,t,n){var r=n(1690);e.exports=r},function(e,t,n){n(1691);var r=n(118);e.exports=r.Array.isArray},function(e,t,n){n(70)({target:"Array",stat:!0},{isArray:n(452)})},function(e,t,n){var r=n(34),i=n(455),o=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=i(this.xf["@@transducer/step"](e,!1))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(34),i=n(455),o=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.any||(e=this.xf["@@transducer/step"](e,!1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.any=!0,e=i(this.xf["@@transducer/step"](e,!0))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(34);e.exports=r(function(e,t){return e&&t})},function(e,t,n){n(312),n(439);var r=n(1696);e.exports=r},function(e,t,n){var r=n(283),i=n(134),o=n(347),a=i("iterator");e.exports=function(e){var t=Object(e);return void 0!==t[a]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){var r=n(865);e.exports=function(e,t){return r(e<t.length?t.length-e:0,t)}},function(e,t,n){var r=n(34),i=n(455),o=n(249);e.exports=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=o.result,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?i(n):n},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(34),i=n(249);e.exports=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.acc=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.full&&(e=this.xf["@@transducer/step"](e,this.acc[this.pos])),this.store(t),e},e.prototype.store=function(e){this.acc[this.pos]=e,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},r(function(t,n){return new e(t,n)})}()},function(e,t){e.exports=function(e,t){return function(){var n=this;return e.apply(n,arguments).then(function(e){return t.call(n,e)})}}},function(e,t,n){var r=n(1702),i=n(867),o=n(1703),a="[object Object]";var s=Object.prototype,l=s.hasOwnProperty,c=s.toString;e.exports=function(e){var t,n;return!(!function(e){return!!e&&"object"==typeof e}(e)||c.call(e)!=a||i(e)||!(l.call(e,"constructor")||"function"!=typeof(t=e.constructor)||t instanceof t))&&(r(e,function(e,t){n=t},o),void 0===n||l.call(e,n))}},function(e,t){var n,r=function(e,t,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[n?s:++i];if(!1===t(o[l],l,o))break}return e};e.exports=r},function(e,t,n){var r=n(867),i=n(1704),o=/^\d+$/,a=Object.prototype.hasOwnProperty,s=9007199254740991;function l(e,t){return e="number"==typeof e||o.test(e)?+e:-1,t=null==t?s:t,e>-1&&e%1==0&&e<t}e.exports=function(e){if(null==e)return[];var t,n;n=typeof(t=e),(!t||"object"!=n&&"function"!=n)&&(e=Object(e));var o=e.length;o=o&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=s}(o)&&(i(e)||r(e))&&o||0;for(var c=e.constructor,u=-1,d="function"==typeof c&&c.prototype===e,f=Array(o),p=o>0;++u<o;)f[u]=u+"";for(var h in e)p&&l(h,o)||"constructor"==h&&(d||!a.call(e,h))||f.push(h);return f}},function(e,t){var n="[object Function]",r=/^\[object .+?Constructor\]$/;function i(e){return!!e&&"object"==typeof e}var o,a,s,l=Object.prototype,c=Function.prototype.toString,u=l.hasOwnProperty,d=l.toString,f=RegExp("^"+c.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),p=(o=Array,a="isArray",function(e){return null!=e&&(function(e){return function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)&&d.call(e)==n}(e)?f.test(c.call(e)):i(e)&&r.test(e))}(s=null==o?void 0:o[a])?s:void 0),h=9007199254740991;var m=p||function(e){return i(e)&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}(e.length)&&"[object Array]"==d.call(e)};e.exports=m},function(e,t,n){var r=n(34);e.exports=r(function(e,t){switch(e){case 0:return function(){return t.call(this)};case 1:return function(e){return t.call(this,e)};case 2:return function(e,n){return t.call(this,e,n)};case 3:return function(e,n,r){return t.call(this,e,n,r)};case 4:return function(e,n,r,i){return t.call(this,e,n,r,i)};case 5:return function(e,n,r,i,o){return t.call(this,e,n,r,i,o)};case 6:return function(e,n,r,i,o,a){return t.call(this,e,n,r,i,o,a)};case 7:return function(e,n,r,i,o,a,s){return t.call(this,e,n,r,i,o,a,s)};case 8:return function(e,n,r,i,o,a,s,l){return t.call(this,e,n,r,i,o,a,s,l)};case 9:return function(e,n,r,i,o,a,s,l,c){return t.call(this,e,n,r,i,o,a,s,l,c)};case 10:return function(e,n,r,i,o,a,s,l,c,u){return t.call(this,e,n,r,i,o,a,s,l,c,u)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})},function(e,t,n){var r=n(1707);e.exports=r},function(e,t,n){n(1708);var r=n(118);e.exports=r.setTimeout},function(e,t,n){var r=n(70),i=n(144),o=n(653),a=[].slice,s=function(e){return function(t,n){var r=arguments.length>2,i=r?a.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};r({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(e,t){e.exports=function(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}},function(e,t){e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(286);e.exports=function(e){return!!e&&r("map",e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(93);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){var r=n(870),i=n(1716);e.exports=function(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!r(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(i(a))return t.apply(null,o)(a)}return n.apply(this,arguments)}}},function(e,t){e.exports=function(e){return"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(224),i=n(870),o=n(1718),a=r(function(e){return!!i(e)||!!e&&("object"==typeof e&&(!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=a},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(531),i=n(195)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=i},function(e,t,n){var r=n(195),i=n(1721),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t){e.exports={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){var r=n(531),i=n(530);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!i(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,i(u)||(l-=1),c+=1}return l<=0?o.apply(this,a):r(l,e(t,a,o))}}},function(e,t,n){var r=n(874),i=Object.prototype.toString;e.exports=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return r("callee",e)}}},function(e,t,n){var r=n(875),i=n(1725),o=n(878),a=n(382),s=n(1726),l=n(456),c=n(1728),u=n(1729),d=n(1730),f=o(function(e,t){return typeof t===e}),p=function(e){return u(l(h),Math.max,0,d(e))},h=i([[f("object"),p],[f("function"),s],[c,r(0)]]);e.exports=o(function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var i=p(t),o=a(i+1,e);return 0===n.length?0===i?function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];return o.apply(void 0,[t].concat(e))}:o(t):o.apply(void 0,[t].concat(n))})},function(e,t,n){var r=n(531),i=n(224),o=n(456),a=n(876),s=n(877),l=i(function(e){var t=s(a,0,o(function(e){return e[0].length},e));return r(t,function(){for(var t=0;t<e.length;){if(e[t][0].apply(this,arguments))return e[t][1].apply(this,arguments);t+=1}})});e.exports=l},function(e,t,n){var r=n(224),i=n(1727),o=r(function(e){return null!=e&&i(e.length)?e.length:NaN});e.exports=o},function(e,t){e.exports=function(e){return"[object Number]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(875)(!0);e.exports=r},function(e,t,n){var r=n(678),i=n(872),o=n(382)(4,function(e,t,n,o){return r(e("function"==typeof t?i(t):t),n,o)});e.exports=o},function(e,t,n){var r=n(224),i=n(873),o=r(function(e){for(var t=i(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r});e.exports=o},function(e,t,n){var r=n(122);e.exports=r(function(e,t){return[t,e]})},function(e,t,n){var r=n(122);e.exports=r(function(e,t){return{type:e,payload:t,error:!0}})},function(e,t,n){var r=n(122);e.exports=r(function(e,t){return function(n,r){void 0===n&&(n=e);var i=r.type,o=r.payload,a=r.error;return t[i]?t[i](n,o,a):n}})},function(e,t){e.exports=function(e,t,n){return n&&console.error(t),e}},function(e,t){e.exports=function(e){return function(t,n,r){return r?t:e(t,n)}}},function(e,t,n){var r=n(1737),i=n(719);e.exports=function(e){return i(e).map(r({type:"SIDE_EFFECT"}))}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(130);e.exports=r(n(680))},function(e,t,n){var r=n(1739);e.exports=r},function(e,t,n){n(880),n(439),n(312);var r=n(671);e.exports=r.f("iterator")},function(e,t,n){var r=n(1741);n(1757),n(1758),n(1759),n(1760),n(1761),e.exports=r},function(e,t,n){n(857),n(805),n(670),n(1742),n(1743),n(1744),n(1745),n(880),n(1746),n(1747),n(1748),n(1749),n(1750),n(1751),n(1752),n(1753),n(1754),n(1755),n(1756);var r=n(118);e.exports=r.Symbol},function(e,t,n){n(149)("asyncIterator")},function(e,t){},function(e,t,n){n(149)("hasInstance")},function(e,t,n){n(149)("isConcatSpreadable")},function(e,t,n){n(149)("match")},function(e,t,n){n(149)("matchAll")},function(e,t,n){n(149)("replace")},function(e,t,n){n(149)("search")},function(e,t,n){n(149)("species")},function(e,t,n){n(149)("split")},function(e,t,n){n(149)("toPrimitive")},function(e,t,n){n(149)("toStringTag")},function(e,t,n){n(149)("unscopables")},function(e,t,n){n(346)(Math,"Math",!0)},function(e,t,n){var r=n(144);n(346)(r.JSON,"JSON",!0)},function(e,t,n){n(149)("asyncDispose")},function(e,t,n){n(149)("dispose")},function(e,t,n){n(149)("observable")},function(e,t,n){n(149)("patternMatch")},function(e,t,n){n(149)("replaceAll")},function(e,t,n){var r=n(1763);e.exports=r},function(e,t,n){n(1764);var r=n(118);e.exports=r.Object.getPrototypeOf},function(e,t,n){var r=n(70),i=n(137),o=n(222),a=n(440),s=n(810);r({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){var r=n(1766);e.exports=r},function(e,t,n){n(1767);var r=n(118);e.exports=r.Object.setPrototypeOf},function(e,t,n){n(70)({target:"Object",stat:!0},{setPrototypeOf:n(652)})},function(e,t,n){var r=n(1769);e.exports=r},function(e,t,n){n(1770);var r=n(118).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){n(70)({target:"Object",stat:!0,sham:!n(176)},{create:n(441)})},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(1));var r=s(n(1772)),i=s(n(1774)),o=s(n(0)),a=s(n(881));n(883);function s(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,r.default)(e,t)})},u=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,i.default)(e,t)})},d=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,r),t.props.onEnter&&t.props.onEnter(e)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e)},t.onEntered=function(e,n){var r=t.getClassNames("enter").doneClassName;t.removeClasses(e,n?"appear":"enter"),c(e,r),t.props.onEntered&&t.props.onEntered(e)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"!=typeof n?n[e]:n+"-"+e;return{className:r,activeClassName:"string"!=typeof n?n[e+"Active"]:r+"-active",doneClassName:"string"!=typeof n?n[e+"Done"]:r+"-done"}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&u(e,r),i&&u(e,i),o&&u(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},i.render=function(){var e=l({},this.props);return delete e.classNames,o.default.createElement(a.default,l({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);d.propTypes={};var f=d;t.default=f,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r,i=n(1773),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(1));var r=a(n(0)),i=n(103),o=a(n(884));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],l=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(l,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var l=s;t.default=l,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})},t.getNextChildMapping=function(e,t,n){var s=i(e.children),l=o(t,s);return Object.keys(l).forEach(function(i){var o=l[i];if((0,r.isValidElement)(o)){var c=i in t,u=i in s,d=t[i],f=(0,r.isValidElement)(d)&&!d.props.in;!u||c&&!f?u||!c||f?u&&c&&(0,r.isValidElement)(d)&&(l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:d.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):l[i]=(0,r.cloneElement)(o,{in:!1}):l[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}}),l};var r=n(0);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){e.exports=n(1778)()},function(e,t,n){"use strict";var r=n(1779),i=n(1780),o=n(1781);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(0),i=s(r),o=s(n(1783)),a=s(n(1784));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=function(e,t,n){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(s){if("function"!=typeof s)throw new Error("Expected WrappedComponent to be a React component.");var l=[],c=void 0;function u(){c=e(l.map(function(e){return e.props})),d.canUseDOM?t(c):n&&(c=n(c))}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.peek=function(){return c},t.rewind=function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=c;return c=void 0,l=[],e},t.prototype.shouldComponentUpdate=function(e){return!(0,a.default)(e,this.props)},t.prototype.componentWillMount=function(){l.push(this),u()},t.prototype.componentDidUpdate=function(){u()},t.prototype.componentWillUnmount=function(){var e=l.indexOf(this);l.splice(e,1),u()},t.prototype.render=function(){return i.default.createElement(s,this.props)},t}(r.Component);return d.displayName="SideEffect("+function(e){return e.displayName||e.name||"Component"}(s)+")",d.canUseDOM=o.default.canUseDOM,d}}},function(e,t,n){var r;
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/
!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=(a(r),a(n(1))),o=a(n(1786));a(n(1787));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=1073741823;t.default=function(e,t){var n,a,d="__create-react-context-"+(0,o.default)()+"__",f=function(e){function n(){var t,r,i,o;s(this,n);for(var a=arguments.length,c=Array(a),u=0;u<a;u++)c[u]=arguments[u];return t=r=l(this,e.call.apply(e,[this].concat(c))),r.emitter=(i=r.props.value,o=[],{on:function(e){o.push(e)},off:function(e){o=o.filter(function(t){return t!==e})},get:function(){return i},set:function(e,t){i=e,o.forEach(function(e){return e(i,t)})}}),l(r,t)}return c(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)?i=0:(i="function"==typeof t?t(n,r):u,0!=(i|=0)&&this.emitter.set(e.value,i))}var o,a},n.prototype.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[d]=i.default.object.isRequired,n);var p=function(t){function n(){var e,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r=l(this,t.call.apply(t,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},l(r,e)}return c(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[d]=i.default.object,a),{Provider:f,Consumer:p}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(69))},function(e,t,n){"use strict";var r=n(1788);e.exports=r},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=n(1791)},function(e,t,n){"use strict";
/** @license React v16.8.6
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case c:return e;default:return t}}case g:case m:case o:return t}}}function y(e){return v(e)===f}t.typeOf=v,t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p)},t.isAsyncMode=function(e){return y(e)||v(e)===d},t.isConcurrentMode=y,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return v(e)===p},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===g},t.isMemo=function(e){return v(e)===m},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===l},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===h}},function(e,t,n){"use strict";e.exports=n(1793)},function(e,t,n){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,d=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case f:case a:case l:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case g:case c:return e;default:return t}}case o:return t}}}function k(e){return E(e)===f}t.AsyncMode=d,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||E(e)===d},t.isConcurrentMode=k,t.isContextConsumer=function(e){return E(e)===u},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===v},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===p||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=E},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(252),i=n(1798),o=n(886),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var c,u,d,f,p,h,m=0,g=!1,v=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=u;return c=u=void 0,m=t,f=e.apply(r,n)}function _(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-m>=d}function w(){var e=i();if(_(e))return E(e);p=setTimeout(w,function(e){var n=t-(e-h);return v?l(n,d-(e-m)):n}(e))}function E(e){return p=void 0,y&&c?b(e):(c=u=void 0,f)}function k(){var e=i(),n=_(e);if(c=arguments,u=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(w,t),g?b(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(w,t),b(h)}return void 0===p&&(p=setTimeout(w,t)),f}return t=o(t)||0,r(n)&&(g=!!n.leading,d=(v="maxWait"in n)?s(o(n.maxWait)||0,t):d,y="trailing"in n?!!n.trailing:y),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},k.flush=function(){return void 0===p?f:E(i())},k}},function(e,t,n){var r=n(225);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(457),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){},function(e,t,n){var r=n(34),i=n(455),o=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,t))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(34),i=n(455),o=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=o.init,e.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.found=!0,e=i(this.xf["@@transducer/step"](e,this.idx))),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){var r=n(34),i=n(250);e.exports=r(function(e,t){for(var n in e)if(i(n,e)&&!e[n](t[n]))return!1;return!0})},function(e,t,n){var r=n(1806);e.exports=r},function(e,t,n){var r=n(1807),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){n(1808);var r=n(145);e.exports=r("Array").slice},function(e,t,n){"use strict";var r=n(70),i=n(164),o=n(452),a=n(649),s=n(221),l=n(245),c=n(669),u=n(134),d=n(525),f=n(285),p=d("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),m=u("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,u,d=l(this),f=s(d.length),p=a(e,f),h=a(void 0===t?f:t,f);if(o(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!o(n.prototype)?i(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(d,p,h);for(r=new(void 0===n?Array:n)(v(h-p,0)),u=0;p<h;p++,u++)p in d&&c(r,u,d[p]);return r.length=u,r}})},function(e,t,n){},function(e,t,n){var r=n(1811);e.exports=r},function(e,t,n){n(312);var r=n(1812),i=n(283),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.keys;return e===o||e instanceof Array&&t===o.keys||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(1813);e.exports=r},function(e,t,n){n(443);var r=n(145);e.exports=r("Array").keys},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e={KEY_CANCEL:3,KEY_HELP:6,KEY_BACK_SPACE:8,KEY_TAB:9,KEY_CLEAR:12,KEY_RETURN:13,KEY_ENTER:14,KEY_SHIFT:16,KEY_CONTROL:17,KEY_ALT:18,KEY_PAUSE:19,KEY_CAPS_LOCK:20,KEY_ESCAPE:27,KEY_SPACE:32,KEY_PAGE_UP:33,KEY_PAGE_DOWN:34,KEY_END:35,KEY_HOME:36,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_PRINTSCREEN:44,KEY_INSERT:45,KEY_DELETE:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_SEMICOLON:59,KEY_EQUALS:61,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,KEY_CONTEXT_MENU:93,KEY_NUMPAD0:96,KEY_NUMPAD1:97,KEY_NUMPAD2:98,KEY_NUMPAD3:99,KEY_NUMPAD4:100,KEY_NUMPAD5:101,KEY_NUMPAD6:102,KEY_NUMPAD7:103,KEY_NUMPAD8:104,KEY_NUMPAD9:105,KEY_MULTIPLY:106,KEY_ADD:107,KEY_SEPARATOR:108,KEY_SUBTRACT:109,KEY_DECIMAL:110,KEY_DIVIDE:111,KEY_F1:112,KEY_F2:113,KEY_F3:114,KEY_F4:115,KEY_F5:116,KEY_F6:117,KEY_F7:118,KEY_F8:119,KEY_F9:120,KEY_F10:121,KEY_F11:122,KEY_F12:123,KEY_F13:124,KEY_F14:125,KEY_F15:126,KEY_F16:127,KEY_F17:128,KEY_F18:129,KEY_F19:130,KEY_F20:131,KEY_F21:132,KEY_F22:133,KEY_F23:134,KEY_F24:135,KEY_NUM_LOCK:144,KEY_SCROLL_LOCK:145,KEY_COMMA:188,KEY_PERIOD:190,KEY_SLASH:191,KEY_BACK_QUOTE:192,KEY_OPEN_BRACKET:219,KEY_BACK_SLASH:220,KEY_CLOSE_BRACKET:221,KEY_QUOTE:222,KEY_META:224};function t(){}return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}()},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(0)),i=o(n(681));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){var e,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return n=i=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),i.render=function(){return r.default.createElement("a",i.props,i.props.children)},a(i,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,r.default.Component),t}();t.default=(0,i.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={defaultEasing:function(e){return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(683),i=["mousedown","mousewheel","touchmove","keydown"];t.default={subscribe:function(e){return"undefined"!=typeof document&&i.forEach(function(t){return(0,r.addPassiveEventListener)(document,t,e)})}}},function(e,t,n){"use strict";var r=n(1820),i=n(1821),o=n(1822);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(681));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.default.Component),r(t,[{key:"render",value:function(){return i.default.createElement("input",this.props,this.props.children)}}]),t}();t.default=(0,o.default)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=l(n(0)),a=l(n(890)),s=l(n(534));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default.Component),i(t,[{key:"render",value:function(){var e=this,t=r({},this.props);return t.parentBindings&&delete t.parentBindings,o.default.createElement("div",r({},t,{ref:function(t){e.props.parentBindings.domNode=t}}),this.props.children)}}]),t}();c.propTypes={name:s.default.string,id:s.default.string},t.default=(0,a.default)(c)},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=n(0),c=(n(103),n(458),n(682)),u=n(533),d=n(534),f=n(889),p={to:d.string.isRequired,containerId:d.string,container:d.object,activeClass:d.string,spy:d.bool,smooth:d.oneOfType([d.bool,d.string]),offset:d.number,delay:d.number,isDynamic:d.bool,onClick:d.func,duration:d.oneOfType([d.number,d.func]),absolute:d.bool,onSetActive:d.func,onSetInactive:d.func,ignoreCancelEvents:d.bool,hashSpy:d.bool},h={Scroll:function(e,t){console.warn("Helpers.Scroll is deprecated since v1.7.0");var n=t||u,d=function(t){function u(e){o(this,u);var t=a(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return h.call(t),t.state={active:!1},t}return s(u,l.Component),i(u,[{key:"getScrollSpyContainer",value:function(){var e=this.props.containerId,t=this.props.container;return e?document.getElementById(e):t&&t.nodeType?t:document}},{key:"componentDidMount",value:function(){if(this.props.spy||this.props.hashSpy){var e=this.getScrollSpyContainer();c.isMounted(e)||c.mount(e),this.props.hashSpy&&(f.isMounted()||f.mount(n),f.mapContainer(this.props.to,e)),this.props.spy&&c.addStateHandler(this.stateHandler),c.addSpyHandler(this.spyHandler,e),this.setState({container:e})}}},{key:"componentWillUnmount",value:function(){c.unmount(this.stateHandler,this.spyHandler)}},{key:"render",value:function(){var t="";t=this.state&&this.state.active?((this.props.className||"")+" "+(this.props.activeClass||"active")).trim():this.props.className;var n=r({},this.props);for(var i in p)n.hasOwnProperty(i)&&delete n[i];return n.className=t,n.onClick=this.handleClick,l.createElement(e,n)}}]),u}(),h=function(){var e=this;this.scrollTo=function(t,i){n.scrollTo(t,r({},e.state,i))},this.handleClick=function(t){e.props.onClick&&e.props.onClick(t),t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),e.scrollTo(e.props.to,e.props)},this.stateHandler=function(){n.getActiveLink()!==e.props.to&&(null!==e.state&&e.state.active&&e.props.onSetInactive&&e.props.onSetInactive(),e.setState({active:!1}))},this.spyHandler=function(t){var r=e.getScrollSpyContainer();if(!f.isMounted()||f.isInitialized()){var i=e.props.to,o=null,a=0,s=0,l=0;if(r.getBoundingClientRect)l=r.getBoundingClientRect().top;if(!o||e.props.isDynamic){if(!(o=n.get(i)))return;var u=o.getBoundingClientRect();s=(a=u.top-l+t)+u.height}var d=t-e.props.offset,p=d>=Math.floor(a)&&d<Math.floor(s),h=d<Math.floor(a)||d>=Math.floor(s),m=n.getActiveLink();return h?(i===m&&n.setActiveLink(void 0),e.props.hashSpy&&f.getHash()===i&&f.changeHash(),e.props.spy&&e.state.active&&(e.setState({active:!1}),e.props.onSetInactive&&e.props.onSetInactive()),c.updateStates()):p&&m!==i?(n.setActiveLink(i),e.props.hashSpy&&f.changeHash(i),e.props.spy&&(e.setState({active:!0}),e.props.onSetActive&&e.props.onSetActive(i)),c.updateStates()):void 0}}};return d.propTypes=p,d.defaultProps={offset:0},d},Element:function(e){console.warn("Helpers.Element is deprecated since v1.7.0");var t=function(t){function n(e){o(this,n);var t=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.childBindings={domNode:null},t}return s(n,l.Component),i(n,[{key:"componentDidMount",value:function(){if("undefined"==typeof window)return!1;this.registerElems(this.props.name)}},{key:"componentWillReceiveProps",value:function(e){this.props.name!==e.name&&this.registerElems(e.name)}},{key:"componentWillUnmount",value:function(){if("undefined"==typeof window)return!1;u.unregister(this.props.name)}},{key:"registerElems",value:function(e){u.register(e,this.childBindings.domNode)}},{key:"render",value:function(){return l.createElement(e,r({},this.props,{parentBindings:this.childBindings}))}}]),n}();return t.propTypes={name:d.string,id:d.string},t}};e.exports=h},function(e,t,n){},function(e,t,n){var r=n(195),i=n(456),o=n(893),a=r(function(e,t){return i(o(e),t)});e.exports=a},function(e,t,n){var r=n(195)(function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n});e.exports=r},function(e,t,n){var r=n(224)(n(1830));e.exports=r},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(195)(function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n});e.exports=r},function(e,t,n){var r=n(195)(function(e,t){return e in t});e.exports=r},function(e,t,n){var r=n(679)(function(e,t,n){return e(n)?t(n):n});e.exports=r},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1835),i=n(1836),o=n(897).type("Async"),a=n(897).typeFn(o(),5),s=n(535),l=n(1839),c=n(1849),u=n(1850),d=n(1851),f=n(685),p=n(1852),h=n(287),m=n(1853),g=n(1855),v=n(686),y=function(e){return e.reduce(function(e,t){return e&&v(_,t)},!0)},b=function(e){return _(function(t,n){return n(e)})};function _(e){var t;if(!h(e))throw new TypeError("Async: Function required");var n=b,r=function(){return"Async"+i(e)};function l(t,n,r){if(!h(t)||!h(n))throw new TypeError("Async.fork: Reject and resolve functions required");var i=!1,o=!1,a=h(r)?r:d,s=function(e,t){if(!o)return o=!0,i?d():e(t)},l=e(s.bind(null,t),s.bind(null,n)),c=h(l)?l:d;return u(function(){return a((c(),void(i=!0)))})}function f(e){return function(t){if(!h(t))throw new TypeError("Async."+e+": Function required");return _(function(e,n){return l(e,c(n,t))})}}function p(e){return function(t,n){if(!h(t)||!h(n))throw new TypeError("Async."+e+": Functions required for both arguments");return _(function(e,r){return l(c(e,t),c(r,n))})}}function m(e){return function(t){if(!v(_,t))throw new TypeError("Async."+e+": Async required");return _(function(e,n){var r=d,i=d;return r=l(function(){i=t.fork(e,n)},n),u(function(){return i(r())})})}}function g(e){return function(t){if(!h(t))throw new TypeError("Async."+e+": Async returning function required");return _(function(n,r){var i=d,o=d;return i=l(n,function(i){var a=t(i);if(!v(_,a))throw new TypeError("Async."+e+": Function must return another Async");o=a.fork(n,r)}),u(function(){return o(i())})})}}return(t={fork:l,toPromise:function(){return new Promise(function(e,t){l(t,e)})},inspect:r,toString:r,type:o,swap:function(e,t){if(!h(e)||!h(t))throw new TypeError("Async.swap: Functions required for both arguments");return _(function(n,r){return l(c(r,e),c(n,t))})},race:function(e){if(!v(_,e))throw new TypeError("Async.race: Async required");return _(function(t,n){var r=u(function(e,r){return e?n(r):t(r)}),i=r.bind(null,!0),o=r.bind(null,!1),a=l(o,i),s=e.fork(o,i);return function(){a(),s()}})},coalesce:function(e,t){if(!h(e)||!h(t))throw new TypeError("Async.coalesce: Functions required for both arguments");return _(function(n,r){return l(c(r,e),c(r,t))})},ap:function(e){if(!v(_,e))throw new TypeError("Async.ap: Async required");return _(function(t,n){var r=null,i=null,o=!1,a=!1,s=!1,d=u(t);function f(){!s&&o&&a&&c(n,r)(i)}var p=l(d,function(e){if(!h(e))throw new TypeError("Async.ap: Wrapped value must be a function");o=!0,r=e,f()}),m=e.fork(d,function(e){a=!0,i=e,f()});return function(){p(),m(),s=!0}})},of:n,alt:m("alt"),bimap:p("bimap"),map:f("map"),chain:g("chain"),bichain:function(e,t){var n="Async.bichain: Both arguments must be Async returning functions";if(!h(e)||!h(t))throw new TypeError(n);return _(function(r,i){var o=d,a=d;function s(e){return function(t){var o=e(t);if(!v(_,o))throw new TypeError(n);a=o.fork(r,i)}}return o=l(s(e),s(t)),u(function(){return a(o())})})}})[s.of]=n,t[s.alt]=m(s.alt),t[s.bimap]=p(s.bimap),t[s.map]=f(s.map),t[s.chain]=g(s.chain),t["@@type"]=a,t.constructor=_,t}_.of=b,_.type=o,_[s.of]=b,_["@@type"]=a,_.Rejected=function(e){return _(function(t){return t(e)})},_.Resolved=b,_.fromPromise=function(e){if(!h(e))throw new TypeError("Async.fromPromise: Promise returning function required");return function(){var t=arguments;return _(function(n,r){var i=e.apply(null,t);if(!g(i))throw new TypeError("Async.fromPromise: Promise returning function required");i.then(r,n)})}},_.fromNode=function(e,t){if(!h(e))throw new TypeError("Async.fromNode: CPS function required");return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];return _(function(r,i){e.apply(t,n.concat(function(e,t){return e?r(e):i(t)}))})}},_.all=function(e){if(!p(e)||!y(e))throw new TypeError("Async.all: Foldable structure of Asyncs required");return f(e)?l.sequence(_.of,e):e.sequence(_.of)},_.rejectAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.rejectAfter: Positive Integer required for first argument");return _(function(n){var r=setTimeout(function(){n(t)},e);return function(){clearTimeout(r)}})},_.resolveAfter=function(e,t){if(!(m(e)&&e>=0))throw new TypeError("Async.resolveAfter: Positive Integer required for first argument");return _(function(n,r){var i=setTimeout(function(){r(t)},e);return function(){clearTimeout(i)}})},_["@@implements"]=r(["alt","ap","bimap","chain","map","of"]),e.exports=_},function(e,t){e.exports=function(e){return function(t){return-1!==e.indexOf(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(685),i=n(287),o=n(895),a=n(896),s=n(1837),l=n(1838);function c(e){return e&&i(e.inspect)?" "+e.inspect():i(e)?" Function":r(e)?" ["+((t=e).length?t.map(c).reduce(function(e,t){return e+","+t}):t)+" ]":o(e)?" { "+Object.keys(e).reduce(function(t,n){return t.concat([n+":"+c(e[n])])},[]).join(", ")+" }":a(e)?' "'+e+'"':s(e)||l(e)?" "+e.toString():" "+e;var t}e.exports=c},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"symbol"==typeof e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2018 original and current authors */
function(e){return"[object Date]"===Object.prototype.toString.apply(e)&&!isNaN(e.valueOf())}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(898),i=n(685),o=n(1841),a=n(287),s=n(686),l=n(899),c=n(1846),u=function(e){return e},d=function(e){return function(t){return e.concat(t)}};function f(e,t){return function(n,o){var a=t(o);if(!r(n)&&!i(n)||!s(n,a))throw new TypeError("Array."+e+": Must wrap Applys of the same type");return i(a)?m(n,h(function(e){return d([e])},a)):a.map(function(e){return d([e])}).ap(n)}}var p=function(e){return e.reduce(function(e,t){return e&&a(t)},!0)},h=function(e,t){return t.map(function(t){return e(t)})};function m(e,t){if(!t.length||!p(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(h(n,e))},[])}e.exports={ap:m,chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},fold:function(e){if(o(e))throw new TypeError("Array.fold: Non-empty Array of Semigroups required");var t=e[0];if(!l(t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.reduce(function(e,t){if(!s(e,t))throw new TypeError("Array.fold: Must contain Semigroups of the same type");return e.concat(t)})},foldMap:function(e,t){if(o(t))throw new TypeError("Array.foldMap: Non-empty Array required");var n=e(t[0]);if(!l(n))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return 1===t.length?n:t.slice(1).reduce(function(t,n){var r=e(n);if(!s(t,r)||!l(r))throw new TypeError("Array.foldMap: Provided function must return Semigroups of the same type");return t.concat(r)},n)},map:h,sequence:function(e,t){var n=c(e);return t.reduceRight(f("sequence",u),n([]))},set:function(e,t,n){var r=n.slice();return r[e]=t,r},traverse:function(e,t,n){var r=c(e);return n.reduceRight(f("traverse",t),r([]))},unset:function(e,t){return t.slice(0,e).concat(t.slice(e+1))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(354);e.exports=function(e){return!!e&&r("map",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(895),i=n(1842),o=n(1843),a=n(535);e.exports=function(e){if(i(e)){var t=e.constructor[a.empty]||e.constructor.empty||e.empty;return o(e,t())}return r(e)?!Object.keys(e).length:!e||void 0===e.length||!e.length}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(354),i=n(899);e.exports=function(e){return i(e)&&(r("empty",e)||r("empty",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(686),i=n(1845),o=n(354),a=n(900),s=n(535),l=function(e,t){return e.valueOf()===t.valueOf()},c={Array:function(e,t){return e.length===t.length&&u(e,t)},Date:function(e,t){return i(e.valueOf(),t.valueOf())},Error:function(e,t){return e.name===t.name&&e.message===t.message},Object:function(e,t){return Object.keys(e).length===Object.keys(t).length&&u(e,t)},RegExp:function(e,t){return e.source===t.source&&e.ignoreCase===t.ignoreCase&&e.global===t.global&&e.multiline===t.multiline&&e.unicode===t.unicode}};function u(e,t){for(var n in e)if(!d(e[n],t[n]))return!1;return!0}function d(e,t){return!!i(e,t)||!!r(e,t)&&(o("equals",e)?(t[s.equals]||t.equals).call(t,e):(c[a(e)]||l)(e,t))}e.exports=d},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(287);function i(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(i,t);return r(s)?e(s):s}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(1847),i=n(1848);e.exports=function(e){return function(t){return r(e)?e.of(t):i(Array,e)?[t]:e(t)}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(354),i=n(898);e.exports=function(e){return i(e)&&(r("of",e)||r("of",e.constructor))}},function(e,t,n){
/** @license ISC License (c) copyright 2018 original and current authors */
var r=n(287);e.exports=function(e,t){return r(t)&&(e===t||e.name===t.name)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(354);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1854);e.exports=function(e){return r(e)&&isFinite(e)&&Math.floor(e)===e}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"number"==typeof e&&!isNaN(e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(287);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t){var n=9007199254740991,r="[object Arguments]",i="[object Function]",o="[object GeneratorFunction]",a=/^(?:0|[1-9]\d*)$/;var s,l,c=Object.prototype,u=c.hasOwnProperty,d=c.toString,f=c.propertyIsEnumerable,p=(s=Object.keys,l=Object,function(e){return s(l(e))}),h=Math.max,m=!f.call({valueOf:1},"valueOf");function g(e,t){var n=w(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&E(e)}(e)&&u.call(e,"callee")&&(!f.call(e,"callee")||d.call(e)==r)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],i=n.length,o=!!i;for(var a in e)!t&&!u.call(e,a)||o&&("length"==a||y(a,i))||n.push(a);return n}function v(e,t,n){var r=e[t];u.call(e,t)&&_(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function y(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||a.test(e))&&e>-1&&e%1==0&&e<t}function b(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||c)}function _(e,t){return e===t||e!=e&&t!=t}var w=Array.isArray;function E(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=k(e)?d.call(e):"";return t==i||t==o}(e)}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var x=function(e){return t=function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!k(n))return!1;var r=typeof t;return!!("number"==r?E(n)&&y(t,n.length):"string"==r&&t in n)&&_(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t},n=h(void 0===n?t.length-1:n,0),function(){for(var e=arguments,r=-1,i=h(e.length-n,0),o=Array(i);++r<i;)o[r]=e[n+r];r=-1;for(var a=Array(n+1);++r<n;)a[r]=e[r];return a[n]=o,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(t,this,a)};var t,n}(function(e,t){if(m||b(t)||E(t))!function(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;v(n,a,void 0===s?e[a]:s)}}(t,function(e){return E(e)?g(e):function(e){if(!b(e))return p(e);var t=[];for(var n in Object(e))u.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(t),e);else for(var n in t)u.call(t,n)&&v(e,n,t[n])});e.exports=x},function(e,t,n){"use strict";var r=n(196),i=n(901),o=n(1858),a=n(907);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(n(904));l.Axios=o,l.create=function(e){return s(a(l.defaults,e))},l.Cancel=n(908),l.CancelToken=n(1871),l.isCancel=n(903),l.all=function(e){return Promise.all(e)},l.spread=n(1872),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";var r=n(196),i=n(902),o=n(1859),a=n(1860),s=n(907);function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){l.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}}),r.forEach(["post","put","patch"],function(e){l.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}}),e.exports=l},function(e,t,n){"use strict";var r=n(196);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=i},function(e,t,n){"use strict";var r=n(196),i=n(1861),o=n(903),a=n(904);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t},function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var r=n(196);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";var r=n(196);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(906);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1866),i=n(1867);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(196),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}}),a):a}},function(e,t,n){"use strict";var r=n(196);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(196);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(908);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new r(e),t(n.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i(function(t){e=t}),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){var r=n(1874);e.exports=r},function(e,t,n){var r=n(1875),i=Array.prototype;e.exports=function(e){var t=e.lastIndexOf;return e===i||e instanceof Array&&t===i.lastIndexOf?r:t}},function(e,t,n){n(1876);var r=n(145);e.exports=r("Array").lastIndexOf},function(e,t,n){var r=n(70),i=n(1877);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){"use strict";var r=n(245),i=n(514),o=n(221),a=n(450),s=n(285),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=a("lastIndexOf"),f=s("indexOf",{ACCESSORS:!0,1:0}),p=u||!d||!f;e.exports=p?function(e){if(u)return c.apply(this,arguments)||0;var t=r(this),n=o(t.length),a=n-1;for(arguments.length>1&&(a=l(a,i(arguments[1]))),a<0&&(a=n+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return!!e&&e.toString&&"[object Object]"===e.toString()}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2016 original and current authors */
function(e){return"string"==typeof e}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(1881),i=n(688),o=n(288),a=function(e){return e},s=function(e){return function(t){return t.concat(e)}};function l(e,t){return function(n,i){var o=t(i);if(!r(n)||!r(o))throw new TypeError("Array."+e+": Must wrap Applicatives");return o.map(function(e){return s([e])}).ap(n)}}var c=function(e){return e.reduce(function(e,t){return e&&o(t)},!0)},u=function(e,t){return t.map(function(t){return e(t)})};e.exports={ap:function(e,t){if(!t.length||!c(t))throw new TypeError("Array.ap: Second Array must all be functions");return t.reduce(function(t,n){return t.concat(u(n,e))},[])},chain:function(e,t){return t.reduce(function(t,n){var r=e(n);if(!i(r))throw new TypeError("Array.chain: Function must return an Array");return t.concat(r)},[])},map:u,sequence:function(e,t){return t.reduce(l("sequence",a),e([]))},traverse:function(e,t,n){return n.reduce(l("traverse",t),e([]))}}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(536),i=n(1882);e.exports=function(e){return i(e)&&r("of",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(536),i=n(1883);e.exports=function(e){return i(e)&&r("ap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(536);e.exports=function(e){return!!e&&r("map",e)}},function(e,t){e.exports=
/** @license ISC License (c) copyright 2017 original and current authors */
function(e){var t,n;return function(){return t||(t=!0,n=e.apply(null,arguments)),n}}},function(e,t){
/** @license ISC License (c) copyright 2017 original and current authors */
e.exports=Function.prototype},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(536);e.exports=function(e){return!!e&&r("reduce",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(288);e.exports=function(e){return!!e&&r(e.then)&&r(e.catch)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(288);function i(e,t){return r(e)?e.length>1?e.bind(null,t):e.call(null,t):e}e.exports=function e(t){return function(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];var a=n.length?n:[void 0];if(a.length<t.length)return e(Function.bind.apply(t,[null].concat(a)));var s=a.length===t.length?t.apply(null,a):a.reduce(i,t);return r(s)?e(s):s}}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(288);e.exports=function(e){return e&&r(e.type)?e.type():{}.toString.call(e).slice(8,-1)}},function(e,t,n){var r=n(538),i=n(355),o=n(356),a=n(1891),s=o(function(e,t){return 1===e?i(t):r(e,a(e,[],t))});e.exports=s},function(e,t,n){var r=n(538),i=n(537);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!i(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,i(u)||(l-=1),c+=1}return l<=0?o.apply(this,a):r(l,e(t,a,o))}}},function(e,t,n){var r=n(356)(function(e,t){return t>e?t:e});e.exports=r},function(e,t,n){var r=n(1894);e.exports=r},function(e,t,n){var r=n(1895);e.exports=r},function(e,t,n){n(1896);var r=n(118);e.exports=r.URLSearchParams},function(e,t,n){"use strict";n(443);var r=n(70),i=n(282),o=n(1897),a=n(377),s=n(814),l=n(346),c=n(808),u=n(376),d=n(815),f=n(193),p=n(375),h=n(283),m=n(205),g=n(164),v=n(441),y=n(343),b=n(864),_=n(519),w=n(134),E=i("fetch"),k=i("Headers"),x=w("iterator"),S=u.set,T=u.getterFor("URLSearchParams"),C=u.getterFor("URLSearchParamsIterator"),O=/\+/g,A=Array(4),N=function(e){return A[e-1]||(A[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},I=function(e){try{return decodeURIComponent(e)}catch(t){return e}},M=function(e){var t=e.replace(O," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(N(n--),I);return t}},j=/[!'()~]|%20/g,L={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},P=function(e){return L[e]},D=function(e){return encodeURIComponent(e).replace(j,P)},R=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:M(r.shift()),value:M(r.join("="))}))},F=function(e){this.entries.length=0,R(this.entries,e)},B=function(e,t){if(e<t)throw TypeError("Not enough arguments")},U=c(function(e,t){S(this,{type:"URLSearchParamsIterator",iterator:b(T(e).entries),kind:t})},"Iterator",function(){var e=C(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),q=function(){d(this,q,"URLSearchParams");var e,t,n,r,i,o,a,s,l,c=arguments.length>0?arguments[0]:void 0,u=[];if(S(this,{type:"URLSearchParams",entries:u,updateURL:function(){},updateSearchParams:F}),void 0!==c)if(g(c))if("function"==typeof(e=_(c)))for(n=(t=e.call(c)).next;!(r=n.call(t)).done;){if((a=(o=(i=b(m(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");u.push({key:a.value+"",value:s.value+""})}else for(l in c)f(c,l)&&u.push({key:l,value:c[l]+""});else R(u,"string"==typeof c?"?"===c.charAt(0)?c.slice(1):c:c+"")},z=q.prototype;s(z,{append:function(e,t){B(arguments.length,2);var n=T(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);for(var t=T(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){B(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){B(arguments.length,1);for(var t=T(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){B(arguments.length,1);for(var t=T(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){B(arguments.length,1);for(var n,r=T(this),i=r.entries,o=!1,a=e+"",s=t+"",l=0;l<i.length;l++)(n=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=T(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=T(this).entries,r=p(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new U(this,"keys")},values:function(){return new U(this,"values")},entries:function(){return new U(this,"entries")}},{enumerable:!0}),a(z,x,z.entries),a(z,"toString",function(){for(var e,t=T(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(D(e.key)+"="+D(e.value));return n.join("&")},{enumerable:!0}),l(q,"URLSearchParams"),r({global:!0,forced:!o},{URLSearchParams:q}),o||"function"!=typeof E||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],g(t)&&(n=t.body,"URLSearchParams"===h(n)&&((r=t.headers?new k(t.headers):new k).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=v(t,{body:y(0,String(n)),headers:y(0,r)}))),i.push(t)),E.apply(this,i)}}),e.exports={URLSearchParams:q,getState:T}},function(e,t,n){var r=n(137),i=n(134),o=n(281),a=i("iterator");e.exports=!r(function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach(function(e,r){t.delete("b"),n+=r+e}),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})},function(e,t,n){"use strict";var r=n(916),i=n(917),o={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return a.call(e)},skipNulls:!1,strictNullHandling:!1},l=function e(t,n,i,o,a,l,c,u,d,f,p,h){var m=t;if("function"==typeof c)m=c(n,m);else if(m instanceof Date)m=f(m);else if(null===m){if(o)return l&&!h?l(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||r.isBuffer(m))return l?[p(h?n:l(n,s.encoder))+"="+p(l(m,s.encoder))]:[p(n)+"="+p(String(m))];var g,v=[];if(void 0===m)return v;if(Array.isArray(c))g=c;else{var y=Object.keys(m);g=u?y.sort(u):y}for(var b=0;b<g.length;++b){var _=g[b];a&&null===m[_]||(v=Array.isArray(m)?v.concat(e(m[_],i(n,_),i,o,a,l,c,u,d,f,p,h)):v.concat(e(m[_],n+(d?"."+_:"["+_+"]"),i,o,a,l,c,u,d,f,p,h)))}return v};e.exports=function(e,t){var n=e,a=t?r.assign({},t):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var c=void 0===a.delimiter?s.delimiter:a.delimiter,u="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,d="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,f="boolean"==typeof a.encode?a.encode:s.encode,p="function"==typeof a.encoder?a.encoder:s.encoder,h="function"==typeof a.sort?a.sort:null,m=void 0!==a.allowDots&&a.allowDots,g="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,v="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,b,_=i.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(y=b=a.filter);var w,E=[];if("object"!=typeof n||null===n)return"";w=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var k=o[w];y||(y=Object.keys(n)),h&&y.sort(h);for(var x=0;x<y.length;++x){var S=y[x];d&&null===n[S]||(E=E.concat(l(n[S],S,k,u,d,f?p:null,b,h,m,g,_,v)))}var T=E.join(c),C=!0===a.addQueryPrefix?"?":"";return T.length>0?C+T:""}},function(e,t,n){"use strict";var r=n(916),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,l=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;null!==(a=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(a[1])}return a&&l.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a)o=(o=[]).concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[])[l]=r:o[s]=r}r=o}return r}(l,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,a),l=0;l<s.length;++l){var c,u,d=s[l],f=d.indexOf("]="),p=-1===f?d.indexOf("="):f+1;-1===p?(c=t.decoder(d,o.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(d.slice(0,p),o.decoder),u=t.decoder(d.slice(p+1),o.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(u):n[c]=u}return n}(e,n):e,l=n.plainObjects?Object.create(null):{},c=Object.keys(s),u=0;u<c.length;++u){var d=c[u],f=a(d,s[d],n);l=r.merge(l,f,n)}return r.compact(l)}},function(e,t,n){var r=n(1901);e.exports=r},function(e,t,n){n(1902);var r=n(118);e.exports=r.Date.now},function(e,t,n){n(70)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){
/*!
 * Copyright (c) 2015-present, Okta, Inc. and/or its affiliates. All rights reserved.
 * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
 * 
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * 
 * See the License for the specific language governing permissions and limitations under the License.
 * 
 */
"undefined"!=typeof self&&self,e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t){var n=e.exports;n.stringToBase64Url=function(e){var t=btoa(e);return n.base64ToBase64Url(t)},n.base64ToBase64Url=function(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},n.base64UrlToBase64=function(e){return e.replace(/-/g,"+").replace(/_/g,"/")},n.base64UrlToString=function(e){var t=n.base64UrlToBase64(e);switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Not a valid Base64Url"}var r=atob(t);try{return decodeURIComponent(escape(r))}catch(e){return r}},n.stringToBuffer=function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t},n.base64UrlDecode=function(e){return atob(n.base64UrlToBase64(e))},n.bind=function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return r=n.concat(r),e.apply(t,r)}},n.isAbsoluteUrl=function(e){return/^(?:[a-z]+:)?\/\//i.test(e)},n.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},n.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},n.isNumber=function(e){return"[object Number]"===Object.prototype.toString.call(e)},n.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},n.isoToUTCString=function(e){var t=e.match(/\d+/g),n=Date.UTC(t[0],t[1]-1,t[2],t[3],t[4],t[5]);return new Date(n).toUTCString()},n.toQueryParams=function(e){var t=[];if(null!==e)for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&null!==e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.length?"?"+t.join("&"):""},n.genRandomString=function(e){for(var t="abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n="",r=0,i=t.length;r<e;++r)n+=t[Math.floor(Math.random()*i)];return n},n.extend=function(){var e=arguments[0];return[].slice.call(arguments,1).forEach(function(t){for(var n in t)t.hasOwnProperty(n)&&void 0!==t[n]&&(e[n]=t[n])}),e},n.removeNils=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t[n]=r)}return t},n.clone=function(e){if(e){var t=JSON.stringify(e);if(t)return JSON.parse(t)}return e},n.omit=function(e){var t=Array.prototype.slice.call(arguments,1),r={};for(var i in e)e.hasOwnProperty(i)&&-1==t.indexOf(i)&&(r[i]=e[i]);return n.clone(r)},n.find=function(e,t){for(var n=e.length;n--;){var r=e[n],i=!0;for(var o in t)if(t.hasOwnProperty(o)&&r[o]!==t[o]){i=!1;break}if(i)return r}},n.getLink=function(e,t,r){if(e&&e._links){var i=n.clone(e._links[t]);return i&&i.name&&r?i.name===r?i:void 0:i}},n.getNativeConsole=function(){return"undefined"!=typeof window?window.console:"undefined"!=typeof console?console:void 0},n.getConsole=function(){var e=n.getNativeConsole();return e&&e.log?e:{log:function(){}}},n.warn=function(e){n.getConsole().log("[okta-auth-sdk] WARN: "+e)},n.deprecate=function(e){n.getConsole().log("[okta-auth-sdk] DEPRECATION: "+e)},n.deprecateWrap=function(e,t){return function(){return n.deprecate(e),t.apply(null,arguments)}},n.removeTrailingSlash=function(e){if(e){var t=e.replace(/^\s+|\s+$/gm,"");return t=t.replace(/\/+$/,"")}},n.isIE11OrLess=function(){return!!document.documentMode&&document.documentMode<=11},n.isFunction=function(e){return!!e&&"[object Function]"==={}.toString.call(e)}},function(e,t){function n(e,t){this.name="AuthSdkError",this.message=e,this.errorCode="INTERNAL",this.errorSummary=e,this.errorLink="INTERNAL",this.errorId="INTERNAL",this.errorCauses=[],t&&(this.xhr=t)}n.prototype=new Error,e.exports=n},function(e,t){e.exports={STATE_TOKEN_KEY_NAME:"oktaStateToken",DEFAULT_POLLING_DELAY:500,DEFAULT_MAX_CLOCK_SKEW:300,DEFAULT_CACHE_DURATION:86400,REDIRECT_OAUTH_PARAMS_COOKIE_NAME:"okta-oauth-redirect-params",REDIRECT_STATE_COOKIE_NAME:"okta-oauth-state",REDIRECT_NONCE_COOKIE_NAME:"okta-oauth-nonce",TOKEN_STORAGE_NAME:"okta-token-storage",CACHE_STORAGE_NAME:"okta-cache-storage",PKCE_STORAGE_NAME:"okta-pkce-storage"}},function(e,t,n){function r(e,t){var n=(t=t||{}).url,r=t.method,l=t.args,c=t.saveAuthnState,u=t.accessToken,d=!1!==t.withCredentials,f=e.options.storageUtil,p=f.storage,h=f.getHttpCache();if(t.cacheResponse){var m=h.getStorage(),g=m[n];if(g&&Date.now()/1e3<g.expiresAt)return o.resolve(g.response)}var v={Accept:"application/json","Content-Type":"application/json","X-Okta-User-Agent-Extended":e.userAgent};i.extend(v,e.options.headers,t.headers),u&&i.isString(u)&&(v.Authorization="Bearer "+u);var y,b,_={headers:v,data:l||void 0,withCredentials:d};return new o(e.options.httpRequestClient(r,n,_)).then(function(e){return(b=e.responseText)&&i.isString(b)&&(b=JSON.parse(b)),c&&(b.stateToken||p.delete(s.STATE_TOKEN_KEY_NAME)),b&&b.stateToken&&b.expiresAt&&p.set(s.STATE_TOKEN_KEY_NAME,b.stateToken,b.expiresAt),b&&t.cacheResponse&&h.updateStorage(n,{expiresAt:Math.floor(Date.now()/1e3)+s.DEFAULT_CACHE_DURATION,response:b}),b}).fail(function(t){var n=t.responseText||{};if(i.isString(n))try{n=JSON.parse(n)}catch(e){n={errorSummary:"Unknown error"}}throw t.status>=500&&(n.errorSummary="Unknown error"),e.options.transformErrorXHR&&(t=e.options.transformErrorXHR(i.clone(t))),"E0000011"===(y=new a(n,t)).errorCode&&p.delete(s.STATE_TOKEN_KEY_NAME),y})}var i=n(0),o=n(5),a=n(22),s=n(2);e.exports={get:function(e,t,n){var o={url:t=i.isAbsoluteUrl(t)?t:e.options.url+t,method:"GET"};return i.extend(o,n),r(e,o)},post:function(e,t,n,o){var a={url:t=i.isAbsoluteUrl(t)?t:e.options.url+t,method:"POST",args:n,saveAuthnState:!0};return i.extend(a,o),r(e,a)},httpRequest:r}},function(e,t,n){var r=n(14),i=n(6),o=n(2),a={browserHasLocalStorage:function(){try{var e=a.getLocalStorage();return a.testStorage(e)}catch(e){return!1}},browserHasSessionStorage:function(){try{var e=a.getSessionStorage();return a.testStorage(e)}catch(e){return!1}},getPKCEStorage:function(){return a.browserHasLocalStorage()?i(a.getLocalStorage(),o.PKCE_STORAGE_NAME):a.browserHasSessionStorage()?i(a.getSessionStorage(),o.PKCE_STORAGE_NAME):i(a.getCookieStorage(),o.PKCE_STORAGE_NAME)},getHttpCache:function(){return a.browserHasLocalStorage()?i(a.getLocalStorage(),o.CACHE_STORAGE_NAME):a.browserHasSessionStorage()?i(a.getSessionStorage(),o.CACHE_STORAGE_NAME):i(a.getCookieStorage(),o.CACHE_STORAGE_NAME)},getLocalStorage:function(){return localStorage},getSessionStorage:function(){return sessionStorage},getCookieStorage:function(e){var t=(e=e||{}).secure,n=e.sameSite||"lax";return{getItem:a.storage.get,setItem:function(e,r){a.storage.set(e,r,"2200-01-01T00:00:00.000Z",{secure:t,sameSite:n})}}},getInMemoryStorage:function(){var e={};return{getItem:function(t){return e[t]},setItem:function(t,n){e[t]=n}}},testStorage:function(e){var t="okta-test-storage";try{return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}}};a.storage={set:function(e,t,n,i){var o={path:(i=i||{}).path||"/",secure:i.secure,sameSite:i.sameSite};return Date.parse(n)&&(o.expires=new Date(n)),r.set(e,t,o),a.storage.get(e)},get:function(e){return r.get(e)},delete:function(e){return r.remove(e,{path:"/"})}},e.exports=a},function(e,t,n){(function(t,n){
/*!
 *
 * Copyright 2009-2012 Kris Kowal under the terms of the MIT
 * license found at http://github.com/kriskowal/q/raw/master/LICENSE
 *
 * With parts by Tyler Close
 * Copyright 2007-2009 Tyler Close under the terms of the MIT X license found
 * at http://www.opensource.org/licenses/mit-license.html
 * Forked at ref_send.js version: 2009-05-11
 *
 * With parts by Mark Miller
 * Copyright (C) 2011 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
!function(t){"use strict";"function"==typeof bootstrap?bootstrap("promise",t):e.exports=t()}(function(){"use strict";function e(e){return function(){return j.apply(e,arguments)}}function r(e,t){if(C&&t.stack&&"object"==typeof e&&null!==e&&e.stack&&-1===e.stack.indexOf(z)){for(var n=[],r=t;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(e.stack);var o=n.join("\n"+z+"\n");e.stack=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var o=t[r];a(o)||i(o)||!o||n.push(o)}return n.join("\n")}(o)}}function i(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function o(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function a(e){var t=o(e);if(!t)return!1;var n=t[0],r=t[1];return n===O&&r>=N&&r<=V}function s(){if(C)try{throw new Error}catch(r){var e=r.stack.split("\n"),t=e[0].indexOf("@")>0?e[1]:e[2],n=o(t);if(!n)return;return O=n[0],n[1]}}function l(e){return e instanceof f?e:g(e)?function(e){var t=c();return l.nextTick(function(){try{e.then(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}}),t.promise}(e):w(e)}function c(){function e(e){t=e,o.source=e,P(n,function(t,n){l.nextTick(function(){e.promiseDispatch.apply(e,n)})},void 0),n=void 0,r=void 0}var t,n=[],r=[],i=F(c.prototype),o=F(f.prototype);if(o.promiseDispatch=function(e,i,o){var a=L(arguments);n?(n.push(a),"when"===i&&o[1]&&r.push(o[1])):l.nextTick(function(){t.promiseDispatch.apply(t,a)})},o.valueOf=function(){if(n)return o;var e=h(t);return m(e)&&(t=e),e},o.inspect=function(){return t?t.inspect():{state:"pending"}},l.longStackSupport&&C)try{throw new Error}catch(e){o.stack=e.stack.substring(e.stack.indexOf("\n")+1)}return i.promise=o,i.resolve=function(n){t||e(l(n))},i.fulfill=function(n){t||e(w(n))},i.reject=function(n){t||e(_(n))},i.notify=function(e){t||P(r,function(t,n){l.nextTick(function(){n(e)})},void 0)},i}function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function.");var t=c();try{e(t.resolve,t.reject,t.notify)}catch(e){t.reject(e)}return t.promise}function d(e){return u(function(t,n){for(var r=0,i=e.length;r<i;r++)l(e[r]).then(t,n)})}function f(e,t,n){void 0===t&&(t=function(e){return _(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=F(f.prototype);if(r.promiseDispatch=function(n,i,o){var a;try{a=e[i]?e[i].apply(r,o):t.call(r,i,o)}catch(e){a=_(e)}n&&n(a)},r.inspect=n,n){var i=n();"rejected"===i.state&&(r.exception=i.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function p(e,t,n,r){return l(e).then(t,n,r)}function h(e){if(m(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function m(e){return e instanceof f}function g(e){return function(e){return e===Object(e)}(e)&&"function"==typeof e.then}function v(){H.length=0,W.length=0,Y||(Y=!0)}function y(e,n){Y&&("object"==typeof t&&"function"==typeof t.emit&&l.nextTick.runAfter(function(){-1!==D(W,e)&&(t.emit("unhandledRejection",n,e),$.push(e))}),W.push(e),n&&void 0!==n.stack?H.push(n.stack):H.push("(no stack) "+n))}function b(e){if(Y){var n=D(W,e);-1!==n&&("object"==typeof t&&"function"==typeof t.emit&&l.nextTick.runAfter(function(){var r=D($,e);-1!==r&&(t.emit("rejectionHandled",H[n],e),$.splice(r,1))}),W.splice(n,1),H.splice(n,1))}}function _(e){var t=f({when:function(t){return t&&b(this),t?t(e):this}},function(){return this},function(){return{state:"rejected",reason:e}});return y(t,e),t}function w(e){return f({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null==t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return U(e)}},void 0,function(){return{state:"fulfilled",value:e}})}function E(e,t,n){return l(e).spread(t,n)}function k(e,t,n){return l(e).dispatch(t,n)}function x(e){return p(e,function(e){var t=0,n=c();return P(e,function(r,i,o){var a;m(i)&&"fulfilled"===(a=i.inspect()).state?e[o]=a.value:(++t,p(i,function(r){e[o]=r,0==--t&&n.resolve(e)},n.reject,function(e){n.notify({index:o,value:e})}))},void 0),0===t&&n.resolve(e),n.promise})}function S(e){if(0===e.length)return l.resolve();var t=l.defer(),n=0;return P(e,function(r,i,o){var a=e[o];n++,p(a,function(e){t.resolve(e)},function(){0==--n&&t.reject(new Error("Can't get fulfillment value from any promise, all promises were rejected."))},function(e){t.notify({index:o,value:e})})},void 0),t.promise}function T(e){return p(e,function(e){return e=R(e,l),p(x(R(e,function(e){return p(e,I,I)})),function(){return e})})}var C=!1;try{throw new Error}catch(e){C=!!e.stack}var O,A,N=s(),I=function(){},M=function(){function e(){for(var e,t;i.next;)i=i.next,e=i.task,i.task=void 0,(t=i.domain)&&(i.domain=void 0,t.enter()),r(e,t);for(;c.length;)r(e=c.pop());a=!1}function r(t,n){try{t()}catch(t){if(l)throw n&&n.exit(),setTimeout(e,0),n&&n.enter(),t;setTimeout(function(){throw t},0)}n&&n.exit()}var i={task:void 0,next:null},o=i,a=!1,s=void 0,l=!1,c=[];if(M=function(e){o=o.next={task:e,domain:l&&t.domain,next:null},a||(a=!0,s())},"object"==typeof t&&"[object process]"===t.toString()&&t.nextTick)l=!0,s=function(){t.nextTick(e)};else if("function"==typeof n)s="undefined"!=typeof window?n.bind(window,e):function(){n(e)};else if("undefined"!=typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){s=d,u.port1.onmessage=e,e()};var d=function(){u.port2.postMessage(0)};s=function(){setTimeout(e,0),d()}}else s=function(){setTimeout(e,0)};return M.runAfter=function(e){c.push(e),a||(a=!0,s())},M}(),j=Function.call,L=e(Array.prototype.slice),P=e(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),D=e(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),R=e(Array.prototype.map||function(e,t){var n=this,r=[];return P(n,function(i,o,a){r.push(e.call(t,o,a,n))},void 0),r}),F=Object.create||function(e){function t(){}return t.prototype=e,new t},B=e(Object.prototype.hasOwnProperty),U=Object.keys||function(e){var t=[];for(var n in e)B(e,n)&&t.push(n);return t},q=e(Object.prototype.toString);A="undefined"!=typeof ReturnValue?ReturnValue:function(e){this.value=e};var z="From previous event:";l.resolve=l,l.nextTick=M,l.longStackSupport=!1,"object"==typeof t&&t&&t.env&&t.env.Q_DEBUG&&(l.longStackSupport=!0),l.defer=c,c.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(L(arguments,1)):e.resolve(n)}},l.Promise=u,l.promise=u,u.race=d,u.all=x,u.reject=_,u.resolve=l,l.passByCopy=function(e){return e},f.prototype.passByCopy=function(){return this},l.join=function(e,t){return l(e).join(t)},f.prototype.join=function(e){return l([this,e]).spread(function(e,t){if(e===t)return e;throw new Error("Can't join: not the same: "+e+" "+t)})},l.race=d,f.prototype.race=function(){return this.then(l.race)},l.makePromise=f,f.prototype.toString=function(){return"[object Promise]"},f.prototype.then=function(e,t,n){function i(t){try{return"function"==typeof e?e(t):t}catch(e){return _(e)}}function o(e){return"function"==typeof n?n(e):e}var a=this,s=c(),u=!1;return l.nextTick(function(){a.promiseDispatch(function(e){u||(u=!0,s.resolve(i(e)))},"when",[function(e){u||(u=!0,s.resolve(function(e){if("function"==typeof t){r(e,a);try{return t(e)}catch(e){return _(e)}}return _(e)}(e)))}])}),a.promiseDispatch(void 0,"when",[void 0,function(e){var t,n=!1;try{t=o(e)}catch(e){if(n=!0,!l.onerror)throw e;l.onerror(e)}n||s.notify(t)}]),s.promise},l.tap=function(e,t){return l(e).tap(t)},f.prototype.tap=function(e){return e=l(e),this.then(function(t){return e.fcall(t).thenResolve(t)})},l.when=p,f.prototype.thenResolve=function(e){return this.then(function(){return e})},l.thenResolve=function(e,t){return l(e).thenResolve(t)},f.prototype.thenReject=function(e){return this.then(function(){throw e})},l.thenReject=function(e,t){return l(e).thenReject(t)},l.nearer=h,l.isPromise=m,l.isPromiseAlike=g,l.isPending=function(e){return m(e)&&"pending"===e.inspect().state},f.prototype.isPending=function(){return"pending"===this.inspect().state},l.isFulfilled=function(e){return!m(e)||"fulfilled"===e.inspect().state},f.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},l.isRejected=function(e){return m(e)&&"rejected"===e.inspect().state},f.prototype.isRejected=function(){return"rejected"===this.inspect().state};var H=[],W=[],$=[],Y=!0;l.resetUnhandledRejections=v,l.getUnhandledReasons=function(){return H.slice()},l.stopUnhandledRejectionTracking=function(){v(),Y=!1},v(),l.reject=_,l.fulfill=w,l.master=function(e){return f({isDef:function(){}},function(t,n){return k(e,t,n)},function(){return l(e).inspect()})},l.spread=E,f.prototype.spread=function(e,t){return this.all().then(function(t){return e.apply(void 0,t)},t)},l.async=function(e){return function(){function t(e,t){var o;if("undefined"==typeof StopIteration){try{o=n[e](t)}catch(e){return _(e)}return o.done?l(o.value):p(o.value,r,i)}try{o=n[e](t)}catch(e){return function(e){return"[object StopIteration]"===q(e)||e instanceof A}(e)?l(e.value):_(e)}return p(o,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},l.spawn=function(e){l.done(l.async(e)())},l.return=function(e){throw new A(e)},l.promised=function(e){return function(){return E([this,x(arguments)],function(t,n){return e.apply(t,n)})}},l.dispatch=k,f.prototype.dispatch=function(e,t){var n=this,r=c();return l.nextTick(function(){n.promiseDispatch(r.resolve,e,t)}),r.promise},l.get=function(e,t){return l(e).dispatch("get",[t])},f.prototype.get=function(e){return this.dispatch("get",[e])},l.set=function(e,t,n){return l(e).dispatch("set",[t,n])},f.prototype.set=function(e,t){return this.dispatch("set",[e,t])},l.del=l.delete=function(e,t){return l(e).dispatch("delete",[t])},f.prototype.del=f.prototype.delete=function(e){return this.dispatch("delete",[e])},l.mapply=l.post=function(e,t,n){return l(e).dispatch("post",[t,n])},f.prototype.mapply=f.prototype.post=function(e,t){return this.dispatch("post",[e,t])},l.send=l.mcall=l.invoke=function(e,t){return l(e).dispatch("post",[t,L(arguments,2)])},f.prototype.send=f.prototype.mcall=f.prototype.invoke=function(e){return this.dispatch("post",[e,L(arguments,1)])},l.fapply=function(e,t){return l(e).dispatch("apply",[void 0,t])},f.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},l.try=l.fcall=function(e){return l(e).dispatch("apply",[void 0,L(arguments,1)])},f.prototype.fcall=function(){return this.dispatch("apply",[void 0,L(arguments)])},l.fbind=function(e){var t=l(e),n=L(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(L(arguments))])}},f.prototype.fbind=function(){var e=this,t=L(arguments);return function(){return e.dispatch("apply",[this,t.concat(L(arguments))])}},l.keys=function(e){return l(e).dispatch("keys",[])},f.prototype.keys=function(){return this.dispatch("keys",[])},l.all=x,f.prototype.all=function(){return x(this)},l.any=S,f.prototype.any=function(){return S(this)},l.allResolved=function(e,t,n){return function(){return"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("allResolved is deprecated, use allSettled instead.",new Error("").stack),e.apply(e,arguments)}}(T),f.prototype.allResolved=function(){return T(this)},l.allSettled=function(e){return l(e).allSettled()},f.prototype.allSettled=function(){return this.then(function(e){return x(R(e,function(e){function t(){return e.inspect()}return(e=l(e)).then(t,t)}))})},l.fail=l.catch=function(e,t){return l(e).then(void 0,t)},f.prototype.fail=f.prototype.catch=function(e){return this.then(void 0,e)},l.progress=function(e,t){return l(e).then(void 0,void 0,t)},f.prototype.progress=function(e){return this.then(void 0,void 0,e)},l.fin=l.finally=function(e,t){return l(e).finally(t)},f.prototype.fin=f.prototype.finally=function(e){return e=l(e),this.then(function(t){return e.fcall().then(function(){return t})},function(t){return e.fcall().then(function(){throw t})})},l.done=function(e,t,n,r){return l(e).done(t,n,r)},f.prototype.done=function(e,n,i){var o=function(e){l.nextTick(function(){if(r(e,a),!l.onerror)throw e;l.onerror(e)})},a=e||n||i?this.then(e,n,i):this;"object"==typeof t&&t&&t.domain&&(o=t.domain.bind(o)),a.then(void 0,o)},l.timeout=function(e,t,n){return l(e).timeout(t,n)},f.prototype.timeout=function(e,t){var n=c(),r=setTimeout(function(){t&&"string"!=typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)},e);return this.then(function(e){clearTimeout(r),n.resolve(e)},function(e){clearTimeout(r),n.reject(e)},n.notify),n.promise},l.delay=function(e,t){return void 0===t&&(t=e,e=void 0),l(e).delay(t)},f.prototype.delay=function(e){return this.then(function(t){var n=c();return setTimeout(function(){n.resolve(t)},e),n.promise})},l.nfapply=function(e,t){return l(e).nfapply(t)},f.prototype.nfapply=function(e){var t=c(),n=L(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},l.nfcall=function(e){var t=L(arguments,1);return l(e).nfapply(t)},f.prototype.nfcall=function(){var e=L(arguments),t=c();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},l.nfbind=l.denodeify=function(e){var t=L(arguments,1);return function(){var n=t.concat(L(arguments)),r=c();return n.push(r.makeNodeResolver()),l(e).fapply(n).fail(r.reject),r.promise}},f.prototype.nfbind=f.prototype.denodeify=function(){var e=L(arguments);return e.unshift(this),l.denodeify.apply(void 0,e)},l.nbind=function(e,t){var n=L(arguments,2);return function(){var r=n.concat(L(arguments)),i=c();return r.push(i.makeNodeResolver()),l(function(){return e.apply(t,arguments)}).fapply(r).fail(i.reject),i.promise}},f.prototype.nbind=function(){var e=L(arguments,0);return e.unshift(this),l.nbind.apply(void 0,e)},l.nmapply=l.npost=function(e,t,n){return l(e).npost(t,n)},f.prototype.nmapply=f.prototype.npost=function(e,t){var n=L(t||[]),r=c();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},l.nsend=l.nmcall=l.ninvoke=function(e,t){var n=L(arguments,2),r=c();return n.push(r.makeNodeResolver()),l(e).dispatch("post",[t,n]).fail(r.reject),r.promise},f.prototype.nsend=f.prototype.nmcall=f.prototype.ninvoke=function(e){var t=L(arguments,1),n=c();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},l.nodeify=function(e,t){return l(e).nodeify(t)},f.prototype.nodeify=function(e){if(!e)return this;this.then(function(t){l.nextTick(function(){e(null,t)})},function(t){l.nextTick(function(){e(t)})})},l.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var V=s();return l})}).call(t,n(8),n(20).setImmediate)},function(e,t,n){var r=n(1);e.exports=function(e,t){function n(){var n=e.getItem(t);n=n||"{}";try{return JSON.parse(n)}catch(e){throw new r("Unable to parse storage string: "+t)}}function i(n){try{var i=JSON.stringify(n);e.setItem(t,i)}catch(e){throw new r("Unable to set storage: "+t)}}if("string"!=typeof t||!t.length)throw new r('"storageName" is required');return{getStorage:n,setStorage:i,clearStorage:function(e){e||i({});var t=n();delete t[e],i(t)},updateStorage:function(e,t){var r=n();r[e]=t,i(r)}}}},function(e,t,n){function r(e,t){var n={};return d.extend(n,t),!n.stateToken&&e.stateToken&&(n.stateToken=e.stateToken),n}function i(e){return r(e)}function o(e,t,n,r){return u.post(e,t,n,r).then(function(t){return new c(e,t)})}function a(e,t,n){return function(r){var o,a,s,l;d.isNumber(r)?o=r:d.isObject(r)&&(o=r.delay,a=r.rememberDevice,s=r.autoPush,l=r.transactionCallBack),o||0===o||(o=m.DEFAULT_POLLING_DELAY);var g=d.getLink(t,"next","poll");n.isPolling=!0;var v=0,y=function(){return n.isPolling?function(){var n={};if("function"==typeof s)try{n.autoPush=!!s()}catch(e){return f.reject(new p("AutoPush resulted in an error."))}else null!=s&&(n.autoPush=!!s);if("function"==typeof a)try{n.rememberDevice=!!a()}catch(e){return f.reject(new p("RememberDevice resulted in an error."))}else null!=a&&(n.rememberDevice=!!a);var r=g.href+d.toQueryParams(n);return u.post(e,r,i(t),{saveAuthnState:!1})}().then(function(t){if(v=0,t.factorResult&&"WAITING"===t.factorResult){if(!n.isPolling)throw new h;return"function"==typeof l&&l(t),f.delay(o).then(y)}return n.isPolling=!1,new c(e,t)}).fail(function(e){if(e.xhr&&(0===e.xhr.status||429===e.xhr.status)&&v<=4){var t=1e3*Math.pow(2,v);return v++,f.delay(t).then(y)}throw e}):f.reject(new h)};return y().fail(function(e){throw n.isPolling=!1,e})}}function s(e,t,n,i,a){if(Array.isArray(i))return function(r,o){if(!r)throw new p("Must provide a link name");var l=d.find(i,{name:r});if(!l)throw new p("No link found for that name");return s(e,t,n,l,a)(o)};if(i.hints&&i.hints.allow&&1===i.hints.allow.length)switch(i.hints.allow[0]){case"GET":return function(){return u.get(e,i.href)};case"POST":return function(s){a&&a.isPolling&&(a.isPolling=!1);var l=r(t,s);"MFA_ENROLL"!==t.status&&"FACTOR_ENROLL"!==t.status||d.extend(l,{factorType:n.factorType,provider:n.provider});var c={},u=l.autoPush;if(void 0!==u){if("function"==typeof u)try{c.autoPush=!!u()}catch(e){return f.reject(new p("AutoPush resulted in an error."))}else null!==u&&(c.autoPush=!!u);l=d.omit(l,"autoPush")}var h=l.rememberDevice;if(void 0!==h){if("function"==typeof h)try{c.rememberDevice=!!h()}catch(e){return f.reject(new p("RememberDevice resulted in an error."))}else null!==h&&(c.rememberDevice=!!h);l=d.omit(l,"rememberDevice")}else l.profile&&void 0!==l.profile.updatePhone&&(l.profile.updatePhone&&(c.updatePhone=!0),l.profile=d.omit(l.profile,"updatePhone"));var m=i.href+d.toQueryParams(c);return o(e,m,l)}}}function l(e,t,n,r){if(n=n||t,n=d.clone(n),Array.isArray(n)){for(var i=[],o=0,c=n.length;o<c;o++)i.push(l(e,t,n[o],r));return i}var u=n._embedded||{};for(var f in u)u.hasOwnProperty(f)&&(d.isObject(u[f])||Array.isArray(u[f]))&&(u[f]=l(e,t,u[f],r));var p=function(e,t,n,r){var i={};for(var o in n._links)if(n._links.hasOwnProperty(o)){var l=n._links[o];if("next"===o&&(o=l.name),l.type)i[o]=l;else switch(o){case"poll":i.poll=a(e,t,r);break;default:var c=s(e,t,n,l,r);c&&(i[o]=c)}}return i}(e,t,n,r);return d.extend(u,p),n=d.omit(n,"_embedded","_links"),d.extend(n,u),n}function c(e,t){t&&(this.data=t,d.extend(this,l(e,t,t,{})),delete this.stateToken,"RECOVERY_CHALLENGE"!==t.status||t._links||(this.cancel=function(){return new f(new c(e))}))}var u=n(3),d=n(0),f=n(5),p=n(1),h=n(23),m=n(2);e.exports={transactionStatus:function(e,t){return t=r(e,t),u.post(e,e.options.url+"/api/v1/authn",t)},resumeTransaction:function(e,t){if(!t||!t.stateToken){var n=e.tx.exists._get(m.STATE_TOKEN_KEY_NAME);if(!n)return f.reject(new p("No transaction to resume"));t={stateToken:n}}return e.tx.status(t).then(function(t){return new c(e,t)})},transactionExists:function(e){return!!e.tx.exists._get(m.STATE_TOKEN_KEY_NAME)},postToTransaction:o,introspect:function(e,t){if(!t||!t.stateToken){var n=e.tx.exists._get(m.STATE_TOKEN_KEY_NAME);if(!n)return f.reject(new p("No transaction to evaluate"));t={stateToken:n}}return function(e,t){return t=r(e,t),u.post(e,e.options.url+"/idp/idx/introspect",t)}(e,t).then(function(t){return new c(e,t)})}}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(){h&&f&&(h=!1,f.length?p=f.concat(p):m=-1,p.length&&a())}function a(){if(!h){var e=i(o);h=!0;for(var t=p.length;t;){for(f=p,p=[];++m<t;)f&&f[m].run();m=-1,t=p.length}f=null,h=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,u,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var f,p=[],h=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new s(e,t)),1!==p.length||h||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function r(e,t){var n=t||e.options.issuer||e.options.url;return i.get(e,n+"/.well-known/openid-configuration",{cacheResponse:!0})}var i=n(3),o=n(0),a=n(4),s=n(1),l=a.getHttpCache();e.exports={generateState:function(){return o.genRandomString(64)},generateNonce:function(){return o.genRandomString(64)},getWellKnown:r,getKey:function(e,t,n){return r(e,t).then(function(t){var r=t.jwks_uri,a=l.getStorage(),c=a[r];if(c&&Date.now()/1e3<c.expiresAt){var u=o.find(c.response.keys,{kid:n});if(u)return u}return l.clearStorage(r),i.get(e,r,{cacheResponse:!0}).then(function(e){var t=o.find(e.keys,{kid:n});if(t)return t;throw new s("The key id, "+n+", was not found in the server's keys")})})},validateClaims:function(e,t,n){var r=n.clientId,i=n.issuer,o=n.nonce;if(!t||!i||!r)throw new s("The jwt, iss, and aud arguments are all required");if(o&&t.nonce!==o)throw new s("OAuth flow response nonce doesn't match request nonce");var a=Math.floor(Date.now()/1e3);if(t.iss!==i)throw new s("The issuer ["+t.iss+"] does not match ["+i+"]");if(t.aud!==r)throw new s("The audience ["+t.aud+"] does not match ["+r+"]");if(t.iat>t.exp)throw new s("The JWT expired before it was issued");if(a-e.options.maxClockSkew>t.exp)throw new s("The JWT expired and is no longer valid");if(t.iat>a+e.options.maxClockSkew)throw new s("The JWT was issued in the future")},getOAuthUrls:function(e,t,n){n=n||{};var r=o.removeTrailingSlash(n.authorizeUrl)||e.options.authorizeUrl,i=o.removeTrailingSlash(n.issuer)||e.options.issuer,a=o.removeTrailingSlash(n.userinfoUrl)||e.options.userinfoUrl,l=o.removeTrailingSlash(n.tokenUrl)||e.options.tokenUrl,c=o.removeTrailingSlash(n.logoutUrl)||e.options.logoutUrl,u=o.removeTrailingSlash(n.revokeUrl)||e.options.revokeUrl;if(i&&!/^https?:/.test(i)&&(i=e.options.url+"/oauth2/"+i),!i&&r&&-1!==t.responseType.indexOf("id_token"))throw new s("Cannot request idToken with an authorizeUrl without an issuer");if(!i&&t&&-1!==t.responseType.indexOf("token")){if(r&&!a)throw new s("Cannot request accessToken with an authorizeUrl without an issuer or userinfoUrl");if(a&&!r)throw new s("Cannot request token with an userinfoUrl without an issuer or authorizeUrl")}i=i||e.options.url;var d=i=o.removeTrailingSlash(i);return new RegExp("^https?://.*?/oauth2/.+").test(d)||d.endsWith("/oauth2")||(d+="/oauth2"),{issuer:i,authorizeUrl:r=r||d+"/v1/authorize",userinfoUrl:a=a||d+"/v1/userinfo",tokenUrl:l=l||d+"/v1/token",revokeUrl:u=u||d+"/v1/revoke",logoutUrl:c=c||d+"/v1/logout"}},loadFrame:function(e){var t=document.createElement("iframe");return t.style.display="none",t.src=e,document.body.appendChild(t)},loadPopup:function(e,t){var n=t.popupTitle||"External Identity Provider User Authentication",r="toolbar=no, scrollbars=yes, resizable=yes, top=100, left=500, width=600, height=600";if(o.isIE11OrLess()){var i=window.open("/",n,r);return i.location.href=e,i}return window.open(e,n,r)},urlParamsToObject:function(e){for(var t,n=/\+/g,r=/([^&=]+)=?([^&]*)/g,i=e.substring(1),o={};t=r.exec(i);){var a=t[1],s=t[2];o[a]="id_token"===a||"access_token"===a||"code"===a?s:decodeURIComponent(s.replace(n," "))}return o},isToken:function(e){return!(!e||!e.accessToken&&!e.idToken||!Array.isArray(e.scopes))},addListener:function(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,n)},removeListener:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n):e.detachEvent("on"+t,n)}}},function(e,t,n){var r=n(12),i=n(4);e.exports=n(15)(i,r)},function(e,t,n){var r=n(13);e.exports=function(e,t,n){var i=n.data,o=n.headers||{};return"application/json"===(o["Content-Type"]||o["content-type"]||"")&&i&&"string"!=typeof i&&(i=JSON.stringify(i)),r(t,{method:e,headers:n.headers,body:i,credentials:!1===n.withCredentials?"omit":"include"}).then(function(e){var t=!e.ok,n=e.status,r=function(e){var r={responseText:e,status:n};if(t)throw r;return r};return e.headers.get("Content-Type")&&e.headers.get("Content-Type").toLowerCase().indexOf("application/json")>=0?e.json().then(r):e.text().then(r)})}},function(e,t){var n=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!=typeof self?self:this);!function(e){!function(t){function n(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function r(e){return"string"!=typeof e&&(e=String(e)),e}function i(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function a(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function l(e){var t=new FileReader,n=s(t);return t.readAsArrayBuffer(e),n}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(e){this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:g.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:g.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():g.arrayBuffer&&g.blob&&function(e){return e&&DataView.prototype.isPrototypeOf(e)}(e)?(this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):g.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||y(e))?this._bodyArrayBuffer=c(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?a(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(l)}),this.text=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=s(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(f)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e,t){var n=(t=t||{}).body;if(e instanceof d){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=function(e){var t=e.toUpperCase();return b.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function p(e){var t=new o;return e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function h(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}function m(e,n){return new Promise(function(r,i){function o(){s.abort()}var a=new d(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:p(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;r(new h(t,e))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&g.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",o),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",o)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],y=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,t){e=n(e),t=r(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},o.prototype.delete=function(e){delete this.map[n(e)]},o.prototype.get=function(e){return e=n(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(n(e))},o.prototype.set=function(e,t){this.map[n(e)]=r(t)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),i(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),i(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},u.call(d.prototype),u.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];h.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}m.polyfill=!0,e.fetch||(e.fetch=m,e.Headers=o,e.Request=d,e.Response=h),t.Headers=o,t.Request=d,t.Response=h,t.fetch=m}({})}(n),delete n.fetch.polyfill,(t=n.fetch).default=n.fetch,t.fetch=n.fetch,t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response,e.exports=t},function(e,t,n){var r,i,o;o=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}return function t(n){function r(t,i,o){var a;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(o=e({path:"/"},r.defaults,o)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*o.expires),o.expires=s}o.expires=o.expires?o.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var l="";for(var c in o)o[c]&&(l+="; "+c,!0!==o[c]&&(l+="="+o[c]));return document.cookie=t+"="+i+l}t||(a={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f<u.length;f++){var p=u[f].split("="),h=p.slice(1).join("=");this.json||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var m=p[0].replace(d,decodeURIComponent);if(h=n.read?n.read(h,m):n(h,m)||h.replace(d,decodeURIComponent),this.json)try{h=JSON.parse(h)}catch(e){}if(t===m){a=h;break}t||(a[m]=h)}catch(e){}}return a}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,n){r(t,"",e(n,{expires:-1}))},r.withConverter=t,r}(function(){})},void 0!==(i="function"==typeof(r=o)?r.call(t,n,t,e):r)&&(e.exports=i),e.exports=o()},function(e,t,n){function r(e){var t=this,n=a.getValidUrl(e),r=e.pkce||"authorization_code"===e.grantType;if(this.options={url:g.removeTrailingSlash(n),clientId:e.clientId,issuer:g.removeTrailingSlash(e.issuer),authorizeUrl:g.removeTrailingSlash(e.authorizeUrl),userinfoUrl:g.removeTrailingSlash(e.userinfoUrl),tokenUrl:g.removeTrailingSlash(e.tokenUrl),revokeUrl:g.removeTrailingSlash(e.revokeUrl),logoutUrl:g.removeTrailingSlash(e.logoutUrl),pkce:r,redirectUri:e.redirectUri,postLogoutRedirectUri:e.postLogoutRedirectUri,responseMode:e.responseMode,httpRequestClient:e.httpRequestClient,storageUtil:e.storageUtil,transformErrorXHR:e.transformErrorXHR,headers:e.headers,onSessionExpired:e.onSessionExpired},this.options.pkce&&!t.features.isPKCESupported()){var c="PKCE requires a modern browser with encryption support running in a secure context.";throw t.features.isHTTPS()||(c+="\nThe current page is not being served with HTTPS protocol. Try using HTTPS."),t.features.hasTextEncoder()||(c+='\n"TextEncoder" is not defined. You may need a polyfill/shim for this browser.'),new o(c)}this.userAgent="okta-auth-js-2.13.0",e.maxClockSkew||0===e.maxClockSkew?this.options.maxClockSkew=e.maxClockSkew:this.options.maxClockSkew=s.DEFAULT_MAX_CLOCK_SKEW,this.options.ignoreSignature=!!e.ignoreSignature,t.session={close:g.bind(f.closeSession,null,t),exists:g.bind(f.sessionExists,null,t),get:g.bind(f.getSession,null,t),refresh:g.bind(f.refreshSession,null,t),setCookieAndRedirect:g.bind(f.setCookieAndRedirect,null,t)},t.tx={status:g.bind(m.transactionStatus,null,t),resume:g.bind(m.resumeTransaction,null,t),exists:g.bind(m.transactionExists,null,t),introspect:g.bind(m.introspect,null,t)},t.tx.exists._get=function(e){return l.get(e)},t.idToken={authorize:{_getLocationHref:function(){return window.location.href}}},t.token={getWithoutPrompt:g.bind(p.getWithoutPrompt,null,t),getWithPopup:g.bind(p.getWithPopup,null,t),getWithRedirect:g.bind(p.getWithRedirect,null,t),parseFromUrl:g.bind(p.parseFromUrl,null,t),decode:p.decodeToken,revoke:g.bind(p.revokeToken,null,t),renew:g.bind(p.renewToken,null,t),getUserInfo:g.bind(p.getUserInfo,null,t),verify:g.bind(p.verifyToken,null,t)},t.token.getWithRedirect._setLocation=function(e){window.location=e},t.token.parseFromUrl._getHistory=function(){return window.history},t.token.parseFromUrl._getLocation=function(){return window.location},t.token.parseFromUrl._getDocument=function(){return window.document},t.fingerprint._getUserAgent=function(){return navigator.userAgent};var u=/windows phone|iemobile|wpdesktop/i;t.features.isFingerprintSupported=function(){var e=t.fingerprint._getUserAgent();return e&&!u.test(e)},t.emitter=new i,t.tokenManager=new h(t,e.tokenManager),t.tokenManager.on("error",this._onTokenManagerError,this)}n(16);var i=n(18),o=n(1),a=n(19),s=n(2),l=n(4).storage,c=n(3),u=n(10),d=n(5),f=n(24),p=n(25),h=n(29),m=n(7),g=n(0),v=r.prototype;v._onTokenManagerError=function(e){"login_required"===e.errorCode&&e.accessToken&&(this.options.onSessionExpired?this.options.onSessionExpired():console.error("Session has expired or was closed outside the application."))},v.features={},v.features.isPopupPostMessageSupported=function(){var e=document.documentMode&&document.documentMode<10;return!(!window.postMessage||e)},v.features.isTokenVerifySupported=function(){return"undefined"!=typeof crypto&&crypto.subtle&&"undefined"!=typeof Uint8Array},v.features.hasTextEncoder=function(){return"undefined"!=typeof TextEncoder},v.features.isPKCESupported=function(){return v.features.isTokenVerifySupported()&&v.features.hasTextEncoder()},v.features.isHTTPS=function(){return"https:"===window.location.protocol},v.signIn=function(e){function t(t){return delete e.sendFingerprint,m.postToTransaction(n,"/api/v1/authn",e,t)}var n=this;return(e=g.clone(e||{})).sendFingerprint?n.fingerprint().then(function(e){return t({headers:{"X-Device-Fingerprint":e}})}):t()},v.signOut=function(e){function t(){return a.session.close().catch(function(e){if("AuthApiError"!==e.name)throw e})}var n=(e=g.extend({},e)).postLogoutRedirectUri||this.options.postLogoutRedirectUri,r=e.accessToken,i=e.revokeAccessToken,o=e.idToken,a=this,s=u.getOAuthUrls(a).logoutUrl;return d.allSettled([(new d).then(function(){return i&&void 0===r?a.tokenManager.get("token"):r}),(new d).then(function(){return n&&void 0===o?a.tokenManager.get("idToken"):o})]).then(function(e){if(r=e[0].value,o=e[1].value,a.tokenManager.clear(),i&&r)return a.token.revoke(r).catch(function(e){if("AuthApiError"!==e.name)throw e})}).then(function(){if(!n)return t();if(!o)return t().catch(function(e){console.log("Unhandled exception while closing session",e)}).then(function(){window.location.assign(n)});var r=e.state,i=o.idToken,a=s+"?id_token_hint="+encodeURIComponent(i)+"&post_logout_redirect_uri="+encodeURIComponent(n);r&&(a+="&state="+encodeURIComponent(r)),window.location.assign(a)})},a.addSharedPrototypes(v),v.webfinger=function(e){var t="/.well-known/webfinger"+g.toQueryParams(e);return c.get(this,t,{headers:{Accept:"application/jrd+json"}})},v.fingerprint=function(e){function t(e){if(e&&e.data&&e.origin===n.options.url){try{var t=JSON.parse(e.data)}catch(e){return r.reject(new o("Unable to parse iframe response"))}if(t)return"FingerprintAvailable"===t.type?r.resolve(t.fingerprint):void("FingerprintServiceReady"===t.type&&e.source.postMessage(JSON.stringify({type:"GetFingerprint"}),e.origin))}}e=e||{};var n=this;if(!n.features.isFingerprintSupported())return d.reject(new o("Fingerprinting is not supported on this device"));var r=d.defer(),i=document.createElement("iframe");i.style.display="none",u.addListener(window,"message",t),i.src=n.options.url+"/auth/services/devicefingerprint",document.body.appendChild(i);var a=setTimeout(function(){r.reject(new o("Fingerprinting timed out"))},e.timeout||15e3);return r.promise.fin(function(){clearTimeout(a),u.removeListener(window,"message",t),document.body.contains(i)&&i.parentElement.removeChild(i)})},e.exports=a.buildOktaAuth(r)},function(e,t,n){n(17),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n;if(null==this)throw new TypeError('"this" is null or not defined');var r=Object(this),i=r.length>>>0;if(0===i)return-1;var o=+t||0;if(Math.abs(o)===1/0&&(o=0),o>=i)return-1;for(n=Math.max(o>=0?o:i-Math.abs(o),0);n<i;){if(n in r&&r[n]===e)return n;n++}return-1}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)})},function(e,t,n){!function(){function e(e){this.message=e}var n=t,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.prototype=new Error,e.prototype.name="InvalidCharacterError",n.btoa||(n.btoa=function(t){for(var n,i,o=String(t),a=0,s=r,l="";o.charAt(0|a)||(s="=",a%1);l+=s.charAt(63&n>>8-a%1*8)){if((i=o.charCodeAt(a+=.75))>255)throw new e("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");n=n<<8|i}return l}),n.atob||(n.atob=function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,a=0,s=0,l="";o=n.charAt(s++);~o&&(i=a%4?64*i+o:o,a++%4)?l+=String.fromCharCode(255&i>>(-2*a&6)):0)o=r.indexOf(o);return l})}()},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){i.off(e,r),t.apply(n,arguments)}var i=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var r=n(1),i=n(7),o=n(0);e.exports={addSharedPrototypes:function(e){e.forgotPassword=function(e){return i.postToTransaction(this,"/api/v1/authn/recovery/password",e)},e.unlockAccount=function(e){return i.postToTransaction(this,"/api/v1/authn/recovery/unlock",e)},e.verifyRecoveryToken=function(e){return i.postToTransaction(this,"/api/v1/authn/recovery/token",e)}},buildOktaAuth:function(e){return function(t,n){function r(i){if(!(this instanceof r))return new r(i);i&&(i.storageUtil=t,i.ajaxRequest?(o.deprecate("ajaxRequest is being deprecated, use httpRequestClient attribute instead."),i.httpRequestClient=i.ajaxRequest):i.httpRequestClient||(i.httpRequestClient=n)),o.bind(e,this)(i)}return r.prototype=e.prototype,r.prototype.constructor=r,r.features=e.prototype.features,r}},getValidUrl:function(e){if(!e)throw new r("No arguments passed to constructor. Required usage: new OktaAuth(args)");var t=e.url;if(!t){var n=new RegExp("^http?s?://.+");if(!e.issuer||!n.test(e.issuer))throw new r('No url passed to constructor. Required usage: new OktaAuth({url: "https://{yourOktaDomain}.com"})');t=e.issuer.split("/oauth2/")[0]}if(-1!==t.indexOf("-admin."))throw new r('URL passed to constructor contains "-admin" in subdomain. Required usage: new OktaAuth({url: "https://{yourOktaDomain}.com})');return t}}},function(e,t,n){(function(e){function r(e,t){this._id=e,this._clearFn=t}var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(21),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(t,n(9))},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){delete s[e]}function i(e){if(l)setTimeout(i,0,e);else{var t=s[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{r(e),l=!1}}}}if(!e.setImmediate){var o,a=1,s={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick(function(){i(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&i(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),o=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){i(e.data)},o=function(t){e.port2.postMessage(t)}}():c&&"onreadystatechange"in c.createElement("script")?function(){var e=c.documentElement;o=function(t){var n=c.createElement("script");n.onreadystatechange=function(){i(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():o=function(e){setTimeout(i,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return s[a]=r,o(a),a++},u.clearImmediate=r}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(9),n(8))},function(e,t){function n(e,t){this.name="AuthApiError",this.message=e.errorSummary,this.errorSummary=e.errorSummary,this.errorCode=e.errorCode,this.errorLink=e.errorLink,this.errorId=e.errorId,this.errorCauses=e.errorCauses,t&&(this.xhr=t)}n.prototype=new Error,e.exports=n},function(e,t){function n(){this.name="AuthPollStopError",this.message="The poll was stopped by the sdk"}n.prototype=new Error,e.exports=n},function(e,t,n){var r=n(0),i=n(3);e.exports={sessionExists:function(e){return e.session.get().then(function(e){return"ACTIVE"===e.status}).fail(function(){return!1})},getSession:function(e){return i.get(e,"/api/v1/sessions/me").then(function(t){var n=r.omit(t,"_links");return n.refresh=function(){return i.post(e,r.getLink(t,"refresh").href)},n.user=function(){return i.get(e,r.getLink(t,"user").href)},n}).fail(function(){return{status:"INACTIVE"}})},closeSession:function(e){return i.httpRequest(e,{url:e.options.url+"/api/v1/sessions/me",method:"DELETE"})},refreshSession:function(e){return i.post(e,"/api/v1/sessions/me/lifecycle/refresh")},setCookieAndRedirect:function(e,t,n){n=n||window.location.href,window.location=e.options.url+"/login/sessionCookieRedirect"+r.toQueryParams({checkAccountSetupComplete:!0,token:t,redirectUrl:n})}}},function(e,t,n){function r(e){var t,n=e.split(".");try{t={header:JSON.parse(f.base64UrlToString(n[0])),payload:JSON.parse(f.base64UrlToString(n[1])),signature:n[2]}}catch(e){throw new g("Malformed token")}return t}function i(e,t,n){return(new h).then(function(){if(!t||!t.idToken)throw new g("Only idTokens may be verified");var i=r(t.idToken),o={clientId:e.options.clientId,issuer:e.options.issuer||e.options.url,ignoreSignature:e.options.ignoreSignature};return f.extend(o,n),p.validateClaims(e,i.payload,o),1!=o.ignoreSignature&&e.features.isTokenVerifySupported()?p.getKey(e,t.issuer,i.header.kid).then(function(e){return m.verifyToken(t.idToken,e)}).then(function(e){if(!e)throw new g("The token signature is not valid");return t}):t})}function o(e,t,n){function r(t){if(t.data&&t.data.state===n)return t.origin!==e.options.url?i.reject(new g("The request does not match client configuration")):void i.resolve(t.data)}var i=h.defer();return p.addListener(window,"message",r),i.promise.timeout(t||12e4,new g("OAuth flow timed out")).fin(function(){p.removeListener(window,"message",r)})}function a(e,t){if(e.error||e.error_description)throw new v(e.error,e.error_description);if(e.state!==t.state)throw new g("OAuth flow response state doesn't match request state")}function s(e,t,n,r){r=r||{};var o=t.responseType,s=f.clone(t.scopes),l=t.clientId||e.options.clientId;return(new h).then(function(){return a(n,t),n.code?(o=["token","id_token"],function(e,t,n,r){var i=_.loadMeta(e),o={clientId:t.clientId,authorizationCode:n,codeVerifier:i.codeVerifier,redirectUri:i.redirectUri};return _.getToken(e,o,r).then(function(e){return a(e,o),e}).fin(function(){_.clearMeta(e)})}(e,t,n.code,r)):n}).then(function(n){var o={};if(n.access_token&&(o.token={accessToken:n.access_token,expiresAt:Number(n.expires_in)+Math.floor(Date.now()/1e3),tokenType:n.token_type,scopes:s,authorizeUrl:r.authorizeUrl,userinfoUrl:r.userinfoUrl}),n.id_token){var a=e.token.decode(n.id_token),c={idToken:n.id_token,claims:a.payload,expiresAt:a.payload.exp,scopes:s,authorizeUrl:r.authorizeUrl,issuer:r.issuer,clientId:l},u={clientId:l,issuer:r.issuer,nonce:t.nonce};return void 0!==t.ignoreSignature&&(u.ignoreSignature=t.ignoreSignature),i(e,c,u).then(function(){return o.id_token=c,o})}return o}).then(function(e){return Array.isArray(o)?(["token","id_token"].filter(function(e){return-1!==o.indexOf(e)}).forEach(function(t){if(!e[t])throw new g("Unable to parse OAuth flow response: "+t+" was not returned.")}),o.map(function(t){return e[t]})):e[o]})}function l(e){var t=function(e){if(!e.clientId)throw new g("A clientId must be specified in the OktaAuth constructor to get a token");if(f.isString(e.responseType)&&-1!==e.responseType.indexOf(" "))throw new g("Multiple OAuth responseTypes must be defined as an array");var t=f.removeNils({client_id:e.clientId,code_challenge:e.codeChallenge,code_challenge_method:e.codeChallengeMethod,display:e.display,idp:e.idp,idp_scope:e.idpScope,login_hint:e.loginHint,max_age:e.maxAge,nonce:e.nonce,prompt:e.prompt,redirect_uri:e.redirectUri,response_mode:e.responseMode,response_type:e.responseType,sessionToken:e.sessionToken,state:e.state});if(["idp_scope","response_type"].forEach(function(e){Array.isArray(t[e])&&(t[e]=t[e].join(" "))}),-1!==e.responseType.indexOf("id_token")&&-1===e.scopes.indexOf("openid"))throw new g("openid scope must be specified in the scopes argument when requesting an id_token");return t.scope=e.scopes.join(" "),t}(e);return f.toQueryParams(t)}function c(e,t,n){return n=n||{},u(e,t=t||{}).then(function(r){function i(e){return/^(https?\:\/\/)?([^:\/?#]*(?:\:[0-9]+)?)/.exec(e)[0]}var a,c,u;t.sessionToken?f.extend(r,{prompt:"none",responseMode:"okta_post_message",display:null}):t.idp&&f.extend(r,{display:"popup"});try{u=p.getOAuthUrls(e,r,n),c=t.codeVerifier?u.tokenUrl:u.authorizeUrl,a=c+l(r)}catch(e){return h.reject(e)}switch(r.sessionToken||null===r.display?"IFRAME":"popup"===r.display?"POPUP":"IMPLICIT"){case"IFRAME":var d=o(e,n.timeout,r.state),m=p.loadFrame(a);return d.then(function(t){return s(e,r,t,u)}).fin(function(){document.body.contains(m)&&m.parentElement.removeChild(m)});case"POPUP":var v;if("okta_post_message"===r.responseMode){if(!e.features.isPopupPostMessageSupported())return h.reject(new g("This browser doesn't have full postMessage support"));v=o(e,n.timeout,r.state)}var y={popupTitle:n.popupTitle},b=p.loadPopup(a,y);if("fragment"===r.responseMode){var _=i(e.idToken.authorize._getLocationHref()),w=i(r.redirectUri);if(_!==w)return h.reject(new g("Using fragment, the redirectUri origin ("+w+") must match the origin of this page ("+_+")"));v=function(e,t,n){var r=h.defer();return function e(){try{t&&t.location&&t.location.hash?r.resolve(p.hashToObject(t.location.hash)):t&&!t.closed&&setTimeout(e,500)}catch(t){setTimeout(e,500)}}(),r.promise.timeout(n||12e4,new g("OAuth flow timed out"))}(0,b,n.timeout)}var E=h.defer(),k=setInterval(function(){(function(e){if(!e||e.closed)return E.reject(new g("Unable to parse OAuth flow response")),!0})(b)&&clearInterval(k)},500);return v.then(function(e){E.resolve(e)}).fail(function(e){E.reject(e)}),E.promise.then(function(t){return s(e,r,t,u)}).fin(function(){clearInterval(k),b&&!b.closed&&b.close()});default:return h.reject(new g("The full page redirect flow is not supported"))}})}function u(e,t){"authorization_code"===(t=f.clone(t)||{}).grantType&&(t.pkce=!0);var n=function(e){return{pkce:e.options.pkce||!1,clientId:e.options.clientId,redirectUri:e.options.redirectUri||window.location.href,responseType:"id_token",responseMode:"okta_post_message",state:p.generateState(),nonce:p.generateNonce(),scopes:["openid","email"],ignoreSignature:e.options.ignoreSignature}}(e);return f.extend(n,t),!0!==n.pkce?h.resolve(n):e.features.isPKCESupported()?(n.codeChallengeMethod||(n.codeChallengeMethod=_.DEFAULT_CODE_CHALLENGE_METHOD),n.responseType="code",p.getWellKnown(e,null).then(function(e){if(-1===(e.code_challenge_methods_supported||[]).indexOf(n.codeChallengeMethod))throw new g("Invalid code_challenge_method")}).then(function(){var t=_.generateVerifier(n.codeVerifier),r={codeVerifier:t,redirectUri:n.redirectUri};return _.saveMeta(e,r),_.computeChallenge(t)}).then(function(e){var t=f.clone(n)||{};return f.extend(t,n,{codeChallenge:e}),t})):h.reject(new g("This browser doesn't support PKCE"))}var d=n(3),f=n(0),p=n(10),h=n(5),m=n(26),g=n(1),v=n(27),y=n(2),b=n(4).storage,_=n(28);e.exports={revokeToken:function(e,t){return(new h).then(function(){if(!t||!t.accessToken)throw new g("A valid access token object is required");var n=e.options.clientId;if(!n)throw new g("A clientId must be specified in the OktaAuth constructor to revoke a token");var r=p.getOAuthUrls(e).revokeUrl,i=t.accessToken,o=f.toQueryParams({token_type_hint:"access_token",token:i}).slice(1),a=btoa(n);return d.post(e,r,o,{headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Basic "+a}})})},getToken:c,getWithoutPrompt:function(e,t,n){var r=f.clone(t)||{};return f.extend(r,{prompt:"none",responseMode:"okta_post_message",display:null}),c(e,r,n)},getWithPopup:function(e,t,n){var r=f.clone(t)||{};return f.extend(r,{display:"popup",responseMode:"okta_post_message"}),c(e,r,n)},getWithRedirect:function(e,t,n){return t=f.clone(t)||{},u(e,t).then(function(r){t.responseMode||(r.responseType.includes("code")&&!r.pkce?r.responseMode="query":r.responseMode=e.options.responseMode||"fragment");var i=p.getOAuthUrls(e,r,n),o=i.authorizeUrl+l(r);b.set(y.REDIRECT_OAUTH_PARAMS_COOKIE_NAME,JSON.stringify({responseType:r.responseType,state:r.state,nonce:r.nonce,scopes:r.scopes,clientId:r.clientId,urls:i,ignoreSignature:r.ignoreSignature}),null,{sameSite:"lax"}),b.set(y.REDIRECT_NONCE_COOKIE_NAME,r.nonce,null,{sameSite:"lax"}),b.set(y.REDIRECT_STATE_COOKIE_NAME,r.state,null,{sameSite:"lax"}),e.token.getWithRedirect._setLocation(o)})},parseFromUrl:function(e,t){t=t||{},f.isString(t)&&(t={url:t});var n,r=t.url,i=t.responseMode||e.options.responseMode||"fragment",o=e.token.parseFromUrl._getLocation();if(!(n="query"===i?r?r.substring(r.indexOf("?")):o.search:r?r.substring(r.indexOf("#")):o.hash))return h.reject(new g("Unable to parse a token from the url"));var a=b.get(y.REDIRECT_OAUTH_PARAMS_COOKIE_NAME);if(!a)return h.reject(new g("Unable to retrieve OAuth redirect params cookie"));try{var l=JSON.parse(a),c=l.urls;delete l.urls,b.delete(y.REDIRECT_OAUTH_PARAMS_COOKIE_NAME)}catch(e){return h.reject(new g("Unable to parse the "+y.REDIRECT_OAUTH_PARAMS_COOKIE_NAME+" cookie: "+e.message))}return h.resolve(p.urlParamsToObject(n)).then(function(t){return r||("query"===i?function(e){var t=e.token.parseFromUrl._getHistory(),n=e.token.parseFromUrl._getDocument(),r=e.token.parseFromUrl._getLocation();t&&t.replaceState?t.replaceState(null,n.title,r.pathname+r.hash):r.search=""}(e):function(e){var t=e.token.parseFromUrl._getHistory(),n=e.token.parseFromUrl._getDocument(),r=e.token.parseFromUrl._getLocation();t&&t.replaceState?t.replaceState(null,n.title,r.pathname+r.search):r.hash=""}(e)),s(e,l,t,c)})},decodeToken:r,renewToken:function(e,t){return p.isToken(t)?(n=e.options.pkce?"code":t.accessToken?"token":"id_token",e.token.getWithoutPrompt({responseType:n,scopes:t.scopes},{authorizeUrl:t.authorizeUrl,userinfoUrl:t.userinfoUrl,issuer:t.issuer})):h.reject(new g("Renew must be passed a token with an array of scopes and an accessToken or idToken"));var n},getUserInfo:function(e,t){return t&&(p.isToken(t)||t.accessToken||t.userinfoUrl)?d.httpRequest(e,{url:t.userinfoUrl,method:"GET",accessToken:t.accessToken}).fail(function(e){var t;if(e.xhr&&(401===e.xhr.status||403===e.xhr.status)&&(e.xhr.headers&&f.isFunction(e.xhr.headers.get)&&e.xhr.headers.get("WWW-Authenticate")?t=e.xhr.headers.get("WWW-Authenticate"):f.isFunction(e.xhr.getResponseHeader)&&(t=e.xhr.getResponseHeader("WWW-Authenticate")),t)){var n=t.match(/error="(.*?)"/)||[],r=t.match(/error_description="(.*?)"/)||[],i=n[1],o=r[1];i&&o&&(e=new v(i,o))}throw e}):h.reject(new g("getUserInfo requires an access token object"))},verifyToken:i,handleOAuthResponse:s,prepareOauthParams:u}},function(e,t,n){var r=n(0);e.exports={verifyToken:function(e,t){t=r.clone(t);var n={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};return delete t.use,crypto.subtle.importKey("jwk",t,n,!0,["verify"]).then(function(t){var i=e.split("."),o=r.stringToBuffer(i[0]+"."+i[1]),a=r.base64UrlDecode(i[2]),s=r.stringToBuffer(a);return crypto.subtle.verify(n,t,s,o)})}}},function(e,t){function n(e,t){this.name="OAuthError",this.message=t,this.errorCode=e,this.errorSummary=t}n.prototype=new Error,e.exports=n},function(e,t,n){function r(e){return("0"+e.toString(16)).substr(-2)}var i=n(1),o=n(3),a=n(0),s=43,l=128;e.exports={DEFAULT_CODE_CHALLENGE_METHOD:"S256",generateVerifier:function(e){var t=e||"";return t.length<s&&(t+=function(e){var t=new Uint8Array(Math.ceil(e/2));return crypto.getRandomValues(t),Array.from(t,r).join("").slice(0,e)}(s-t.length)),encodeURIComponent(t).slice(0,l)},clearMeta:function(e){e.options.storageUtil.getPKCEStorage().clearStorage()},saveMeta:function(e,t){e.options.storageUtil.getPKCEStorage().setStorage(t)},loadMeta:function(e){return e.options.storageUtil.getPKCEStorage().getStorage()},computeChallenge:function(e){var t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then(function(e){var t=String.fromCharCode.apply(null,new Uint8Array(e));return a.stringToBase64Url(t)})},getToken:function(e,t,n){!function(e){if(!e.clientId)throw new i("A clientId must be specified in the OktaAuth constructor to get a token");if(!e.redirectUri)throw new i("The redirectUri passed to /authorize must also be passed to /token");if(!e.authorizationCode)throw new i("An authorization code (returned from /authorize) must be passed to /token");if(!e.codeVerifier)throw new i('The "codeVerifier" (generated and saved by your app) must be passed to /token')}(t);var r=function(e){var t=a.removeNils({client_id:e.clientId,redirect_uri:e.redirectUri,grant_type:"authorization_code",code:e.authorizationCode,code_verifier:e.codeVerifier});return a.toQueryParams(t).slice(1)}(t);return o.httpRequest(e,{url:n.tokenUrl,method:"POST",args:r,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}}},function(e,t,n){function r(e,t){return t.expiresAt-e.options.expireEarlySeconds}function i(e,t){return r(e,t)<=e.clock.now()}function o(e,t){e.emitter.emit("error",t)}function a(e,t){clearTimeout(e.expireTimeouts[t]),delete e.expireTimeouts[t],delete e.renewPromise[t]}function s(e,t,n,i){var o=r(t,i),s=1e3*Math.max(o-t.clock.now(),0);a(t,n);var l=setTimeout(function(){!function(e,t,n){e.emitter.emit("expired",t,n)}(t,n,i)},s);t.expireTimeouts[n]=l}function l(e,t,n){try{var r=n.getStorage()}catch(e){return void o(t,e)}for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];s(0,t,i,a)}}function c(e,t,n,r,i){var o=n.getStorage();if(!m.isObject(i)||!i.scopes||!i.expiresAt&&0!==i.expiresAt||!i.idToken&&!i.accessToken)throw new g("Token must be an Object with scopes, expiresAt, and an idToken or accessToken properties");o[r]=i,n.setStorage(o),s(0,t,r,i)}function u(e,t){return e.getStorage()[t]}function d(e,t,n,r){return y.Promise(function(o){var a=u(n,r);return o(a&&i(t,a)?t.options.autoRenew?p(e,t,n,r):f(t,n,r):a)})}function f(e,t,n){a(e,n);var r=t.getStorage();delete r[n],t.setStorage(r)}function p(e,t,n,r){var i=t.renewPromise[r];if(i)return i;try{var s=u(n,r);if(!s)throw new g("The tokenManager has no token for the key: "+r)}catch(e){return y.reject(e)}return a(t,r),t.renewPromise[r]=e.token.renew(s).then(function(e){var i=e;e instanceof Array&&(i=e.find(function(e){return e.idToken&&s.idToken||e.accessToken&&s.accessToken}));var o=u(n,r);if(o)return c(0,t,n,r,i),t.emitter.emit("renewed",r,i,o),i}).catch(function(e){throw"OAuthError"!==e.name&&"AuthSdkError"!==e.name||(f(t,n,r),e.tokenKey=r,e.accessToken=!!s.accessToken,o(t,e)),e}).finally(function(){delete t.renewPromise[r]}),t.renewPromise[r]}function h(e,t){(function(e){var t=e.expireTimeouts;for(var n in t)t.hasOwnProperty(n)&&a(e,n)})(e),t.clearStorage()}var m=n(0),g=n(1),v=n(4),y=n(5),b=n(2),_=n(6),w=n(30),E={autoRenew:!0,storage:"localStorage",expireEarlySeconds:30};e.exports=function(e,t){var n;if("localStorage"!==(t=m.extend({},E,m.removeNils(t))).storage||v.browserHasLocalStorage()||(m.warn("This browser doesn't support localStorage. Switching to sessionStorage."),t.storage="sessionStorage"),"sessionStorage"!==t.storage||v.browserHasSessionStorage()||(m.warn("This browser doesn't support sessionStorage. Switching to cookie-based storage."),t.storage="cookie"),"object"==typeof t.storage)n=t.storage;else switch(t.storage){case"localStorage":n=localStorage;break;case"sessionStorage":n=sessionStorage;break;case"cookie":n=v.getCookieStorage(t);break;case"memory":n=v.getInMemoryStorage();break;default:throw new g("Unrecognized storage option")}var r=t.storageKey||b.TOKEN_STORAGE_NAME,i=_(n,r),o={clock:w.create(e,t),options:t,emitter:e.emitter,expireTimeouts:{},renewPromise:{}};this.add=m.bind(c,this,e,o,i),this.get=m.bind(d,this,e,o,i),this.remove=m.bind(f,this,o,i),this.clear=m.bind(h,this,o,i),this.renew=m.bind(p,this,e,o,i),this.on=m.bind(o.emitter.on,o.emitter),this.off=m.bind(o.emitter.off,o.emitter),l(e,o,i)}},function(e,t,n){function r(e){this.localOffset=parseInt(e||0)}n(0).extend(r.prototype,{now:function(){return(Date.now()+this.localOffset)/1e3}}),r.create=function(){return new r(0)},e.exports=r}])},function(e,t){e.exports=function(e){return[e]}},function(e,t,n){var r=n(690),i=n(1934),o=n(920),a=n(1936),s=n(1943),l=n(1946),c=n(928),u=n(1947),d=n(1949),f=n(933),p=n(1950),h=n(546),m=n(1955),g=n(1956),v=n(1961),y=n(253),b=n(694),_=n(1963),w=n(252),E=n(1965),k=n(384),x=1,S=2,T=4,C="[object Arguments]",O="[object Function]",A="[object GeneratorFunction]",N="[object Object]",I={};I[C]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[N]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[O]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,M,j,L,P){var D,R=n&x,F=n&S,B=n&T;if(M&&(D=L?M(t,j,L,P):M(t)),void 0!==D)return D;if(!w(t))return t;var U=y(t);if(U){if(D=m(t),!R)return c(t,D)}else{var q=h(t),z=q==O||q==A;if(b(t))return l(t,R);if(q==N||q==C||z&&!L){if(D=F||z?{}:v(t),!R)return F?d(t,s(D,t)):u(t,a(D,t))}else{if(!I[q])return L?t:{};D=g(t,q,R)}}P||(P=new r);var H=P.get(t);if(H)return H;P.set(t,D),E(t)?t.forEach(function(r){D.add(e(r,n,M,r,t,P))}):_(t)&&t.forEach(function(r,i){D.set(i,e(r,n,M,i,t,P))});var W=B?F?p:f:F?keysIn:k,$=U?void 0:W(t);return i($||t,function(r,i){$&&(r=t[i=r]),o(D,i,e(r,n,M,i,t,P))}),D}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(540),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(540);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(540);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(540);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(539);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(539),i=n(692),o=n(693),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(918),i=n(1919),o=n(252),a=n(919),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r,i=n(1920),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(225)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(1923),i=n(539),o=n(692);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(1924),i=n(1925),o=n(1926),a=n(1927),s=n(1928);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(541);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(541),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(541),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(541),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(542);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(542);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(542);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(542);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(357),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(543),i=n(384);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(383),i=n(316),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(383),i=n(695),o=n(316),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(696),i=n(1942),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(926)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(543),i=n(927);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(252),i=n(696),o=n(1945),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(225),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(223)(e))},function(e,t,n){var r=n(543),i=n(698);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t,n){var r=n(543),i=n(930);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(934),i=n(930),o=n(927);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(357)(n(225),"DataView");e.exports=r},function(e,t,n){var r=n(357)(n(225),"Promise");e.exports=r},function(e,t,n){var r=n(357)(n(225),"Set");e.exports=r},function(e,t,n){var r=n(357)(n(225),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(699),i=n(1957),o=n(1958),a=n(1959),s=n(1960),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",f="[object RegExp]",p="[object Set]",h="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",k="[object Uint8Array]",x="[object Uint8ClampedArray]",S="[object Uint16Array]",T="[object Uint32Array]";e.exports=function(e,t,n){var C=e.constructor;switch(t){case g:return r(e);case l:case c:return new C(+e);case v:return i(e,n);case y:case b:case _:case w:case E:case k:case x:case S:case T:return s(e,n);case u:return new C;case d:case h:return new C(e);case f:return o(e);case p:return new C;case m:return a(e)}}},function(e,t,n){var r=n(699);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(457),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t,n){var r=n(699);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(1962),i=n(932),o=n(696);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(252),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t,n){var r=n(1964),i=n(544),o=n(545),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(546),i=n(316),o="[object Map]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(1966),i=n(544),o=n(545),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(546),i=n(316),o="[object Set]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(45),i=n(1968);e.exports=i(r)},function(e,t,n){var r=n(1969),i=n(34);e.exports=i(function(e,t){for(var n,i,o=new r,a=[],s=0;s<t.length;)n=e(i=t[s]),o.add(n)&&a.push(i),s+=1;return a})},function(e,t,n){var r=n(379);e.exports=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function t(e,t,n){var i,o=typeof e;switch(o){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?e in n._items[o]||(t&&(n._items[o][e]=!0),!1):(t&&(n._items[o]={},n._items[o][e]=!0),!1);case"boolean":if(o in n._items){var a=e?1:0;return!!n._items[o][a]||(t&&(n._items[o][a]=!0),!1)}return t&&(n._items[o]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(i=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===i):n._nativeSet.has(e):o in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1);case"undefined":return!!n._items[o]||(t&&(n._items[o]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(e))in n._items?!!r(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}return e.prototype.add=function(e){return!t(e,!0,this)},e.prototype.has=function(e){return t(e,!1,this)},e}()},function(e,t,n){var r=n(129),i=n(250);e.exports=r(function(e,t,n){var r,o={};for(r in t)i(r,t)&&(o[r]=i(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)i(r,n)&&!i(r,o)&&(o[r]=n[r]);return o})},function(e,t,n){var r=n(1972),i=n(1980);e.exports=function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.apply(this,i(arguments))}},function(e,t,n){var r=n(538),i=n(1973),o=n(1974),a=n(1978);e.exports=function(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return r(arguments[0].length,o(i,arguments[0],a(arguments)))}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(938)(n(1975));e.exports=r},function(e,t,n){var r=n(1976),i=n(1977),o=n(937);function a(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function s(e,t,n,r){return e["@@transducer/result"](n[r](o(e["@@transducer/step"],e),t))}var l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";e.exports=function(e,t,n){if("function"==typeof e&&(e=i(e)),r(n))return function(e,t,n){for(var r=0,i=n.length;r<i;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}(e,t,n);if("function"==typeof n["fantasy-land/reduce"])return s(e,t,n,"fantasy-land/reduce");if(null!=n[l])return a(e,t,n[l]());if("function"==typeof n.next)return a(e,t,n);if("function"==typeof n.reduce)return s(e,t,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}},function(e,t,n){var r=n(355),i=n(939),o=n(940),a=r(function(e){return!!i(e)||!!e&&("object"==typeof e&&(!o(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=a},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(941),i=n(355)(r("tail",n(1979)(1,1/0)));e.exports=i},function(e,t,n){var r=n(941),i=n(938)(r("slice",function(e,t,n){return Array.prototype.slice.call(n,e,t)}));e.exports=i},function(e,t,n){var r=n(355),i=n(940),o=r(function(e){return i(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});e.exports=o},function(e,t,n){var r=n(356)(function e(t,n){var r,i,o,a={};for(i in n)o=typeof(r=t[i]),a[i]="function"===o?r(n[i]):r&&"object"===o?e(r,n[i]):n[i];return a});e.exports=r},function(e,t,n){var r=n(1983),i=n(701),o=n(945),a=n(289)("socket.io-client");e.exports=t=l;var s=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i=r(e),l=i.source,c=i.id,u=i.path,d=s[c]&&u in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(a("ignoring socket cache for %s",l),n=o(l,t)):(s[c]||(a("new io instance for %s",l),s[c]=o(l,t)),n=s[c]),i.query&&!t.query&&(t.query=i.query),n.socket(i.path,t)}t.protocol=i.protocol,t.connect=l,t.Manager=n(945),t.Socket=n(950)},function(e,t,n){(function(t){var r=n(942),i=n(289)("socket.io-client:url");e.exports=function(e,n){var o=e;n=n||t.location,null==e&&(e=n.protocol+"//"+n.host);"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),i("parse %s",e),o=r(e));o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443"));o.path=o.path||"/";var a=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+a+":"+o.port,o.href=o.protocol+"://"+a+(n&&n.port===o.port?"":":"+o.port),o}}).call(this,n(69))},function(e,t,n){var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;l++;var i=t.formatters[r];if("function"==typeof i){var o=a[l];n=i.call(e,o),a.splice(l,1),l--}return n}),t.formatArgs.call(e,a),(n.log||t.log||console.log.bind(console)).apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1985),t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=60*n,i=60*r,o=24*i,a=365.25*o;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var l,c=typeof e;if("string"===c&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*o;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?s(l=e,o,"day")||s(l,i,"hour")||s(l,r,"minute")||s(l,n,"second")||l+" ms":function(e){if(e>=o)return Math.round(e/o)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(e){var r=n(1988),i=n(944),o=Object.prototype.toString,a="function"==typeof e.Blob||"[object BlobConstructor]"===o.call(e.Blob),s="function"==typeof e.File||"[object FileConstructor]"===o.call(e.File);t.deconstructPacket=function(e){var t=[],n=e.data,o=e;return o.data=function e(t,n){if(!t)return t;if(i(t)){var o={_placeholder:!0,num:n.length};return n.push(t),o}if(r(t)){for(var a=new Array(t.length),s=0;s<t.length;s++)a[s]=e(t[s],n);return a}if("object"==typeof t&&!(t instanceof Date)){var a={};for(var l in t)a[l]=e(t[l],n);return a}return t}(n,t),o.attachments=t.length,{packet:o,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&t._placeholder)return n[t.num];if(r(t))for(var i=0;i<t.length;i++)t[i]=e(t[i],n);else if("object"==typeof t)for(var o in t)t[o]=e(t[o],n);return t}(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,o=e;!function e(l,c,u){if(!l)return l;if(a&&l instanceof Blob||s&&l instanceof File){n++;var d=new FileReader;d.onload=function(){u?u[c]=this.result:o=this.result,--n||t(o)},d.readAsArrayBuffer(l)}else if(r(l))for(var f=0;f<l.length;f++)e(l[f],f,l);else if("object"==typeof l&&!i(l))for(var p in l)e(l[p],p,l)}(o),n||t(o)}}).call(this,n(69))},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(1990),e.exports.parser=n(386)},function(e,t,n){(function(t){var r=n(946),i=n(385),o=n(289)("engine.io-client:socket"),a=n(949),s=n(386),l=n(942),c=n(547);function u(e,n){if(!(this instanceof u))return new u(e,n);n=n||{},e&&"object"==typeof e&&(n=e,e=null),e?(e=l(e),n.hostname=e.host,n.secure="https"===e.protocol||"wss"===e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var r="object"==typeof t&&t;r.global===r&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=u,u.priorWebsocketSuccess=!1,i(u.prototype),u.protocol=s.protocol,u.Socket=u,u.Transport=n(703),u.transports=n(946),u.parser=n(386),u.prototype.createTransport=function(e){o('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0})},u.prototype.open=function(){var e;if(this.rememberUpgrade&&u.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},u.prototype.setTransport=function(e){o("setting transport %s",e.name);var t=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},u.prototype.probe=function(e){o('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;u.priorWebsocketSuccess="websocket"===t.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),f(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())})}else{o('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}}))}function a(){n||(n=!0,f(),t.close(),t=null)}function s(n){var i=new Error("probe error: "+n);i.transport=t.name,a(),o('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",i)}function l(){s("transport closed")}function c(){s("socket closed")}function d(e){t&&e.name!==t.name&&(o('"%s" works - aborting "%s"',e.name,t.name),a())}function f(){t.removeListener("open",i),t.removeListener("error",s),t.removeListener("close",l),r.removeListener("close",c),r.removeListener("upgrading",d)}u.priorWebsocketSuccess=!1,t.once("open",i),t.once("error",s),t.once("close",l),this.once("close",c),this.once("upgrading",d),t.open()},u.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",u.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},u.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o('packet received with socket readyState "%s"',this.readyState)},u.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},u.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},u.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){o("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},u.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},u.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},u.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},u.prototype.write=u.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},u.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},u.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():t()}):this.upgrading?r():t()}function t(){e.onClose("forced close"),o("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},u.prototype.onError=function(e){o("socket error %j",e),u.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},u.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){o('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},u.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~a(this.transports,e[n])&&t.push(e[n]);return t}}).call(this,n(69))},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){(function(t){var r=n(702),i=n(947),o=n(385),a=n(548),s=n(289)("engine.io-client:polling-xhr");function l(){}function c(e){if(i.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,t.location){var n="https:"===location.protocol,r=location.port;r||(r=n?443:80),this.xd=e.hostname!==t.location.hostname||r!==e.port,this.xs=e.secure!==n}}function u(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function d(){for(var e in u.requests)u.requests.hasOwnProperty(e)&&u.requests[e].abort()}e.exports=c,e.exports.Request=u,a(c,i),c.prototype.supportsBinary=!0,c.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new u(e)},c.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},c.prototype.doPoll=function(){s("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},o(u.prototype),u.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new r(e),i=this;try{s("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.extraHeaders[o])}catch(e){}if("POST"===this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{n.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in n&&(n.withCredentials=!0),this.requestTimeout&&(n.timeout=this.requestTimeout),this.hasXDR()?(n.onload=function(){i.onLoad()},n.onerror=function(){i.onError(n.responseText)}):n.onreadystatechange=function(){if(2===n.readyState){var e;try{e=n.getResponseHeader("Content-Type")}catch(e){}"application/octet-stream"===e&&(n.responseType="arraybuffer")}4===n.readyState&&(200===n.status||1223===n.status?i.onLoad():setTimeout(function(){i.onError(n.status)},0))},s("xhr data %s",this.data),n.send(this.data)}catch(e){return void setTimeout(function(){i.onError(e)},0)}t.document&&(this.index=u.requestsCount++,u.requests[this.index]=this)},u.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},u.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},u.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},u.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=l:this.xhr.onreadystatechange=l,e)try{this.xhr.abort()}catch(e){}t.document&&delete u.requests[this.index],this.xhr=null}},u.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e="application/octet-stream"===t&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},u.prototype.hasXDR=function(){return void 0!==t.XDomainRequest&&!this.xs&&this.enablesXDR},u.prototype.abort=function(){this.cleanup()},u.requestsCount=0,u.requests={},t.document&&(t.attachEvent?t.attachEvent("onunload",d):t.addEventListener&&t.addEventListener("beforeunload",d,!1))}).call(this,n(69))},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(e,t){function n(){}e.exports=function(e,t,r){var i=!1;return r=r||n,o.count=e,0===e?t():o;function o(e,n){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(i=!0,t(e),t=r):0!==o.count||i||t(null,n)}}},function(e,t,n){(function(e,r){var i;/*! https://mths.be/utf8js v2.1.2 by @mathias */!function(o){var a=t,s=(e&&e.exports,"object"==typeof r&&r);s.global!==s&&s.window;var l,c,u,d=String.fromCharCode;function f(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function p(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function h(e,t){return d(e>>t&63|128)}function m(e,t){if(0==(4294967168&e))return d(e);var n="";return 0==(4294965248&e)?n=d(e>>6&31|192):0==(4294901760&e)?(p(e,t)||(e=65533),n=d(e>>12&15|224),n+=h(e,6)):0==(4292870144&e)&&(n=d(e>>18&7|240),n+=h(e,12),n+=h(e,6)),n+=d(63&e|128)}function g(){if(u>=c)throw Error("Invalid byte index");var e=255&l[u];if(u++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function v(e){var t,n;if(u>c)throw Error("Invalid byte index");if(u==c)return!1;if(t=255&l[u],u++,0==(128&t))return t;if(192==(224&t)){if((n=(31&t)<<6|g())>=128)return n;throw Error("Invalid continuation byte")}if(224==(240&t)){if((n=(15&t)<<12|g()<<6|g())>=2048)return p(n,e)?n:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(n=(7&t)<<18|g()<<12|g()<<6|g())>=65536&&n<=1114111)return n;throw Error("Invalid UTF-8 detected")}var y={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=f(e),i=r.length,o=-1,a="";++o<i;)a+=m(r[o],n);return a},decode:function(e,t){var n=!1!==(t=t||{}).strict;l=f(e),c=l.length,u=0;for(var r,i=[];!1!==(r=v(n));)i.push(r);return function(e){for(var t,n=e.length,r=-1,i="";++r<n;)(t=e[r])>65535&&(i+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=d(t);return i}(i)}};void 0===(i=function(){return y}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(223)(e),n(69))},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r<e.length;r++)n[e.charCodeAt(r)]=r;t.encode=function(t){var n,r=new Uint8Array(t),i=r.length,o="";for(n=0;n<i;n+=3)o+=e[r[n]>>2],o+=e[(3&r[n])<<4|r[n+1]>>4],o+=e[(15&r[n+1])<<2|r[n+2]>>6],o+=e[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(e){var t,r,i,o,a,s=.75*e.length,l=e.length,c=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var u=new ArrayBuffer(s),d=new Uint8Array(u);for(t=0;t<l;t+=4)r=n[e.charCodeAt(t)],i=n[e.charCodeAt(t+1)],o=n[e.charCodeAt(t+2)],a=n[e.charCodeAt(t+3)],d[c++]=r<<2|i>>4,d[c++]=(15&i)<<4|o>>2,d[c++]=(3&o)<<6|63&a;return u}}()},function(e,t,n){(function(t){var n=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),i=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),o=n&&n.prototype.append&&n.prototype.getBlob;function a(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}e[t]=r}}}function s(e,t){t=t||{};var r=new n;a(e);for(var i=0;i<e.length;i++)r.append(e[i]);return t.type?r.getBlob(t.type):r.getBlob()}function l(e,t){return a(e),new Blob(e,t||{})}e.exports=r?i?t.Blob:l:o?s:void 0}).call(this,n(69))},function(e,t,n){(function(t){var r=n(947),i=n(548);e.exports=c;var o,a=/\n/g,s=/\\n/g;function l(){}function c(e){r.call(this,e),this.query=this.query||{},o||(t.___eio||(t.___eio=[]),o=t.___eio),this.index=o.length;var n=this;o.push(function(e){n.onData(e)}),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=l)},!1)}i(c,r),c.prototype.supportsBinary=!1,c.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},c.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},c.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=l,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function c(){u(),t()}function u(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),u(),e=e.replace(s,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&c()}:this.iframe.onload=c}}).call(this,n(69))},function(e,t,n){(function(t){var r,i=n(703),o=n(386),a=n(547),s=n(548),l=n(948),c=n(289)("engine.io-client:websocket"),u=t.WebSocket||t.MozWebSocket;if("undefined"==typeof window)try{r=n(2001)}catch(e){}var d=u;function f(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=u&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=r),i.call(this,e)}d||"undefined"!=typeof window||(d=r),e.exports=f,s(f,i),f.prototype.name="websocket",f.prototype.supportsBinary=!0,f.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?t?new d(e,t):new d(e):new d(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},f.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},f.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,i=0,a=r;i<a;i++)!function(e){o.encodePacket(e,n.supportsBinary,function(i){if(!n.usingBrowserWebSocket){var o={};if(e.options&&(o.compress=e.options.compress),n.perMessageDeflate)("string"==typeof i?t.Buffer.byteLength(i):i.length)<n.perMessageDeflate.threshold&&(o.compress=!1)}try{n.usingBrowserWebSocket?n.ws.send(i):n.ws.send(i,o)}catch(e){c("websocket closed before onclose event")}--r||s()})}(e[i]);function s(){n.emit("flush"),setTimeout(function(){n.writable=!0,n.emit("drain")},0)}},f.prototype.onClose=function(){i.prototype.onClose.call(this)},f.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},f.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=l()),this.supportsBinary||(e.b64=1),(e=a.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},f.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===f.prototype.name)}}).call(this,n(69))},function(e,t){},function(e,t){e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){var r=n(2005),i=n(356)(function(e,t){return r({},e,t)});e.exports=i},function(e,t,n){var r=n(2006);e.exports="function"==typeof Object.assign?Object.assign:r},function(e,t,n){var r=n(2007);e.exports=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,i=arguments.length;n<i;){var o=arguments[n];if(null!=o)for(var a in o)r(a,o)&&(t[a]=o[a]);n+=1}return t}},function(e,t){e.exports=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)}},function(e,t,n){var r=n(356)(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n});e.exports=r},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,d=26,f=38,p=700,h=72,m=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,E=Math.floor,k=String.fromCharCode;function x(e){throw new RangeError(_[e])}function S(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+S((e=e.replace(b,".")).split("."),t).join(".")}function C(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function O(e){return S(e,function(e){var t="";return e>65535&&(t+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=k(e)}).join("")}function A(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?E(e/p):e>>1,e+=E(e/t);e>w*d>>1;r+=c)e=E(e/w);return E(r+(w+1)*e/(e+f))}function I(e){var t,n,r,i,o,a,s,f,p,v,y,b=[],_=e.length,w=0,k=m,S=h;for((n=e.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&x("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<_;){for(o=w,a=1,s=c;i>=_&&x("invalid-input"),((f=(y=e.charCodeAt(i++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||f>E((l-w)/a))&&x("overflow"),w+=f*a,!(f<(p=s<=S?u:s>=S+d?d:s-S));s+=c)a>E(l/(v=c-p))&&x("overflow"),a*=v;S=N(w-o,t=b.length+1,0==o),E(w/t)>l-k&&x("overflow"),k+=E(w/t),w%=t,b.splice(w++,0,k)}return O(b)}function M(e){var t,n,r,i,o,a,s,f,p,v,y,b,_,w,S,T=[];for(b=(e=C(e)).length,t=m,n=0,o=h,a=0;a<b;++a)(y=e[a])<128&&T.push(k(y));for(r=i=T.length,i&&T.push(g);r<b;){for(s=l,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>E((l-n)/(_=r+1))&&x("overflow"),n+=(s-t)*_,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>l&&x("overflow"),y==t){for(f=n,p=c;!(f<(v=p<=o?u:p>=o+d?d:p-o));p+=c)S=f-v,w=c-v,T.push(k(A(v+S%w,0))),f=E(S/w);T.push(k(A(f,0))),o=N(n,_,r==i),n=0,++r}++n,++t}return T.join("")}s={version:"1.4.1",ucs2:{decode:C,encode:O},decode:I,encode:M,toASCII:function(e){return T(e,function(e){return y.test(e)?"xn--"+M(e):e})},toUnicode:function(e){return T(e,function(e){return v.test(e)?I(e.slice(4).toLowerCase()):e})}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(223)(e),n(69))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(2012),t.encode=t.stringify=n(2013)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var d,f,p,h,m=e[u].replace(s,"%20"),g=m.indexOf(n);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),p=decodeURIComponent(d),h=decodeURIComponent(f),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t){e.exports=function(e){var t=e.data,n=e.message,r=e.name,i=e.status,o=new Error(n);return o.data=t,o.name=r,o.status=i,o}},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){var t=function(n,r){this.id=++e.FE.ID;var i={};r&&r.documentReady&&(i.toolbarButtons=["fullscreen","undo","redo","getPDF","print","|","bold","italic","underline","color","clearFormatting","|","alignLeft","alignCenter","alignRight","alignJustify","|","formatOL","formatUL","indent","outdent","-","paragraphFormat","|","fontFamily","|","fontSize","|","insertLink","insertImage","quote"],i.paragraphFormatSelection=!0,i.fontFamilySelection=!0,i.fontSizeSelection=!0,i.placeholderText="",i.quickInsertEnabled=!1,i.charCounterCount=!1),this.opts=e.extend(!0,{},e.extend({},t.DEFAULTS,i,"object"==typeof r&&r));var o=JSON.stringify(this.opts);e.FE.OPTS_MAPPING[o]=e.FE.OPTS_MAPPING[o]||this.id,this.sid=e.FE.OPTS_MAPPING[o],e.FE.SHARED[this.sid]=e.FE.SHARED[this.sid]||{},this.shared=e.FE.SHARED[this.sid],this.shared.count=(this.shared.count||0)+1,this.$oel=e(n),this.$oel.data("froala.editor",this),this.o_doc=n.ownerDocument,this.o_win="defaultView"in this.o_doc?this.o_doc.defaultView:this.o_doc.parentWindow;var a=e(this.o_win).scrollTop();this.$oel.on("froala.doInit",e.proxy(function(){this.$oel.off("froala.doInit"),this.doc=this.$el.get(0).ownerDocument,this.win="defaultView"in this.doc?this.doc.defaultView:this.doc.parentWindow,this.$doc=e(this.doc),this.$win=e(this.win),this.opts.pluginsEnabled||(this.opts.pluginsEnabled=Object.keys(e.FE.PLUGINS)),this.opts.initOnClick?(this.load(e.FE.MODULES),this.$el.on("touchstart.init",function(){e(this).data("touched",!0)}),this.$el.on("touchmove.init",function(){e(this).removeData("touched")}),this.$el.on("mousedown.init touchend.init dragenter.init focus.init",e.proxy(function(t){if("touchend"==t.type&&!this.$el.data("touched"))return!0;if(1===t.which||!t.which){this.$el.off("mousedown.init touchstart.init touchmove.init touchend.init dragenter.init focus.init"),this.load(e.FE.MODULES),this.load(e.FE.PLUGINS);var n=t.originalEvent&&t.originalEvent.originalTarget;n&&"IMG"==n.tagName&&e(n).trigger("mousedown"),void 0===this.ul&&this.destroy(),"touchend"==t.type&&this.image&&t.originalEvent&&t.originalEvent.target&&e(t.originalEvent.target).is("img")&&setTimeout(e.proxy(function(){this.image.edit(e(t.originalEvent.target))},this),100),this.ready=!0,this.events.trigger("initialized")}},this)),this.events.trigger("initializationDelayed")):(this.load(e.FE.MODULES),this.load(e.FE.PLUGINS),e(this.o_win).scrollTop(a),void 0===this.ul&&this.destroy(),this.ready=!0,this.events.trigger("initialized"))},this)),this._init()};t.DEFAULTS={initOnClick:!1,pluginsEnabled:null},t.MODULES={},t.PLUGINS={},t.VERSION="2.9.5",t.INSTANCES=[],t.OPTS_MAPPING={},t.SHARED={},t.ID=0,t.prototype._init=function(){var t=this.$oel.prop("tagName");this.$oel.closest("label").length;var n=e.proxy(function(){"TEXTAREA"!=t&&(this._original_html=this._original_html||this.$oel.html()),this.$box=this.$box||this.$oel,this.opts.fullPage&&(this.opts.iframe=!0),this.opts.iframe?(this.$iframe=e('<iframe src="about:blank" frameBorder="0">'),this.$wp=e("<div></div>"),this.$box.html(this.$wp),this.$wp.append(this.$iframe),this.$iframe.get(0).contentWindow.document.open(),this.$iframe.get(0).contentWindow.document.write("<!DOCTYPE html>"),this.$iframe.get(0).contentWindow.document.write("<html><head></head><body></body></html>"),this.$iframe.get(0).contentWindow.document.close(),this.$el=this.$iframe.contents().find("body"),this.el=this.$el.get(0),this.$head=this.$iframe.contents().find("head"),this.$html=this.$iframe.contents().find("html"),this.iframe_document=this.$iframe.get(0).contentWindow.document):(this.$el=e("<div></div>"),this.el=this.$el.get(0),this.$wp=e("<div></div>").append(this.$el),this.$box.html(this.$wp)),this.$oel.trigger("froala.doInit")},this),r=e.proxy(function(){this.$box=e("<div>"),this.$oel.before(this.$box).hide(),this._original_html=this.$oel.val(),this.$oel.parents("form").on("submit."+this.id,e.proxy(function(){this.events.trigger("form.submit")},this)),this.$oel.parents("form").on("reset."+this.id,e.proxy(function(){this.events.trigger("form.reset")},this)),n()},this),i=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.$el.attr("contenteditable",!0).css("outline","none").css("display","inline-block"),this.opts.multiLine=!1,this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),o=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.trigger("froala.doInit")},this),a=e.proxy(function(){this.$el=this.$oel,this.el=this.$el.get(0),this.opts.toolbarInline=!1,this.$oel.on("click.popup",function(e){e.preventDefault()}),this.$oel.trigger("froala.doInit")},this);this.opts.editInPopup?a():"TEXTAREA"==t?r():"A"==t?i():"IMG"==t?o():"BUTTON"==t||"INPUT"==t?(this.opts.editInPopup=!0,this.opts.toolbarInline=!1,a()):n()},t.prototype.load=function(t){for(var n in t)if(t.hasOwnProperty(n)){if(this[n])continue;if(e.FE.PLUGINS[n]&&this.opts.pluginsEnabled.indexOf(n)<0)continue;if(this[n]=new t[n](this),this[n]._init&&(this[n]._init(),this.opts.initOnClick&&"core"==n))return!1}},t.prototype.destroy=function(){this.destroying=!0,this.shared.count--,this.events.$off();var t=this.html.get();if(this.opts.iframe&&(this.events.disableBlur(),this.win.focus(),this.events.enableBlur()),this.events.trigger("destroy",[],!0),this.events.trigger("shared.destroy",void 0,!0),0===this.shared.count){for(var n in this.shared)this.shared.hasOwnProperty(n)&&(this.shared[n],e.FE.SHARED[this.sid][n]=null);delete e.FE.SHARED[this.sid]}this.$oel.parents("form").off("."+this.id),this.$oel.off("click.popup"),this.$oel.removeData("froala.editor"),this.$oel.off("froalaEditor"),this.core.destroy(t),e.FE.INSTANCES.splice(e.FE.INSTANCES.indexOf(this),1)},e.fn.froalaEditor=function(n){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);if("string"==typeof n){var o=[];return this.each(function(){var t=e(this).data("froala.editor");if(t){var i,a;if(0<n.indexOf(".")&&t[n.split(".")[0]]?(t[n.split(".")[0]]&&(i=t[n.split(".")[0]]),a=n.split(".")[1]):(i=t,a=n.split(".")[0]),!i[a])return e.error("Method "+n+" does not exist in Froala Editor.");var s=i[a].apply(t,r.slice(1));void 0===s?o.push(this):0===o.length&&o.push(s)}}),1==o.length?o[0]:o}if("object"==typeof n||!n)return this.each(function(){e(this).data("froala.editor")||new t(this,n)})},e.fn.froalaEditor.Constructor=t,e.FroalaEditor=t,e.FE=t,e.FE.XS=0,e.FE.SM=1,e.FE.MD=2,e.FE.LG=3,e.FE.LinkRegExCommon="[a-z\\u0080-\\u009f\\u00a1-\\uffff0-9-_.]{1,}",e.FE.LinkRegExEnd="((:[0-9]{1,5})|)(((\\/|\\?|#)[a-z\\u00a1-\\uffff0-9@?\\|!^=%&amp;/~+#-\\'*-_{}]*)|())",e.FE.LinkRegExTLD="(("+e.FE.LinkRegExCommon+")(\\.(com|net|org|edu|mil|gov|co|biz|info|me|dev)))",e.FE.LinkRegExHTTP="((ftp|http|https):\\/\\/"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExAuth="((ftp|http|https):\\/\\/[\\u0021-\\uffff]{1,}@"+e.FE.LinkRegExCommon+")",e.FE.LinkRegExWWW="(www\\."+e.FE.LinkRegExCommon+"\\.[a-z0-9-]{2,24})",e.FE.LinkRegEx="("+e.FE.LinkRegExTLD+"|"+e.FE.LinkRegExHTTP+"|"+e.FE.LinkRegExWWW+"|"+e.FE.LinkRegExAuth+")"+e.FE.LinkRegExEnd,e.FE.LinkProtocols=["mailto","tel","sms","notes","data"],e.FE.MAIL_REGEX=/.+@.+\..+/i,e.FE.MODULES.helpers=function(t){function n(){return/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&!o()}function r(){return/(Android)/g.test(navigator.userAgent)&&!o()}function i(){return/(Blackberry)/g.test(navigator.userAgent)}function o(){return/(Windows Phone)/gi.test(navigator.userAgent)}function a(e){return parseInt(e,10)||0}var s,l=null;return{_init:function(){t.browser=function(){var e,t,n={},r=(t=-1,"Microsoft Internet Explorer"==navigator.appName?(e=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(e=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))),t);if(0<r)n.msie=!0;else{var i=navigator.userAgent.toLowerCase(),o=/(edge)[ \/]([\w.]+)/.exec(i)||/(chrome)[ \/]([\w.]+)/.exec(i)||/(webkit)[ \/]([\w.]+)/.exec(i)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(i)||/(msie) ([\w.]+)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(i)||[],a=o[1]||"";o[2],o[1]&&(n[a]=!0),n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0)}return n.msie&&(n.version=r),n}(),function(){function e(e,t){var i=e[t];e[t]=function(e){var t,o=!1,a=!1;if(e&&e.match(r)){e=e.replace(r,""),this.parentNode||(n.appendChild(this),a=!0);var s=this.parentNode;return this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),o=!0),t=i.call(s,"#"+this.id+" "+e),o&&(this.id=""),a&&n.removeChild(this),t}return i.call(this,e)}}var n=t.o_doc.createElement("div");try{n.querySelectorAll(":scope *")}catch(t){var r=/^\s*:scope/gi;e(Element.prototype,"querySelector"),e(Element.prototype,"querySelectorAll"),e(HTMLElement.prototype,"querySelector"),e(HTMLElement.prototype,"querySelectorAll")}}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!t)return null;if(!document.documentElement.contains(this))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},isIOS:n,isMac:function(){return null==l&&(l=0<=navigator.platform.toUpperCase().indexOf("MAC")),l},isAndroid:r,isBlackberry:i,isWindowsPhone:o,isMobile:function(){return r()||n()||i()},isEmail:function(t){return!/^(https?:|ftps?:|)\/\//i.test(t)&&e.FE.MAIL_REGEX.test(t)},requestAnimationFrame:function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}},getPX:a,screenSize:function(){var t=e('<div class="fr-visibility-helper"></div>').appendTo("body:first");try{var n=a(t.css("margin-left"));return t.remove(),n}catch(t){return e.FE.LG}},isTouch:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch},sanitizeURL:function(t){return/^(https?:|ftps?:|)\/\//i.test(t)?t:/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(t)?t:new RegExp("^("+e.FE.LinkProtocols.join("|")+"):\\/\\/","i").test(t)?t:t=encodeURIComponent(t).replace(/%23/g,"#").replace(/%2F/g,"/").replace(/%25/g,"%").replace(/mailto%3A/gi,"mailto:").replace(/file%3A/gi,"file:").replace(/sms%3A/gi,"sms:").replace(/tel%3A/gi,"tel:").replace(/notes%3A/gi,"notes:").replace(/data%3Aimage/gi,"data:image").replace(/blob%3A/gi,"blob:").replace(/%3A(\d)/gi,":$1").replace(/webkit-fake-url%3A/gi,"webkit-fake-url:").replace(/%3F/g,"?").replace(/%3D/g,"=").replace(/%26/g,"&").replace(/&amp;/g,"&").replace(/%2C/g,",").replace(/%3B/g,";").replace(/%2B/g,"+").replace(/%40/g,"@").replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%7B/g,"{").replace(/%7D/g,"}")},isArray:function(e){return e&&!e.propertyIsEnumerable("length")&&"object"==typeof e&&"number"==typeof e.length},RGBToHex:function(e){function t(e){return("0"+parseInt(e,10).toString(16)).slice(-2)}try{return e&&"transparent"!==e?/^#[0-9A-F]{6}$/i.test(e)?e:("#"+t((e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/))[1])+t(e[2])+t(e[3])).toUpperCase():""}catch(e){return null}},HEXtoRGB:function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?"rgb("+parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16)+")":""},isURL:function(t){return!!/^(https?:|ftps?:|)\/\//i.test(t)&&(t=String(t).replace(/</g,"%3C").replace(/>/g,"%3E").replace(/"/g,"%22").replace(/ /g,"%20"),new RegExp("^"+e.FE.LinkRegExHTTP+e.FE.LinkRegExEnd+"$","gi").test(t))},getAlignment:function(n){var r=(n.css("text-align")||"").replace(/-(.*)-/g,"");if(["left","right","justify","center"].indexOf(r)<0){if(!s){var i=e('<div dir="'+("rtl"==t.opts.direction?"rtl":"auto")+'" style="text-align: '+t.$el.css("text-align")+'; position: fixed; left: -3000px;"><span id="s1">.</span><span id="s2">.</span></div>');e("body:first").append(i);var o=i.find("#s1").get(0).getBoundingClientRect().left,a=i.find("#s2").get(0).getBoundingClientRect().left;i.remove(),s=o<a?"left":"right"}r=s}return r},scrollTop:function(){return t.o_win.pageYOffset?t.o_win.pageYOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollTop?t.o_doc.documentElement.scrollTop:t.o_doc.body.scrollTop?t.o_doc.body.scrollTop:0},scrollLeft:function(){return t.o_win.pageXOffset?t.o_win.pageXOffset:t.o_doc.documentElement&&t.o_doc.documentElement.scrollLeft?t.o_doc.documentElement.scrollLeft:t.o_doc.body.scrollLeft?t.o_doc.body.scrollLeft:0},isInViewPort:function(e){var t=e.getBoundingClientRect();return 0<=(t={top:Math.round(t.top),bottom:Math.round(t.bottom)}).top&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)||t.top<=0&&t.bottom>=(window.innerHeight||document.documentElement.clientHeight)}}},e.FE.MODULES.events=function(t){var n,r={};function i(e,t,n){f(e,t,n)}function o(n){if(void 0===n&&(n=!0),!t.$wp)return!1;if(t.helpers.isIOS()){t.$win.get(0).focus();var r=0===t.$win.scrollTop()?1:t.$win.scrollTop();window.scrollTo(0,r)}if(t.core.hasFocus())return!1;if(!t.core.hasFocus()&&n){var i=t.$win.scrollTop();if(t.browser.msie&&t.$box&&t.$box.css("position","fixed"),t.browser.msie&&t.$wp&&t.$wp.css("overflow","visible"),t.browser.msie&&t.$sc&&t.$sc.css("position","fixed"),l(),t.$el.focus(),t.events.trigger("focus"),s(),t.browser.msie&&t.$sc&&t.$sc.css("position",""),t.browser.msie&&t.$box&&t.$box.css("position",""),t.browser.msie&&t.$wp&&t.$wp.css("overflow","auto"),i!=t.$win.scrollTop()&&t.$win.scrollTop(i),!t.selection.info(t.el).atStart)return!1}if(!t.core.hasFocus()||0<t.$el.find(".fr-marker").length)return!1;if(t.selection.info(t.el).atStart&&t.selection.isCollapsed()&&null!=t.html.defaultTag()){var o=t.markers.insert();if(o&&!t.node.blockParent(o)){e(o).remove();var a=t.$el.find(t.html.blockTagsQuery()).get(0);a&&(e(a).prepend(e.FE.MARKERS),t.selection.restore())}else o&&e(o).remove()}}var a=!1;function s(){n=!0}function l(){n=!1}function c(){return n}function u(e,n,i){var o,a=e.split(" ");if(1<a.length){for(var s=0;s<a.length;s++)u(a[s],n,i);return!0}void 0===i&&(i=!1),o=0!==e.indexOf("shared.")?r[e]=r[e]||[]:t.shared._events[e]=t.shared._events[e]||[],i?o.unshift(n):o.push(n)}var d=[];function f(e,n,r,i,o){"function"==typeof r&&(o=i,i=r,r=!1);var a,s=o?t.shared.$_events:d,l=o?t.sid:t.id;a=i,i=function(){if(!t.destroying)return a.apply(this,arguments)},r?e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,r,i):e.on(n.split(" ").join(".ed"+l+" ")+".ed"+l,i),s.push([e,n.split(" ").join(".ed"+l+" ")+".ed"+l])}function p(e){for(var t=0;t<e.length;t++)e[t][0].off(e[t][1])}function h(n,i,o){if(!t.edit.isDisabled()||o){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)if(!1===(s=a[l].apply(t,i)))return!1;return!1!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],i||[])))&&s}}function m(){for(var e in r)r.hasOwnProperty(e)&&delete r[e]}function g(){for(var e in t.shared._events)t.shared._events.hasOwnProperty(e)&&delete t.shared._events[e]}return{_init:function(){t.shared.$_events=t.shared.$_events||[],t.shared._events={},t.helpers.isMobile()?(t._mousedown="touchstart",t._mouseup="touchend",t._move="touchmove",t._mousemove="touchmove"):(t._mousedown="mousedown",t._mouseup="mouseup",t._move="",t._mousemove="mousemove"),i(t.$el,"click mouseup mousedown touchstart touchend dragenter dragover dragleave dragend drop dragstart",function(e){h(e.type,[e])}),u("mousedown",function(){for(var n=0;n<e.FE.INSTANCES.length;n++)e.FE.INSTANCES[n]!=t&&e.FE.INSTANCES[n].popups&&e.FE.INSTANCES[n].popups.areVisible()&&e.FE.INSTANCES[n].$el.find(".fr-marker").remove()}),i(t.$win,t._mousedown,function(e){h("window.mousedown",[e]),s()}),i(t.$win,t._mouseup,function(e){h("window.mouseup",[e])}),i(t.$win,"cut copy keydown keyup touchmove touchend",function(e){h("window."+e.type,[e])}),i(t.$doc,"dragend drop",function(e){h("document."+e.type,[e])}),i(t.$el,"keydown keypress keyup input",function(e){h(e.type,[e])}),i(t.$el,"focus",function(e){c()&&(o(!1),!1===a&&h(e.type,[e]))}),i(t.$el,"blur",function(e){c()&&!0===a&&(h(e.type,[e]),s())}),f(t.$el,"mousedown",'[contenteditable="true"]',function(){l(),t.$el.blur()}),u("focus",function(){a=!0}),u("blur",function(){a=!1}),s(),i(t.$el,"cut copy paste beforepaste",function(e){h(e.type,[e])}),u("destroy",m),u("shared.destroy",g)},on:u,trigger:h,bindClick:function(n,r,i){f(n,t._mousedown,r,function(n){var r,i;t.edit.isDisabled()||(i=e((r=n).currentTarget),t.edit.isDisabled()||t.node.hasClass(i.get(0),"fr-disabled")?r.preventDefault():"mousedown"===r.type&&1!==r.which||(t.helpers.isMobile()||r.preventDefault(),(t.helpers.isAndroid()||t.helpers.isWindowsPhone())&&0===i.parents(".fr-dropdown-menu").length&&(r.preventDefault(),r.stopPropagation()),i.addClass("fr-selected"),t.events.trigger("commands.mousedown",[i])))},!0),f(n,t._mouseup+" "+t._move,r,function(n){t.edit.isDisabled()||function(n,r){var i=e(n.currentTarget);if(t.edit.isDisabled()||t.node.hasClass(i.get(0),"fr-disabled"))return n.preventDefault();if(("mouseup"!==n.type||1===n.which)&&t.node.hasClass(i.get(0),"fr-selected"))if("touchmove"!=n.type){if(n.stopPropagation(),n.stopImmediatePropagation(),n.preventDefault(),!t.node.hasClass(i.get(0),"fr-selected"))return t.button.getButtons(".fr-selected",!0).removeClass("fr-selected");if(t.button.getButtons(".fr-selected",!0).removeClass("fr-selected"),i.data("dragging")||i.attr("disabled"))return i.removeData("dragging");var o=i.data("timeout");o&&(clearTimeout(o),i.removeData("timeout")),r.apply(t,[n])}else i.data("timeout")||i.data("timeout",setTimeout(function(){i.data("dragging",!0)},100))}(n,i)},!0),f(n,"mousedown click mouseup",r,function(e){t.edit.isDisabled()||e.stopPropagation()},!0),u("window.mouseup",function(){t.edit.isDisabled()||(n.find(r).removeClass("fr-selected"),s())}),f(n,"mouseenter",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").addClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").addClass("fr-btn-hover")}),f(n,"mouseleave",r,function(){e(this).hasClass("fr-options")&&e(this).prev(".fr-btn").removeClass("fr-btn-hover"),e(this).next(".fr-btn").hasClass("fr-options")&&e(this).next(".fr-btn").removeClass("fr-btn-hover")})},disableBlur:l,enableBlur:s,blurActive:c,focus:o,chainTrigger:function(n,i,o){if(!t.edit.isDisabled()||o){var a,s;if(0!==n.indexOf("shared."))a=r[n];else{if(0<t.shared.count)return!1;a=t.shared._events[n]}if(a)for(var l=0;l<a.length;l++)void 0!==(s=a[l].apply(t,[i]))&&(i=s);return void 0!==(s=t.$oel.triggerHandler("froalaEditor."+n,e.merge([t],[i])))&&(i=s),i}},$on:f,$off:function(){p(d),d=[],0===t.shared.count&&(p(t.shared.$_events),t.shared.$_events=[])}}},e.FE.MODULES.node=function(t){function n(e){return e&&"IFRAME"!=e.tagName?Array.prototype.slice.call(e.childNodes||[]):[]}function r(t){return!!t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.BLOCK_TAGS.indexOf(t.tagName.toLowerCase())}function i(e){var t={},n=e.attributes;if(n)for(var r=0;r<n.length;r++){var i=n[r];t[i.nodeName]=i.value}return t}function o(e){for(var t="",n=i(e),r=Object.keys(n).sort(),o=0;o<r.length;o++){var a=r[o],s=n[a];s.indexOf("'")<0&&0<=s.indexOf('"')?t+=" "+a+"='"+s+"'":0<=s.indexOf('"')&&0<=s.indexOf("'")?t+=" "+a+'="'+(s=s.replace(/"/g,"&quot;"))+'"':t+=" "+a+'="'+s+'"'}return t}function a(e){return e===t.el}return{isBlock:r,isEmpty:function(i,o){if(!i)return!0;if(i.querySelector("table"))return!1;var a=n(i);1==a.length&&r(a[0])&&(a=n(a[0]));for(var s=!1,l=0;l<a.length;l++){var c=a[l];if(!(o&&t.node.hasClass(c,"fr-marker")||c.nodeType==Node.TEXT_NODE&&0===c.textContent.length)){if("BR"!=c.tagName&&0<(c.textContent||"").replace(/\u200B/gi,"").replace(/\n/g,"").length)return!1;if(s)return!1;"BR"==c.tagName&&(s=!0)}}return!(i.querySelectorAll(e.FE.VOID_ELEMENTS.join(",")).length-i.querySelectorAll("br").length||i.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||1<i.querySelectorAll(e.FE.BLOCK_TAGS.join(",")).length||i.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)"))},blockParent:function(e){for(;e&&e.parentNode!==t.el&&(!e.parentNode||!t.node.hasClass(e.parentNode,"fr-inner"));)if(r(e=e.parentNode))return e;return null},deepestParent:function(n,i,o){if(void 0===i&&(i=[]),void 0===o&&(o=!0),i.push(t.el),0<=i.indexOf(n.parentNode)||n.parentNode&&t.node.hasClass(n.parentNode,"fr-inner")||n.parentNode&&0<=e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)&&o)return null;for(;i.indexOf(n.parentNode)<0&&n.parentNode&&!t.node.hasClass(n.parentNode,"fr-inner")&&(e.FE.SIMPLE_ENTER_TAGS.indexOf(n.parentNode.tagName)<0||!o)&&(!r(n)||!r(n.parentNode)||!o);)n=n.parentNode;return n},rawAttributes:i,attributes:o,clearAttributes:function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--){var r=t[n];e.removeAttribute(r.nodeName)}},openTagString:function(e){return"<"+e.tagName.toLowerCase()+o(e)+">"},closeTagString:function(e){return"</"+e.tagName.toLowerCase()+">"},isFirstSibling:function e(n,r){void 0===r&&(r=!0);for(var i=n.previousSibling;i&&r&&t.node.hasClass(i,"fr-marker");)i=i.previousSibling;return!i||i.nodeType==Node.TEXT_NODE&&""===i.textContent&&e(i)},isLastSibling:function e(n,r){void 0===r&&(r=!0);for(var i=n.nextSibling;i&&r&&t.node.hasClass(i,"fr-marker");)i=i.nextSibling;return!i||i.nodeType==Node.TEXT_NODE&&""===i.textContent&&e(i)},isList:function(e){return!!e&&0<=["UL","OL"].indexOf(e.tagName)},isLink:function(e){return!!e&&e.nodeType==Node.ELEMENT_NODE&&"a"==e.tagName.toLowerCase()},isElement:a,contents:n,isVoid:function(t){return t&&t.nodeType==Node.ELEMENT_NODE&&0<=e.FE.VOID_ELEMENTS.indexOf((t.tagName||"").toLowerCase())},hasFocus:function(e){return e===t.doc.activeElement&&(!t.doc.hasFocus||t.doc.hasFocus())&&!!(a(e)||e.type||e.href||~e.tabIndex)},isEditable:function(e){return(!e.getAttribute||"false"!=e.getAttribute("contenteditable"))&&["STYLE","SCRIPT"].indexOf(e.tagName)<0},isDeletable:function(e){return e&&e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=(e.getAttribute("class")||"").indexOf("fr-deletable")},hasClass:function(t,n){return t instanceof e&&(t=t.get(0)),t&&t.classList&&t.classList.contains(n)},filter:function(e){return t.browser.msie?e:{acceptNode:e}}}},e.FE.INVISIBLE_SPACE="&#8203;",e.FE.START_MARKER='<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.END_MARKER='<span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",e.FE.MARKERS=e.FE.START_MARKER+e.FE.END_MARKER,e.FE.MODULES.markers=function(t){function n(){if(!t.$wp)return null;try{var n=t.selection.ranges(0),r=n.commonAncestorContainer;if(t.core.isEmpty()&&r.textContent!==e("<span>").html(e.FE.INVISIBLE_SPACE).text())return t.selection.setAtStart(t.el),t.$el.find(".fr-marker:first").replaceWith('<span class="fr-single-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>"),t.$el.find(".fr-marker").remove(),t.$el.find(".fr-single-marker").removeClass("fr-single-marker").addClass("fr-marker").get(0);if(r!=t.el&&0===t.$el.find(r).length)return null;var i=n.cloneRange(),o=n.cloneRange();i.collapse(!0);var a=e('<span class="fr-marker" style="display: none; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0];if(i.insertNode(a),a=t.$el.find("span.fr-marker").get(0)){for(var s=a.nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=t.$el.find("span.fr-marker").get(0).nextSibling;return t.selection.clear(),t.selection.get().addRange(o),a}return null}catch(e){}}function r(){t.$el.find(".fr-marker").remove()}return{place:function(n,r,i){var o,a,s;try{var l=n.cloneRange();if(l.collapse(r),l.insertNode(e('<span class="fr-marker" data-id="'+i+'" data-type="'+r+'" style="display: '+(t.browser.safari?"none":"inline-block")+'; line-height: 0;">'+e.FE.INVISIBLE_SPACE+"</span>",t.doc)[0]),!0===r)for(s=(o=t.$el.find('span.fr-marker[data-type="true"][data-id="'+i+'"]').get(0)).nextSibling;s&&s.nodeType===Node.TEXT_NODE&&0===s.textContent.length;)e(s).remove(),s=o.nextSibling;if(!0===r&&!n.collapsed){for(;!t.node.isElement(o.parentNode)&&!s;)e(o.parentNode).after(o),s=o.nextSibling;if(s&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[0],(a=t.node.contents(s))[0]&&t.node.isBlock(a[0]););e(s).prepend(e(o))}}if(!1===r&&!n.collapsed){if((s=(o=t.$el.find('span.fr-marker[data-type="false"][data-id="'+i+'"]').get(0)).previousSibling)&&s.nodeType===Node.ELEMENT_NODE&&t.node.isBlock(s)&&"HR"!==s.tagName){for(a=[s];s=a[a.length-1],(a=t.node.contents(s))[a.length-1]&&t.node.isBlock(a[a.length-1]););e(s).append(e(o))}(o.parentNode&&0<=["TD","TH"].indexOf(o.parentNode.tagName)||!o.previousSibling&&t.node.isBlock(o.parentElement))&&o.parentNode.previousSibling&&!o.previousSibling&&e(o.parentNode.previousSibling).append(o)}var c=t.$el.find('span.fr-marker[data-type="'+r+'"][data-id="'+i+'"]').get(0);return c&&(c.style.display="none"),c}catch(e){return null}},insert:n,split:function(){t.selection.isCollapsed()||t.selection.remove();var r=t.$el.find(".fr-marker").get(0);if(null==r&&(r=n()),null==r)return null;var i=t.node.deepestParent(r);if(i||(i=t.node.blockParent(r))&&"LI"!=i.tagName&&(i=null),i)if(t.node.isBlock(i)&&t.node.isEmpty(i))"LI"!=i.tagName||i.parentNode.firstElementChild!=i||t.node.isEmpty(i.parentNode)?e(i).replaceWith('<span class="fr-marker"></span>'):e(i).append('<span class="fr-marker"></span>');else if(t.cursor.isAtStart(r,i))e(i).before('<span class="fr-marker"></span>'),e(r).remove();else if(t.cursor.isAtEnd(r,i))e(i).after('<span class="fr-marker"></span>'),e(r).remove();else{for(var o=r,a="",s="";o=o.parentNode,a+=t.node.closeTagString(o),s=t.node.openTagString(o)+s,o!=i;);e(r).replaceWith('<span id="fr-break"></span>');var l=t.node.openTagString(i)+e(i).html()+t.node.closeTagString(i);l=l.replace(/<span id="fr-break"><\/span>/g,a+'<span class="fr-marker"></span>'+s),e(i).replaceWith(l)}return t.$el.find(".fr-marker").get(0)},insertAtPoint:function(e){var i,o=e.clientX,a=e.clientY;r();var s=null;if(void 0!==t.doc.caretPositionFromPoint?(i=t.doc.caretPositionFromPoint(o,a),(s=t.doc.createRange()).setStart(i.offsetNode,i.offset),s.setEnd(i.offsetNode,i.offset)):void 0!==t.doc.caretRangeFromPoint&&(i=t.doc.caretRangeFromPoint(o,a),(s=t.doc.createRange()).setStart(i.startContainer,i.startOffset),s.setEnd(i.startContainer,i.startOffset)),null!==s&&void 0!==t.win.getSelection){var l=t.win.getSelection();l.removeAllRanges(),l.addRange(s)}else if(void 0!==t.doc.body.createTextRange)try{(s=t.doc.body.createTextRange()).moveToPoint(o,a);var c=s.duplicate();c.moveToPoint(o,a),s.setEndPoint("EndToEnd",c),s.select()}catch(e){return!1}n()},remove:r}},e.FE.MODULES.selection=function(t){function n(){var e="";return t.win.getSelection?e=t.win.getSelection():t.doc.getSelection?e=t.doc.getSelection():t.doc.selection&&(e=t.doc.selection.createRange().text),e.toString()}function r(){return t.win.getSelection?t.win.getSelection():t.doc.getSelection?t.doc.getSelection():t.doc.selection.createRange()}function i(e){var n=r(),i=[];if(n&&n.getRangeAt&&n.rangeCount){i=[];for(var o=0;o<n.rangeCount;o++)i.push(n.getRangeAt(o))}else i=t.doc.createRange?[t.doc.createRange()]:[];return void 0!==e?i[e]:i}function o(){var e=r();try{e.removeAllRanges?e.removeAllRanges():e.empty?e.empty():e.clear&&e.clear()}catch(e){}}function a(e,t){var n=e;return n.nodeType==Node.ELEMENT_NODE&&0<n.childNodes.length&&n.childNodes[t]&&(n=n.childNodes[t]),n.nodeType==Node.TEXT_NODE&&(n=n.parentNode),n}function s(){if(t.$wp){t.markers.remove();var n,r,o=i(),a=[];for(r=0;r<o.length;r++)if(o[r].startContainer!==t.doc||t.browser.msie){var s=(n=o[r]).collapsed,l=t.markers.place(n,!0,r),c=t.markers.place(n,!1,r);if(void 0!==l&&l||!s||(e(".fr-marker").remove(),t.selection.setAtEnd(t.el)),t.el.normalize(),t.browser.safari&&!s)try{(n=t.doc.createRange()).setStartAfter(l),n.setEndBefore(c),a.push(n)}catch(e){}}if(t.browser.safari&&a.length)for(t.selection.clear(),r=0;r<a.length;r++)t.selection.get().addRange(a[r])}}function l(){var n,i=t.el.querySelectorAll('.fr-marker[data-type="true"]');if(!t.$wp)return t.markers.remove(),!1;if(0===i.length)return!1;if(t.browser.msie||t.browser.edge)for(n=0;n<i.length;n++)i[n].style.display="inline-block";t.core.hasFocus()||t.browser.msie||t.browser.webkit||t.$el.focus(),o();var a=r();for(n=0;n<i.length;n++){var s=e(i[n]).data("id"),l=i[n],u=t.doc.createRange(),d=t.$el.find('.fr-marker[data-type="false"][data-id="'+s+'"]');(t.browser.msie||t.browser.edge)&&d.css("display","inline-block");var f=null;if(0<d.length){d=d[0];try{for(var p,h=!1,m=l.nextSibling;m&&m.nodeType==Node.TEXT_NODE&&0===m.textContent.length;)m=(p=m).nextSibling,e(p).remove();for(var g,v,y=d.nextSibling;y&&y.nodeType==Node.TEXT_NODE&&0===y.textContent.length;)y=(p=y).nextSibling,e(p).remove();if(l.nextSibling==d||d.nextSibling==l){for(var b=l.nextSibling==d?l:d,_=b==l?d:l,w=b.previousSibling;w&&w.nodeType==Node.TEXT_NODE&&0===w.length;)w=(p=w).previousSibling,e(p).remove();if(w&&w.nodeType==Node.TEXT_NODE)for(;w&&w.previousSibling&&w.previousSibling.nodeType==Node.TEXT_NODE;)w.previousSibling.textContent=w.previousSibling.textContent+w.textContent,w=w.previousSibling,e(w.nextSibling).remove();for(var E=_.nextSibling;E&&E.nodeType==Node.TEXT_NODE&&0===E.length;)E=(p=E).nextSibling,e(p).remove();if(E&&E.nodeType==Node.TEXT_NODE)for(;E&&E.nextSibling&&E.nextSibling.nodeType==Node.TEXT_NODE;)E.nextSibling.textContent=E.textContent+E.nextSibling.textContent,E=E.nextSibling,e(E.previousSibling).remove();if(w&&(t.node.isVoid(w)||t.node.isBlock(w))&&(w=null),E&&(t.node.isVoid(E)||t.node.isBlock(E))&&(E=null),w&&E&&w.nodeType==Node.TEXT_NODE&&E.nodeType==Node.TEXT_NODE){e(l).remove(),e(d).remove();var k=w.textContent.length;w.textContent=w.textContent+E.textContent,e(E).remove(),t.opts.htmlUntouched||t.spaces.normalize(w),u.setStart(w,k),u.setEnd(w,k),h=!0}else!w&&E&&E.nodeType==Node.TEXT_NODE?(e(l).remove(),e(d).remove(),t.opts.htmlUntouched||t.spaces.normalize(E),f=e(t.doc.createTextNode("​")),e(E).before(f),u.setStart(E,0),u.setEnd(E,0),h=!0):!E&&w&&w.nodeType==Node.TEXT_NODE&&(e(l).remove(),e(d).remove(),t.opts.htmlUntouched||t.spaces.normalize(w),f=e(t.doc.createTextNode("​")),e(w).after(f),u.setStart(w,w.textContent.length),u.setEnd(w,w.textContent.length),h=!0)}h||((t.browser.chrome||t.browser.edge)&&l.nextSibling==d?(g=c(d,u,!0)||u.setStartAfter(d),v=c(l,u,!1)||u.setEndBefore(l)):(l.previousSibling==d&&(d=(l=d).nextSibling),d.nextSibling&&"BR"===d.nextSibling.tagName||!d.nextSibling&&t.node.isBlock(l.previousSibling)||l.previousSibling&&"BR"==l.previousSibling.tagName||(l.style.display="inline",d.style.display="inline",f=e(t.doc.createTextNode("​"))),g=c(l,u,!0)||e(l).before(f)&&u.setStartBefore(l),v=c(d,u,!1)||e(d).after(f)&&u.setEndAfter(d)),"function"==typeof g&&g(),"function"==typeof v&&v())}catch(e){}}f&&f.remove();try{a.addRange(u)}catch(e){}}t.markers.remove()}function c(n,r,i){var o,a=n.previousSibling,s=n.nextSibling;return a&&s&&a.nodeType==Node.TEXT_NODE&&s.nodeType==Node.TEXT_NODE?(o=a.textContent.length,i?(s.textContent=a.textContent+s.textContent,e(a).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,o)}):(a.textContent=a.textContent+s.textContent,e(s).remove(),e(n).remove(),t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,o)})):a&&!s&&a.nodeType==Node.TEXT_NODE?(o=a.textContent.length,i?(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setStart(a,o)}):(t.opts.htmlUntouched||t.spaces.normalize(a),function(){r.setEnd(a,o)})):!(!s||a||s.nodeType!=Node.TEXT_NODE)&&(i?(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setStart(s,0)}):(t.opts.htmlUntouched||t.spaces.normalize(s),function(){r.setEnd(s,0)}))}function u(){for(var e=i(),t=0;t<e.length;t++)if(!e[t].collapsed)return!1;return!0}function d(e){var n,r,i=!1,o=!1;if(t.win.getSelection){var a=t.win.getSelection();a.rangeCount&&((r=(n=a.getRangeAt(0)).cloneRange()).selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset),i=""===r.toString(),r.selectNodeContents(e),r.setStart(n.endContainer,n.endOffset),o=""===r.toString())}else t.doc.selection&&"Control"!=t.doc.selection.type&&((r=(n=t.doc.selection.createRange()).duplicate()).moveToElementText(e),r.setEndPoint("EndToStart",n),i=""===r.text,r.moveToElementText(e),r.setEndPoint("StartToEnd",n),o=""===r.text);return{atStart:i,atEnd:o}}function f(n,r){void 0===r&&(r=!0);var i=e(n).html();i&&i.replace(/\u200b/g,"").length!=i.length&&e(n).html(i.replace(/\u200b/g,""));for(var o=t.node.contents(n),a=0;a<o.length;a++)o[a].nodeType!=Node.ELEMENT_NODE?e(o[a]).remove():(f(o[a],0===a),0===a&&(r=!1));n.nodeType==Node.TEXT_NODE?e(n).replaceWith('<span data-first="true" data-text="true"></span>'):r&&e(n).attr("data-first",!0)}function p(){return 0===e(this).find("fr-inner").length}function h(){try{if(!t.$wp)return!1;for(var e=i(0).commonAncestorContainer;e&&!t.node.isElement(e);)e=e.parentNode;return!!t.node.isElement(e)}catch(e){return!1}}function m(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var i=n.firstChild;i&&(t.node.isBlock(i)||r&&!t.node.isVoid(i)&&i.nodeType==Node.ELEMENT_NODE);)i=(n=i).firstChild;n.innerHTML=e.FE.MARKERS+n.innerHTML}function g(n,r){if(!n||0<n.getElementsByClassName("fr-marker").length)return!1;for(var i=n.lastChild;i&&(t.node.isBlock(i)||r&&!t.node.isVoid(i)&&i.nodeType==Node.ELEMENT_NODE);)i=(n=i).lastChild;var o=t.doc.createElement("SPAN");for(o.setAttribute("id","fr-sel-markers"),o.innerHTML=e.FE.MARKERS;n.parentNode&&t.opts.htmlAllowedEmptyTags&&0<=t.opts.htmlAllowedEmptyTags.indexOf(n.tagName.toLowerCase());)n=n.parentNode;n.appendChild(o);var a=n.querySelector("#fr-sel-markers");a.outerHTML=a.innerHTML}return{text:n,get:r,ranges:i,clear:o,element:function(){var o=r();try{if(o.rangeCount){var a,s=i(0),l=s.startContainer;if(t.node.isElement(l)&&0===s.startOffset&&l.childNodes.length)for(;l.childNodes.length&&l.childNodes[0].nodeType===Node.ELEMENT_NODE;)l=l.childNodes[0];if(l.nodeType==Node.TEXT_NODE&&s.startOffset==(l.textContent||"").length&&l.nextSibling&&(l=l.nextSibling),l.nodeType==Node.ELEMENT_NODE){var c=!1;if(0<l.childNodes.length&&l.childNodes[s.startOffset]){for(a=l.childNodes[s.startOffset];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;if(a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0),!c&&1<l.childNodes.length&&0<s.startOffset&&l.childNodes[s.startOffset-1]){for(a=l.childNodes[s.startOffset-1];a&&a.nodeType==Node.TEXT_NODE&&0===a.textContent.length;)a=a.nextSibling;a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0)}}else!s.collapsed&&l.nextSibling&&l.nextSibling.nodeType==Node.ELEMENT_NODE&&(a=l.nextSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0);!c&&0<l.childNodes.length&&e(l.childNodes[0]).text().replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&["BR","IMG","HR"].indexOf(l.childNodes[0].tagName)<0&&(l=l.childNodes[0])}for(;l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var u=l;u&&"HTML"!=u.tagName;){if(u==t.el)return l;u=e(u).parent()[0]}}}catch(e){}return t.el},endElement:function(){var o=r();try{if(o.rangeCount){var a,s=i(0),l=s.endContainer;if(l.nodeType==Node.ELEMENT_NODE){var c=!1;0<l.childNodes.length&&l.childNodes[s.endOffset]&&e(l.childNodes[s.endOffset]).text()===n()?(l=l.childNodes[s.endOffset],c=!0):!s.collapsed&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE?(a=l.previousSibling)&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0):!s.collapsed&&0<l.childNodes.length&&l.childNodes[s.endOffset]&&(a=l.childNodes[s.endOffset].previousSibling).nodeType==Node.ELEMENT_NODE&&a&&a.textContent.replace(/\u200B/g,"")===n().replace(/\u200B/g,"")&&(l=a,c=!0),!c&&0<l.childNodes.length&&e(l.childNodes[l.childNodes.length-1]).text()===n()&&["BR","IMG","HR"].indexOf(l.childNodes[l.childNodes.length-1].tagName)<0&&(l=l.childNodes[l.childNodes.length-1])}for(l.nodeType==Node.TEXT_NODE&&0===s.endOffset&&l.previousSibling&&l.previousSibling.nodeType==Node.ELEMENT_NODE&&(l=l.previousSibling);l.nodeType!=Node.ELEMENT_NODE&&l.parentNode;)l=l.parentNode;for(var u=l;u&&"HTML"!=u.tagName;){if(u==t.el)return l;u=e(u).parent()[0]}}}catch(e){}return t.el},save:s,restore:l,isCollapsed:u,isFull:function(){if(u())return!1;t.selection.save();var n,r=t.el.querySelectorAll("td, th, img, br");for(n=0;n<r.length;n++)r[n].nextSibling&&(r[n].innerHTML='<span class="fr-mk">'+e.FE.INVISIBLE_SPACE+"</span>"+r[n].innerHTML);var i=!1,o=d(t.el);for(o.atStart&&o.atEnd&&(i=!0),r=t.el.querySelectorAll(".fr-mk"),n=0;n<r.length;n++)r[n].parentNode.removeChild(r[n]);return t.selection.restore(),i},inEditor:h,remove:function(){if(u())return!0;var n;s();var r=function(t){for(var n=t.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.previousSibling,e(r).remove()}return n},i=function(t){for(var n=t.nextSibling;n&&n.nodeType==Node.TEXT_NODE&&0===n.textContent.length;){var r=n;n=n.nextSibling,e(r).remove()}return n},o=t.$el.find('.fr-marker[data-type="true"]');for(n=0;n<o.length;n++)for(var a=o[n];!(r(a)||t.node.isBlock(a.parentNode)||t.$el.is(a.parentNode)||t.node.hasClass(a.parentNode,"fr-inner"));)e(a.parentNode).before(a);var c=t.$el.find('.fr-marker[data-type="false"]');for(n=0;n<c.length;n++){for(var d=c[n];!(i(d)||t.node.isBlock(d.parentNode)||t.$el.is(d.parentNode)||t.node.hasClass(d.parentNode,"fr-inner"));)e(d.parentNode).after(d);d.parentNode&&t.node.isBlock(d.parentNode)&&t.node.isEmpty(d.parentNode)&&!t.$el.is(d.parentNode)&&!t.node.hasClass(d.parentNode,"fr-inner")&&t.opts.keepFormatOnDelete&&e(d.parentNode).after(d)}if(function(){for(var n=t.$el.find(".fr-marker"),r=0;r<n.length;r++)if(e(n[r]).parentsUntil('.fr-element, [contenteditable="true"]','[contenteditable="false"]').length)return!1;return!0}()){!function n(r,i){var o=t.node.contents(r.get(0));0<=["TD","TH"].indexOf(r.get(0).tagName)&&1==r.find(".fr-marker").length&&t.node.hasClass(o[0],"fr-marker")&&r.attr("data-del-cell",!0);for(var a=0;a<o.length;a++){var s=o[a];t.node.hasClass(s,"fr-marker")?i=(i+1)%2:i?0<e(s).find(".fr-marker").length?i=n(e(s),i):["TD","TH"].indexOf(s.tagName)<0&&!t.node.hasClass(s,"fr-inner")?!t.opts.keepFormatOnDelete||0<t.$el.find("[data-first]").length||t.node.isVoid(s)?e(s).remove():f(s):t.node.hasClass(s,"fr-inner")?0===e(s).find(".fr-inner").length?e(s).html("<br>"):e(s).find(".fr-inner").filter(p).html("<br>"):(e(s).empty(),e(s).attr("data-del-cell",!0)):0<e(s).find(".fr-marker").length&&(i=n(e(s),i))}return i}(t.$el,0);var h=t.$el.find('[data-first="true"]');if(h.length)t.$el.find(".fr-marker").remove(),h.append(e.FE.INVISIBLE_SPACE+e.FE.MARKERS).removeAttr("data-first"),h.attr("data-text")&&h.replaceWith(h.html());else for(t.$el.find("table").filter(function(){return 0<e(this).find("[data-del-cell]").length&&e(this).find("[data-del-cell]").length==e(this).find("td, th").length}).remove(),t.$el.find("[data-del-cell]").removeAttr("data-del-cell"),o=t.$el.find('.fr-marker[data-type="true"]'),n=0;n<o.length;n++){var m=o[n],g=m.nextSibling,v=t.$el.find('.fr-marker[data-type="false"][data-id="'+e(m).data("id")+'"]').get(0);if(v){if(m&&(!g||g!=v)){var y=t.node.blockParent(m),b=t.node.blockParent(v),_=!1,w=!1;if(y&&0<=["UL","OL"].indexOf(y.tagName)&&(_=!(y=null)),b&&0<=["UL","OL"].indexOf(b.tagName)&&(w=!(b=null)),e(m).after(v),y!=b)if(null!=y||_)if(null!=b||w||0!==e(y).parentsUntil(t.$el,"table").length)y&&b&&0===e(y).parentsUntil(t.$el,"table").length&&0===e(b).parentsUntil(t.$el,"table").length&&0===e(y).find(b).length&&0===e(b).find(y).length&&(e(y).append(e(b).html()),e(b).remove());else{for(g=y;!g.nextSibling&&g.parentNode!=t.el;)g=g.parentNode;for(g=g.nextSibling;g&&"BR"!=g.tagName;){var E=g.nextSibling;e(y).append(g),g=E}g&&"BR"==g.tagName&&e(g).remove()}else{var k=t.node.deepestParent(m);k?(e(k).after(e(b).html()),e(b).remove()):0===e(b).parentsUntil(t.$el,"table").length&&(e(m).next().after(e(b).html()),e(b).remove())}}}else v=e(m).clone().attr("data-type",!1),e(m).after(v)}}t.$el.find("li:empty").remove(),t.opts.keepFormatOnDelete||t.html.fillEmptyBlocks(),t.html.cleanEmptyTags(!0),t.opts.htmlUntouched||(t.clean.lists(),t.$el.find("li:empty").append("<br>"),t.spaces.normalize());var x=t.$el.find(".fr-marker:last").get(0),S=t.$el.find(".fr-marker:first").get(0);void 0!==x&&void 0!==S&&!x.nextSibling&&S.previousSibling&&"BR"==S.previousSibling.tagName&&t.node.isElement(x.parentNode)&&t.node.isElement(S.parentNode)&&t.$el.append("<br>"),l()},blocks:function(){var n,o=[],s=r();if(h()&&s.rangeCount){var l=i();for(n=0;n<l.length;n++){var c,u=l[n],d=a(u.startContainer,u.startOffset),f=a(u.endContainer,u.endOffset);(t.node.isBlock(d)||t.node.hasClass(d,"fr-inner"))&&o.indexOf(d)<0&&o.push(d),(c=t.node.blockParent(d))&&o.indexOf(c)<0&&o.push(c);for(var p=[],m=d;m!==f&&m!==t.el;)p.indexOf(m)<0&&m.children&&m.children.length?(p.push(m),m=m.children[0]):m.nextSibling?m=m.nextSibling:m.parentNode&&(m=m.parentNode,p.push(m)),t.node.isBlock(m)&&p.indexOf(m)<0&&o.indexOf(m)<0&&(m!==f||0<u.endOffset)&&o.push(m);t.node.isBlock(f)&&o.indexOf(f)<0&&0<u.endOffset&&o.push(f),(c=t.node.blockParent(f))&&o.indexOf(c)<0&&o.push(c)}}for(n=o.length-1;0<n;n--)e(o[n]).find(o).length&&o.splice(n,1);return o},info:d,setAtEnd:g,setAtStart:m,setBefore:function(n,r){void 0===r&&(r=!0);for(var i=n.previousSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.previousSibling;return i?(t.node.isBlock(i)?g(i):"BR"==i.tagName?e(i).before(e.FE.MARKERS):e(i).after(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?m(n):e(n).before(e.FE.MARKERS),!0)},setAfter:function(n,r){void 0===r&&(r=!0);for(var i=n.nextSibling;i&&i.nodeType==Node.TEXT_NODE&&0===i.textContent.length;)i=i.nextSibling;return i?(t.node.isBlock(i)?m(i):e(i).before(e.FE.MARKERS),!0):!!r&&(t.node.isBlock(n)?g(n):e(n).after(e.FE.MARKERS),!0)},rangeElement:a}},e.extend(e.FE.DEFAULTS,{htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video","wbr"],htmlRemoveTags:["script","style"],htmlAllowedAttrs:["accept","accept-charset","accesskey","action","align","allowfullscreen","allowtransparency","alt","aria-.*","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","data-.*","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap"],htmlAllowedStyleProps:[".*"],htmlAllowComments:!0,htmlUntouched:!1,fullPage:!1}),e.FE.HTML5Map={B:"STRONG",I:"EM",STRIKE:"S"},e.FE.MODULES.clean=function(t){var n,r,i,o;function a(e){if(e.nodeType==Node.ELEMENT_NODE&&e.getAttribute("class")&&0<=e.getAttribute("class").indexOf("fr-marker"))return!1;var n,r=t.node.contents(e),i=[];for(n=0;n<r.length;n++)r[n].nodeType!=Node.ELEMENT_NODE||t.node.isVoid(r[n])?r[n].nodeType==Node.TEXT_NODE&&(r[n].textContent=r[n].textContent.replace(/\u200b/g,"")):r[n].textContent.replace(/\u200b/g,"").length!=r[n].textContent.length&&a(r[n]);if(e.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(e)&&(e.normalize(),r=t.node.contents(e),i=e.querySelectorAll(".fr-marker"),r.length-i.length==0)){for(n=0;n<r.length;n++)if(r[n].nodeType==Node.ELEMENT_NODE&&(r[n].getAttribute("class")||"").indexOf("fr-marker")<0)return!1;for(n=0;n<i.length;n++)e.parentNode.insertBefore(i[n].cloneNode(!0),e);return e.parentNode.removeChild(e),!1}}function s(e,n){if(e.nodeType==Node.COMMENT_NODE)return"\x3c!--"+e.nodeValue+"--\x3e";if(e.nodeType==Node.TEXT_NODE)return n?e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):e.textContent.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\u00A0/g,"&nbsp;").replace(/\u0009/g,"");if(e.nodeType!=Node.ELEMENT_NODE)return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&0<=["STYLE","SCRIPT","NOSCRIPT"].indexOf(e.tagName))return e.outerHTML;if(e.nodeType==Node.ELEMENT_NODE&&"svg"==e.tagName){var r=document.createElement("div"),i=e.cloneNode(!0);return r.appendChild(i),r.innerHTML}if("IFRAME"==e.tagName)return e.outerHTML.replace(/\&lt;/g,"<").replace(/\&gt;/g,">");var o=e.childNodes;if(0===o.length)return e.outerHTML;for(var a="",l=0;l<o.length;l++)"PRE"==e.tagName&&(n=!0),a+=s(o[l],n);return t.node.openTagString(e)+a+t.node.closeTagString(e)}var l=[];function c(e){var t=e.replace(/;;/gi,";");return";"!=(t=t.replace(/^;/gi,"")).charAt(t.length)&&(t+=";"),t}function u(e){var n;for(n in e)if(e.hasOwnProperty(n)){var r=n.match(i),a=null;"style"==n&&t.opts.htmlAllowedStyleProps.length&&(a=e[n].match(o)),r&&a?e[n]=c(a.join(";")):r&&("style"!=n||a)||delete e[n]}for(var s="",l=Object.keys(e).sort(),u=0;u<l.length;u++)e[n=l[u]].indexOf('"')<0?s+=" "+n+'="'+e[n]+'"':s+=" "+n+"='"+e[n]+"'";return s}function d(n,r){var i,o=document.implementation.createHTMLDocument("Froala DOC").createElement("DIV");e(o).append(n);var a="";if(o){var l=t.node.contents(o);for(i=0;i<l.length;i++)r(l[i]);for(l=t.node.contents(o),i=0;i<l.length;i++)a+=s(l[i])}return a}function f(e,n,r){l=[];var i=e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,function(e){return l.push(e),"[FROALA.EDITOR.SCRIPT "+(l.length-1)+"]"}).replace(/<noscript\b[^<]*(?:(?!<\/noscript>)<[^<]*)*<\/noscript>/gi,function(e){return l.push(e),"[FROALA.EDITOR.NOSCRIPT "+(l.length-1)+"]"}).replace(/<meta((?:[\w\W]*?)) http-equiv="/g,'<meta$1 data-fr-http-equiv="').replace(/<img((?:[\w\W]*?)) src="/g,'<img$1 data-fr-src="'),o=null;t.opts.fullPage&&(i=t.html.extractNode(e,"body")||(0<=e.indexOf("<body")?"":e),r&&(o=t.html.extractNode(e,"head")||"")),i=d(i,n),o&&(o=d(o,n));var a=function(e,n,r){if(t.opts.fullPage){var i=t.html.extractDoctype(r),o=u(t.html.extractNodeAttrs(r,"html"));return n=null==n?t.html.extractNode(r,"head")||"<title></title>":n,i+"<html"+o+"><head"+u(t.html.extractNodeAttrs(r,"head"))+">"+n+"</head><body"+u(t.html.extractNodeAttrs(r,"body"))+">"+e+"</body></html>"}return e}(i,o,e);return a.replace(/\[FROALA\.EDITOR\.SCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("script")?"":l[parseInt(n,10)]}).replace(/\[FROALA\.EDITOR\.NOSCRIPT ([\d]*)\]/gi,function(e,n){return 0<=t.opts.htmlRemoveTags.indexOf("noscript")?"":l[parseInt(n,10)].replace(/\&lt;/g,"<").replace(/\&gt;/g,">")}).replace(/<img((?:[\w\W]*?)) data-fr-src="/g,'<img$1 src="')}function p(e){var n=t.doc.createElement("DIV");return n.innerText=e,n.textContent}function h(a){for(var s=t.node.contents(a),l=0;l<s.length;l++)s[l].nodeType!=Node.TEXT_NODE&&h(s[l]);!function(a){if(!("SPAN"==a.tagName&&0<=(a.getAttribute("class")||"").indexOf("fr-marker"))){var s,l;if("PRE"==a.tagName&&0<=(l=(s=a).innerHTML).indexOf("\n")&&(s.innerHTML=l.replace(/\n/g,"<br>")),a.nodeType==Node.ELEMENT_NODE&&(a.getAttribute("data-fr-src")&&0!==a.getAttribute("data-fr-src").indexOf("blob:")&&a.setAttribute("data-fr-src",t.helpers.sanitizeURL(p(a.getAttribute("data-fr-src")))),a.getAttribute("href")&&a.setAttribute("href",t.helpers.sanitizeURL(p(a.getAttribute("href")))),a.getAttribute("src")&&a.setAttribute("src",t.helpers.sanitizeURL(p(a.getAttribute("src")))),a.getAttribute("data")&&a.setAttribute("data",t.helpers.sanitizeURL(p(a.getAttribute("data")))),0<=["TABLE","TBODY","TFOOT","TR"].indexOf(a.tagName)&&(a.innerHTML=a.innerHTML.trim())),!t.opts.pasteAllowLocalImages&&a.nodeType==Node.ELEMENT_NODE&&"IMG"==a.tagName&&a.getAttribute("data-fr-src")&&0===a.getAttribute("data-fr-src").indexOf("file://"))return a.parentNode.removeChild(a);if(a.nodeType==Node.ELEMENT_NODE&&e.FE.HTML5Map[a.tagName]&&""===t.node.attributes(a)){var u=e.FE.HTML5Map[a.tagName],d="<"+u+">"+a.innerHTML+"</"+u+">";a.insertAdjacentHTML("beforebegin",d),(a=a.previousSibling).parentNode.removeChild(a.nextSibling)}if(t.opts.htmlAllowComments||a.nodeType!=Node.COMMENT_NODE)if(a.tagName&&a.tagName.match(r))a.parentNode.removeChild(a);else if(a.tagName&&!a.tagName.match(n)){if("svg"===a.tagName)a.parentNode.removeChild(a);else if(!t.browser.safari||"path"!=a.tagName||!a.parentNode||"svg"!=a.parentNode.tagName)try{a.outerHTML=a.innerHTML}catch(e){}}else{var f=a.attributes;if(f)for(var h=f.length-1;0<=h;h--){var m=f[h],g=m.nodeName.match(i),v=null;"style"==m.nodeName&&t.opts.htmlAllowedStyleProps.length&&(v=m.value.match(o)),g&&v?m.value=c(v.join(";")):g&&("style"!=m.nodeName||v)||a.removeAttribute(m.nodeName)}}else 0!==a.data.indexOf("[FROALA.EDITOR")&&a.parentNode.removeChild(a)}}(a)}return{_init:function(){t.opts.fullPage&&e.merge(t.opts.htmlAllowedTags,["head","title","style","link","base","body","html","meta"])},html:function(a,s,l,c){void 0===s&&(s=[]),void 0===l&&(l=[]),void 0===c&&(c=!1);var u,d=e.merge([],t.opts.htmlAllowedTags);for(u=0;u<s.length;u++)0<=d.indexOf(s[u])&&d.splice(d.indexOf(s[u]),1);var p=e.merge([],t.opts.htmlAllowedAttrs);for(u=0;u<l.length;u++)0<=p.indexOf(l[u])&&p.splice(p.indexOf(l[u]),1);return p.push("data-fr-.*"),p.push("fr-.*"),n=new RegExp("^"+d.join("$|^")+"$","gi"),i=new RegExp("^"+p.join("$|^")+"$","gi"),r=new RegExp("^"+t.opts.htmlRemoveTags.join("$|^")+"$","gi"),o=t.opts.htmlAllowedStyleProps.length?new RegExp("((^|;|\\s)"+t.opts.htmlAllowedStyleProps.join(":.+?(?=;|$))|((^|;|\\s)")+":.+?(?=(;)|$))","gi"):null,a=f(a,h,!0)},toHTML5:function(){var n=t.el.querySelectorAll(Object.keys(e.FE.HTML5Map).join(","));if(n.length){var r=!1;t.el.querySelector(".fr-marker")||(t.selection.save(),r=!0);for(var i=0;i<n.length;i++)""===t.node.attributes(n[i])&&e(n[i]).replaceWith("<"+e.FE.HTML5Map[n[i].tagName]+">"+n[i].innerHTML+"</"+e.FE.HTML5Map[n[i].tagName]+">");r&&t.selection.restore()}},tables:function(){!function(){for(var e=t.el.querySelectorAll("tr"),n=0;n<e.length;n++){for(var r=e[n].children,i=!0,o=0;o<r.length;o++)if("TH"!=r[o].tagName){i=!1;break}if(!1!==i&&0!==r.length){for(var a=e[n];a&&"TABLE"!=a.tagName&&"THEAD"!=a.tagName;)a=a.parentNode;var s=a;"THEAD"!=s.tagName&&(s=t.doc.createElement("THEAD"),a.insertBefore(s,a.firstChild)),s.appendChild(e[n])}}}()},lists:function(){!function(){var e,n=[];do{if(n.length){var r=n[0],i=t.doc.createElement("ul");r.parentNode.insertBefore(i,r);do{var o=r;r=r.nextSibling,i.appendChild(o)}while(r&&"LI"==r.tagName)}n=[];for(var a=t.el.querySelectorAll("li"),s=0;s<a.length;s++)e=a[s],t.node.isList(e.parentNode)||n.push(a[s])}while(0<n.length)}(),function(){for(var e=t.el.querySelectorAll("ol + ol, ul + ul"),n=0;n<e.length;n++){var r=e[n];if(t.node.isList(r.previousSibling)&&t.node.openTagString(r)==t.node.openTagString(r.previousSibling)){for(var i=t.node.contents(r),o=0;o<i.length;o++)r.previousSibling.appendChild(i[o]);r.parentNode.removeChild(r)}}}(),function(){for(var n=t.el.querySelectorAll("ul, ol"),r=0;r<n.length;r++)for(var i=t.node.contents(n[r]),o=null,a=i.length-1;0<=a;a--)"LI"!=i[a].tagName&&"UL"!=i[a].tagName&&"OL"!=i[a].tagName?(o||(o=e("<li>")).insertBefore(i[a]),o.prepend(i[a])):o=null}(),function(){var e,n,r;do{n=!1;var i=t.el.querySelectorAll("li:empty");for(e=0;e<i.length;e++)i[e].parentNode.removeChild(i[e]);var o=t.el.querySelectorAll("ul, ol");for(e=0;e<o.length;e++)(r=o[e]).querySelector("LI")||(n=!0,r.parentNode.removeChild(r))}while(!0===n)}(),function(){for(var n=t.el.querySelectorAll("ul > ul, ol > ol, ul > ol, ol > ul"),r=0;r<n.length;r++){var i=n[r],o=i.previousSibling;o&&("LI"==o.tagName?o.appendChild(i):e(i).wrap("<li></li>"))}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var i=n[r];if(i.nextSibling){var o=i.nextSibling,a=e("<li>");e(i.parentNode).after(a);do{var s=o;o=o.nextSibling,a.append(s)}while(o)}}}(),function(){for(var n=t.el.querySelectorAll("li > ul, li > ol"),r=0;r<n.length;r++){var i=n[r];if(t.node.isFirstSibling(i))e(i).before("<br/>");else if(i.previousSibling&&"BR"==i.previousSibling.tagName){for(var o=i.previousSibling.previousSibling;o&&t.node.hasClass(o,"fr-marker");)o=o.previousSibling;o&&"BR"!=o.tagName&&e(i.previousSibling).remove()}}}(),function(){for(var n=t.el.querySelectorAll("li:empty"),r=0;r<n.length;r++)e(n[r]).remove()}()},invisibleSpaces:function(e){return e.replace(/\u200b/g,"").length==e.length?e:t.clean.exec(e,a)},exec:f}},e.FE.MODULES.spaces=function(t){function n(n,r){var i=n.previousSibling,o=n.nextSibling,a=n.textContent,s=n.parentNode;if(!t.html.isPreformatted(s)){r&&(a=a.replace(/[\f\n\r\t\v ]{2,}/g," "),o&&"BR"!==o.tagName&&!t.node.isBlock(o)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.nextSibling||t.node.isElement(s))||(a=a.replace(/[\f\n\r\t\v ]{1,}$/g,"")),i&&"BR"!==i.tagName&&!t.node.isBlock(i)||!(t.node.isBlock(s)||t.node.isLink(s)&&!s.previousSibling||t.node.isElement(s))||(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),(t.node.isBlock(o)||t.node.isBlock(i))&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,""))," "===a&&(i&&t.node.isVoid(i)||o&&t.node.isVoid(o))&&!(i&&o&&t.node.isVoid(i)||o&&i&&t.node.isVoid(o))&&(a="")),(!i&&t.node.isBlock(o)||!o&&t.node.isBlock(i))&&t.node.isBlock(s)&&s!==t.el&&(a=a.replace(/^[\f\n\r\t\v ]{1,}/g,"")),r||(a=a.replace(new RegExp(e.FE.UNICODE_NBSP,"g")," "));for(var l="",c=0;c<a.length;c++)32!=a.charCodeAt(c)||0!==c&&32!=l.charCodeAt(c-1)||i&&o&&t.node.isVoid(i)||i&&o&&t.node.isVoid(o)?l+=a[c]:l+=e.FE.UNICODE_NBSP;(!o||o&&t.node.isBlock(o)||o&&o.nodeType==Node.ELEMENT_NODE&&t.win.getComputedStyle(o)&&"block"==t.win.getComputedStyle(o).display)&&(t.node.isVoid(i)||(l=l.replace(/ $/,e.FE.UNICODE_NBSP))),!i||t.node.isVoid(i)||t.node.isBlock(i)||1!==(l=l.replace(/^\u00A0([^ $])/," $1")).length||160!==l.charCodeAt(0)||!o||t.node.isVoid(o)||t.node.isBlock(o)||t.node.hasClass(i,"fr-marker")&&t.node.hasClass(o,"fr-marker")||(l=" "),r||(l=l.replace(/([^ \u00A0])\u00A0([^ \u00A0])/g,"$1 $2")),n.textContent!=l&&(n.textContent=l)}}function r(e,r){if(void 0!==e&&e||(e=t.el),void 0===r&&(r=!1),!e.getAttribute||"false"!=e.getAttribute("contenteditable"))if(e.nodeType==Node.TEXT_NODE)n(e,r);else if(e.nodeType==Node.ELEMENT_NODE)for(var i=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){for(var n=e.parentNode;n&&n!==t.el;){if("STYLE"==n.tagName||"IFRAME"==n.tagName)return!1;if("PRE"===n.tagName)return!1;n=n.parentNode}return null!=e.textContent.match(/([ \u00A0\f\n\r\t\v]{2,})|(^[ \u00A0\f\n\r\t\v]{1,})|([ \u00A0\f\n\r\t\v]{1,}$)/g)&&!t.node.hasClass(e.parentNode,"fr-marker")}),!1);i.nextNode();)n(i.currentNode,r)}return{normalize:r,normalizeAroundCursor:function(){for(var e=[],n=t.el.querySelectorAll(".fr-marker"),i=0;i<n.length;i++){for(var o=null,a=t.node.blockParent(n[i]),s=(o=a||n[i]).nextSibling,l=o.previousSibling;s&&"BR"==s.tagName;)s=s.nextSibling;for(;l&&"BR"==l.tagName;)l=l.previousSibling;o&&e.indexOf(o)<0&&e.push(o),l&&e.indexOf(l)<0&&e.push(l),s&&e.indexOf(s)<0&&e.push(s)}for(var c=0;c<e.length;c++)r(e[c])}}},e.FE.UNICODE_NBSP=String.fromCharCode(160),e.FE.VOID_ELEMENTS=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],e.FE.BLOCK_TAGS=["address","article","aside","audio","blockquote","canvas","details","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","noscript","ol","output","p","pre","section","table","tbody","td","tfoot","th","thead","tr","ul","video"],e.extend(e.FE.DEFAULTS,{htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script",".fa",".fr-emoticon",".fr-inner","path","line"],htmlDoNotWrapTags:["script","style"],htmlSimpleAmpersand:!1,htmlIgnoreCSSProperties:[],htmlExecuteScripts:!0}),e.FE.MODULES.html=function(t){function n(){return t.opts.enter==e.FE.ENTER_P?"p":t.opts.enter==e.FE.ENTER_DIV?"div":t.opts.enter==e.FE.ENTER_BR?null:void 0}function r(e,n){return!(!e||e===t.el)&&(n?-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName)||r(e.parentNode,n):-1!=["PRE","SCRIPT","STYLE"].indexOf(e.tagName))}function i(n){var r,i=[],a=[];if(n){var s=t.el.querySelectorAll(".fr-marker");for(r=0;r<s.length;r++){var l=t.node.blockParent(s[r])||s[r];if(l){var c=l.nextSibling,u=l.previousSibling;l&&a.indexOf(l)<0&&t.node.isBlock(l)&&a.push(l),u&&t.node.isBlock(u)&&a.indexOf(u)<0&&a.push(u),c&&t.node.isBlock(c)&&a.indexOf(c)<0&&a.push(c)}}}else a=t.el.querySelectorAll(o());var d=o();for(d+=","+e.FE.VOID_ELEMENTS.join(","),d+=", .fr-inner",d+=","+t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)",r=a.length-1;0<=r;r--)if(!(a[r].textContent&&0<a[r].textContent.replace(/\u200B|\n/g,"").length||0<a[r].querySelectorAll(d).length)){for(var f=t.node.contents(a[r]),p=!1,h=0;h<f.length;h++)if(f[h].nodeType!=Node.COMMENT_NODE&&f[h].textContent&&0<f[h].textContent.replace(/\u200B|\n/g,"").length){p=!0;break}p||i.push(a[r])}return i}function o(){return e.FE.BLOCK_TAGS.join(", ")}function a(n){var r,i,o=e.merge([],e.FE.VOID_ELEMENTS);o=e.merge(o,t.opts.htmlAllowedEmptyTags),o=void 0===n?e.merge(o,e.FE.BLOCK_TAGS):e.merge(o,e.FE.NO_DELETE_TAGS),r=t.el.querySelectorAll("*:empty:not("+o.join("):not(")+"):not(.fr-marker)");do{i=!1;for(var a=0;a<r.length;a++)0!==r[a].attributes.length&&void 0===r[a].getAttribute("href")||(r[a].parentNode.removeChild(r[a]),i=!0);r=t.el.querySelectorAll("*:empty:not("+o.join("):not(")+"):not(.fr-marker)")}while(r.length&&i)}function s(e,r){var i=n();if(r&&(i="div"),i){for(var o=t.doc.createDocumentFragment(),a=null,s=!1,l=e.firstChild,c=!1;l;){var u=l.nextSibling;if(l.nodeType==Node.ELEMENT_NODE&&(t.node.isBlock(l)||0<=t.opts.htmlDoNotWrapTags.indexOf(l.tagName.toLowerCase())&&!t.node.hasClass(l,"fr-marker")))a=null,o.appendChild(l.cloneNode(!0));else if(l.nodeType!=Node.ELEMENT_NODE&&l.nodeType!=Node.TEXT_NODE)a=null,o.appendChild(l.cloneNode(!0));else if("BR"==l.tagName)null==a?(a=t.doc.createElement(i),c=!0,r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0)),a.appendChild(l.cloneNode(!0)),o.appendChild(a)):!1===s&&(a.appendChild(t.doc.createElement("br")),r&&(a.setAttribute("class","fr-temp-div"),a.setAttribute("data-empty",!0))),a=null;else{var d=l.textContent;l.nodeType!==Node.TEXT_NODE||0<d.replace(/\n/g,"").replace(/(^ *)|( *$)/g,"").length||d.replace(/(^ *)|( *$)/g,"").length&&d.indexOf("\n")<0?(null==a&&(a=t.doc.createElement(i),c=!0,r&&a.setAttribute("class","fr-temp-div"),o.appendChild(a),s=!1),a.appendChild(l.cloneNode(!0)),s||t.node.hasClass(l,"fr-marker")||l.nodeType==Node.TEXT_NODE&&0===d.replace(/ /g,"").length||(s=!0)):c=!0}l=u}c&&(e.innerHTML="",e.appendChild(o))}}function l(e,t){for(var n=e.length-1;0<=n;n--)s(e[n],t)}function c(e,n,r,i,o){if(!t.$wp)return!1;void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===i&&(i=!1),void 0===o&&(o=!1);var a=t.$wp.scrollTop();s(t.el,e),i&&l(t.el.querySelectorAll(".fr-inner"),e),n&&l(t.el.querySelectorAll("td, th"),e),r&&l(t.el.querySelectorAll("blockquote"),e),o&&l(t.el.querySelectorAll("li"),e),a!=t.$wp.scrollTop()&&t.$wp.scrollTop(a)}function u(e){if(void 0===e&&(e=t.el),e&&0<=["SCRIPT","STYLE","PRE"].indexOf(e.tagName))return!1;for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return null!=e.textContent.match(/([ \n]{2,})|(^[ \n]{1,})|([ \n]{1,}$)/g)}),!1);n.nextNode();){var i=n.currentNode;if(!r(i.parentNode,!0)){var o=t.node.isBlock(i.parentNode)||t.node.isElement(i.parentNode),a=i.textContent.replace(/(?!^)( ){2,}(?!$)/g," ").replace(/\n/g," ").replace(/^[ ]{2,}/g," ").replace(/[ ]{2,}$/g," ");if(o){var s=i.previousSibling,l=i.nextSibling;s&&l&&" "==a?a=t.node.isBlock(s)&&t.node.isBlock(l)?"":" ":(s||(a=a.replace(/^ */,"")),l||(a=a.replace(/ *$/,"")))}i.textContent=a}}}function d(e,t,n){var r=new RegExp(t,"gi").exec(e);return r?r[n]:null}function f(e){var t=e.doctype,n="<!DOCTYPE html>";return t&&(n="<!DOCTYPE "+t.name+(t.publicId?' PUBLIC "'+t.publicId+'"':"")+(!t.publicId&&t.systemId?" SYSTEM":"")+(t.systemId?' "'+t.systemId+'"':"")+">"),n}function p(n){var r=n.parentNode;if(r&&(t.node.isBlock(r)||t.node.isElement(r))&&["TD","TH"].indexOf(r.tagName)<0){for(var i=n.previousSibling,o=n.nextSibling;i&&(i.nodeType==Node.TEXT_NODE&&0===i.textContent.replace(/\n|\r/g,"").length||t.node.hasClass(i,"fr-tmp"));)i=i.previousSibling;if(o)return!1;i&&r&&"BR"!=i.tagName&&!t.node.isBlock(i)&&!o&&0<r.textContent.replace(/\u200B/g,"").length&&0<i.textContent.length&&!t.node.hasClass(i,"fr-marker")&&(t.el==r&&!o&&t.opts.enter==e.FE.ENTER_BR&&t.browser.msie||n.parentNode.removeChild(n))}else!r||t.node.isBlock(r)||t.node.isElement(r)||n.previousSibling||n.nextSibling||!t.node.isDeletable(n.parentNode)||p(n.parentNode)}function h(){t.opts.htmlUntouched||(a(),c(),u(),t.spaces.normalize(null,!0),t.html.fillEmptyBlocks(),t.clean.lists(),t.clean.tables(),t.clean.toHTML5(),t.html.cleanBRs()),t.selection.restore(),m(),t.placeholder.refresh()}function m(){t.node.isEmpty(t.el)&&(null!=n()?t.el.querySelector(o())||t.el.querySelector(t.opts.htmlDoNotWrapTags.join(":not(.fr-marker),")+":not(.fr-marker)")||(t.core.hasFocus()?(t.$el.html("<"+n()+">"+e.FE.MARKERS+"<br/></"+n()+">"),t.selection.restore()):t.$el.html("<"+n()+"><br/></"+n()+">")):t.el.querySelector("*:not(.fr-marker):not(br)")||(t.core.hasFocus()?(t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()):t.$el.html("<br/>")))}function g(e,t){return d(e,"<"+t+"[^>]*?>([\\w\\W]*)</"+t+">",1)}function v(n,r){var i=e("<div "+(d(n,"<"+r+"([^>]*?)>",1)||"")+">");return t.node.rawAttributes(i.get(0))}function y(e){return(d(e,"<!DOCTYPE([^>]*?)>",0)||"<!DOCTYPE html>").replace(/\n/g," ").replace(/ {2,}/g," ")}function b(e,n){t.opts.htmlExecuteScripts?e.html(n):e.get(0).innerHTML=n}function _(e){var t;(t=/:not\(([^\)]*)\)/g).test(e)&&(e=e.replace(t,"     $1 "));var n=100*(e.match(/(#[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(\[[^\]]+\])/g)||[]).length+10*(e.match(/(\.[^\s\+>~\.\[:]+)/g)||[]).length+10*(e.match(/(:[\w-]+\([^\)]*\))/gi)||[]).length+10*(e.match(/(:[^\s\+>~\.\[:]+)/g)||[]).length+(e.match(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi)||[]).length;return n+=((e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).match(/([^\s\+>~\.\[:]+)/g)||[]).length}function w(e){if(t.events.trigger("html.processGet",[e]),e&&e.getAttribute&&""===e.getAttribute("class")&&e.removeAttribute("class"),e&&e.getAttribute&&""===e.getAttribute("style")&&e.removeAttribute("style"),e&&e.nodeType==Node.ELEMENT_NODE){var n,r=e.querySelectorAll('[class=""],[style=""]');for(n=0;n<r.length;n++){var i=r[n];""===i.getAttribute("class")&&i.removeAttribute("class"),""===i.getAttribute("style")&&i.removeAttribute("style")}if("BR"===e.tagName)p(e);else{var o=e.querySelectorAll("br");for(n=0;n<o.length;n++)p(o[n])}}}function E(e,t){return e[3]-t[3]}function k(e){var n=t.doc.createElement("div");return n.innerHTML=e,null!==n.querySelector(o())}function x(n){var r=null;if(void 0===n&&(r=t.selection.element()),t.opts.keepFormatOnDelete)return!1;var i,o,a=r?(r.textContent.match(/\u200B/g)||[]).length-r.querySelectorAll(".fr-marker").length:0;if((t.el.textContent.match(/\u200B/g)||[]).length-t.el.querySelectorAll(".fr-marker").length==a)return!1;do{o=!1,i=t.el.querySelectorAll("*:not(.fr-marker)");for(var s=0;s<i.length;s++){var l=i[s];if(r!=l){var c=l.textContent;0===l.children.length&&1===c.length&&8203==c.charCodeAt(0)&&"TD"!==l.tagName&&(e(l).remove(),o=!0)}}}while(o)}return{defaultTag:n,isPreformatted:r,emptyBlocks:i,emptyBlockTagsQuery:function(){return e.FE.BLOCK_TAGS.join(":empty, ")+":empty"},blockTagsQuery:o,fillEmptyBlocks:function(n){var r=i(n);t.node.isEmpty(t.el)&&t.opts.enter===e.FE.ENTER_BR&&r.push(t.el);for(var o=0;o<r.length;o++){var a=r[o];"false"===a.getAttribute("contenteditable")||a.querySelector(t.opts.htmlAllowedEmptyTags.join(":not(.fr-marker),")+":not(.fr-marker)")||t.node.isVoid(a)||"TABLE"!=a.tagName&&"TBODY"!=a.tagName&&"TR"!=a.tagName&&"UL"!=a.tagName&&"OL"!=a.tagName&&a.appendChild(t.doc.createElement("br"))}if(t.browser.msie&&t.opts.enter==e.FE.ENTER_BR){var s=t.node.contents(t.el);s.length&&s[s.length-1].nodeType==Node.TEXT_NODE&&t.$el.append("<br>")}},cleanEmptyTags:a,cleanWhiteTags:x,cleanBlankSpaces:u,blocks:function(){return t.$el.get(0).querySelectorAll(o())},getDoctype:f,set:function(n){var r,i,o,a=t.clean.html((n||"").trim(),[],[],t.opts.fullPage);if(t.opts.fullPage){var s=g(a,"body")||(0<=a.indexOf("<body")?"":a),l=v(a,"body"),c=g(a,"head")||"<title></title>",u=v(a,"head"),d=e("<div>").append(c).contents().each(function(){(this.nodeType==Node.COMMENT_NODE||0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName))&&this.parentNode.removeChild(this)}).end().html().trim();c=e("<div>").append(c).contents().map(function(){return this.nodeType==Node.COMMENT_NODE?"\x3c!--"+this.nodeValue+"--\x3e":0<=["BASE","LINK","META","NOSCRIPT","SCRIPT","STYLE","TEMPLATE","TITLE"].indexOf(this.tagName)?this.outerHTML:""}).toArray().join("");var f=y(a),p=v(a,"html");b(t.$el,d+"\n"+s),t.node.clearAttributes(t.el),t.$el.attr(l),t.$el.addClass("fr-view"),t.$el.attr("spellcheck",t.opts.spellcheck),t.$el.attr("dir",t.opts.direction),b(t.$head,c),t.node.clearAttributes(t.$head.get(0)),t.$head.attr(u),t.node.clearAttributes(t.$html.get(0)),t.$html.attr(p),t.iframe_document.doctype.parentNode.replaceChild((r=f,i=t.iframe_document,(o=r.match(/<!DOCTYPE ?([^ ]*) ?([^ ]*) ?"?([^"]*)"? ?"?([^"]*)"?>/i))?i.implementation.createDocumentType(o[1],o[3],o[4]):i.implementation.createDocumentType("html")),t.iframe_document.doctype)}else b(t.$el,a);var m=t.edit.isDisabled();t.edit.on(),t.core.injectStyle(t.opts.iframeDefaultStyle+t.opts.iframeStyle),h(),t.opts.useClasses||(t.$el.find("[fr-original-class]").each(function(){this.setAttribute("class",this.getAttribute("fr-original-class")),this.removeAttribute("fr-original-class")}),t.$el.find("[fr-original-style]").each(function(){this.setAttribute("style",this.getAttribute("fr-original-style")),this.removeAttribute("fr-original-style")})),m&&t.edit.off(),t.events.trigger("html.set")},get:function(e,n){if(!t.$wp)return t.$oel.clone().removeClass("fr-view").removeAttr("contenteditable").get(0).outerHTML;var r="";t.events.trigger("html.beforeGet");var i,o,a=[],s={},l=[],c=t.el.querySelectorAll("input, textarea");for(i=0;i<c.length;i++)c[i].setAttribute("value",c[i].value);if(!t.opts.useClasses&&!n){var u=new RegExp("^"+t.opts.htmlIgnoreCSSProperties.join("$|^")+"$","gi");for(i=0;i<t.doc.styleSheets.length;i++){var d,p=0;try{d=t.doc.styleSheets[i].cssRules,t.doc.styleSheets[i].ownerNode&&"STYLE"==t.doc.styleSheets[i].ownerNode.nodeType&&(p=1)}catch(e){}if(d)for(var h=0,m=d.length;h<m;h++)if(d[h].selectorText&&0<d[h].style.cssText.length){var g,v=d[h].selectorText.replace(/body |\.fr-view /g,"").replace(/::/g,":");try{g=t.el.querySelectorAll(v)}catch(e){g=[]}for(o=0;o<g.length;o++){!g[o].getAttribute("fr-original-style")&&g[o].getAttribute("style")?(g[o].setAttribute("fr-original-style",g[o].getAttribute("style")),a.push(g[o])):g[o].getAttribute("fr-original-style")||(g[o].setAttribute("fr-original-style",""),a.push(g[o])),s[g[o]]||(s[g[o]]={});for(var y=1e3*p+_(d[h].selectorText),b=d[h].style.cssText.split(";"),k=0;k<b.length;k++){var x=b[k].trim().split(":")[0];if(x&&!x.match(u)&&(s[g[o]][x]||(s[g[o]][x]=0)<=(g[o].getAttribute("fr-original-style")||"").indexOf(x+":")&&(s[g[o]][x]=1e4),y>=s[g[o]][x]&&(s[g[o]][x]=y,b[k].trim().length))){var S=b[k].trim().split(":");S.splice(0,1),l.push([g[o],x.trim(),S.join(":").trim(),y])}}}}}for(l.sort(E),i=0;i<l.length;i++){var T=l[i];T[0].style[T[1]]=T[2]}for(i=0;i<a.length;i++)if(a[i].getAttribute("class")&&(a[i].setAttribute("fr-original-class",a[i].getAttribute("class")),a[i].removeAttribute("class")),0<(a[i].getAttribute("fr-original-style")||"").trim().length){var C=a[i].getAttribute("fr-original-style").split(";");for(o=0;o<C.length;o++)if(0<C[o].indexOf(":")){var O=C[o].split(":"),A=O[0];O.splice(0,1),a[i].style[A.trim()]=O.join(":").trim()}}}if(t.node.isEmpty(t.el))t.opts.fullPage&&(r=f(t.iframe_document),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.find("head").get(0).outerHTML+"<body></body></html>");else if(void 0===e&&(e=!1),t.opts.fullPage){r=f(t.iframe_document),t.$el.removeClass("fr-view");var N=t.opts.heightMin,I=t.opts.height,M=t.opts.heightMax;t.opts.heightMin=null,t.opts.height=null,t.opts.heightMax=null,t.size.refresh(),r+="<html"+t.node.attributes(t.$html.get(0))+">"+t.$html.html()+"</html>",t.opts.heightMin=N,t.opts.height=I,t.opts.heightMax=M,t.size.refresh(),t.$el.addClass("fr-view")}else r=t.$el.html();if(!t.opts.useClasses&&!n)for(i=0;i<a.length;i++)a[i].getAttribute("fr-original-class")&&(a[i].setAttribute("class",a[i].getAttribute("fr-original-class")),a[i].removeAttribute("fr-original-class")),null!=a[i].getAttribute("fr-original-style")&&void 0!==a[i].getAttribute("fr-original-style")?(0!==a[i].getAttribute("fr-original-style").length?a[i].setAttribute("style",a[i].getAttribute("fr-original-style")):a[i].removeAttribute("style"),a[i].removeAttribute("fr-original-style")):a[i].removeAttribute("style");t.opts.fullPage&&(r=(r=(r=(r=(r=(r=(r=(r=r.replace(/<style data-fr-style="true">(?:[\w\W]*?)<\/style>/g,"")).replace(/<link([^>]*)data-fr-style="true"([^>]*)>/g,"")).replace(/<style(?:[\w\W]*?)class="firebugResetStyles"(?:[\w\W]*?)>(?:[\w\W]*?)<\/style>/g,"")).replace(/<body((?:[\w\W]*?)) spellcheck="true"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")).replace(/<body((?:[\w\W]*?)) contenteditable="(true|false)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?)) dir="([\w]*)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$3>$4</body>")).replace(/<body((?:[\w\W]*?))class="([\w\W]*?)(fr-rtl|fr-ltr)([\w\W]*?)"((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,'<body$1class="$2$4"$5>$6</body>')).replace(/<body((?:[\w\W]*?)) class=""((?:[\w\W]*?))>((?:[\w\W]*?))<\/body>/g,"<body$1$2>$3</body>")),t.opts.htmlSimpleAmpersand&&(r=r.replace(/\&amp;/gi,"&")),t.events.trigger("html.afterGet"),e||(r=r.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,"")),r=t.clean.invisibleSpaces(r),r=t.clean.exec(r,w);var j=t.events.chainTrigger("html.get",r);return"string"==typeof j&&(r=j),r=(r=r.replace(/<pre(?:[\w\W]*?)>(?:[\w\W]*?)<\/pre>/g,function(e){return e.replace(/<br>/g,"\n")})).replace(/<meta((?:[\w\W]*?)) data-fr-http-equiv="/g,'<meta$1 http-equiv="')},getSelected:function(){var n,r,i=function(n,r){for(;r&&(r.nodeType==Node.TEXT_NODE||!t.node.isBlock(r))&&!t.node.isElement(r)&&!t.node.hasClass(r,"fr-inner");)r&&r.nodeType!=Node.TEXT_NODE&&e(n).wrapInner(t.node.openTagString(r)+t.node.closeTagString(r)),r=r.parentNode;r&&n.innerHTML==r.innerHTML&&(n.innerHTML=r.outerHTML)},o="";if(void 0!==t.win.getSelection){t.browser.mozilla&&(t.selection.save(),1<t.$el.find('.fr-marker[data-type="false"]').length&&(t.$el.find('.fr-marker[data-type="false"][data-id="0"]').remove(),t.$el.find('.fr-marker[data-type="false"]:last').attr("data-id","0"),t.$el.find(".fr-marker").not('[data-id="0"]').remove()),t.selection.restore());for(var a=t.selection.ranges(),s=0;s<a.length;s++){var l=document.createElement("div");l.appendChild(a[s].cloneContents()),i(l,(r=n=void 0,r=null,t.win.getSelection?(n=t.win.getSelection())&&n.rangeCount&&(r=n.getRangeAt(0).commonAncestorContainer).nodeType!=Node.ELEMENT_NODE&&(r=r.parentNode):(n=t.doc.selection)&&"Control"!=n.type&&(r=n.createRange().parentElement()),null!=r&&(0<=e.inArray(t.el,e(r).parents())||r==t.el)?r:null)),0<e(l).find(".fr-element").length&&(l=t.el),o+=l.innerHTML}}else void 0!==t.doc.selection&&"Text"==t.doc.selection.type&&(o=t.doc.selection.createRange().htmlText);return o},insert:function(n,r,i){var o,a,s;if(t.selection.isCollapsed()||t.selection.remove(),o=r?n:t.clean.html(n),n.indexOf('class="fr-marker"')<0&&(a=o,(s=t.doc.createElement("div")).innerHTML=a,t.selection.setAtEnd(s,!0),o=s.innerHTML),t.node.isEmpty(t.el)&&!t.opts.keepFormatOnDelete&&k(o))t.el.innerHTML=o;else{var l=t.markers.insert();if(l){t.node.isLastSibling(l)&&e(l).parent().hasClass("fr-deletable")&&e(l).insertAfter(e(l).parent());var c=t.node.blockParent(l);if((k(o)||i)&&(t.node.deepestParent(l)||c&&"LI"==c.tagName)){if(c&&"LI"==c.tagName&&(o=function(n){if(!t.html.defaultTag())return n;var r=t.doc.createElement("div");r.innerHTML=n;for(var i=r.querySelectorAll(":scope > "+t.html.defaultTag()),o=i.length-1;0<=o;o--){var a=i[o];t.node.isBlock(a.previousSibling)||(a.previousSibling&&!t.node.isEmpty(a)&&e("<br>").insertAfter(a.previousSibling),a.outerHTML=a.innerHTML)}return r.innerHTML}(o)),!(l=t.markers.split()))return!1;l.outerHTML=o}else l.outerHTML=o}else t.el.innerHTML=t.el.innerHTML+o}h(),t.keys.positionCaret(),t.events.trigger("html.inserted")},wrap:c,unwrap:function(){t.$el.find("div.fr-temp-div").each(function(){this.previousSibling&&this.previousSibling.nodeType===Node.TEXT_NODE&&e(this).before("<br>"),e(this).attr("data-empty")||!this.nextSibling||t.node.isBlock(this.nextSibling)&&!e(this.nextSibling).hasClass("fr-temp-div")?e(this).replaceWith(e(this).html()):e(this).replaceWith(e(this).html()+"<br>")}),t.$el.find(".fr-temp-div").removeClass("fr-temp-div").filter(function(){return""===e(this).attr("class")}).removeAttr("class")},escapeEntities:function(e){return e.replace(/</gi,"&lt;").replace(/>/gi,"&gt;").replace(/"/gi,"&quot;").replace(/'/gi,"&#39;")},checkIfEmpty:m,extractNode:g,extractNodeAttrs:v,extractDoctype:y,cleanBRs:function(){for(var e=t.el.getElementsByTagName("br"),n=0;n<e.length;n++)p(e[n])},_init:function(){if(t.$wp){var e=function(){x(),t.placeholder&&setTimeout(t.placeholder.refresh,0)};t.events.on("mouseup",e),t.events.on("keydown",e),t.events.on("contentChanged",m)}}}},e.extend(e.FE.DEFAULTS,{height:null,heightMax:null,heightMin:null,width:null}),e.FE.MODULES.size=function(e){function t(){n(),e.opts.height&&e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom"))),e.$iframe.height(e.$el.outerHeight(!0))}function n(){e.opts.heightMin?e.$el.css("minHeight",e.opts.heightMin):e.$el.css("minHeight",""),e.opts.heightMax?(e.$wp.css("maxHeight",e.opts.heightMax),e.$wp.css("overflow","auto")):(e.$wp.css("maxHeight",""),e.$wp.css("overflow","")),e.opts.height?(e.$wp.height(e.opts.height),e.$wp.css("overflow","auto"),e.$el.css("minHeight",e.opts.height-e.helpers.getPX(e.$el.css("padding-top"))-e.helpers.getPX(e.$el.css("padding-bottom")))):(e.$wp.css("height",""),e.opts.heightMin||e.$el.css("minHeight",""),e.opts.heightMax||e.$wp.css("overflow","")),e.opts.width&&e.$box.width(e.opts.width)}return{_init:function(){if(!e.$wp)return!1;n(),e.$iframe&&(e.events.on("keyup keydown",function(){setTimeout(t,0)},!0),e.events.on("commands.after html.set init initialized paste.after",t))},syncIframe:t,refresh:n}},e.extend(e.FE.DEFAULTS,{language:null}),e.FE.LANGUAGE={},e.FE.MODULES.language=function(t){var n;return{_init:function(){e.FE.LANGUAGE&&(n=e.FE.LANGUAGE[t.opts.language]),n&&n.direction&&(t.opts.direction=n.direction)},translate:function(e){return n&&n.translation[e]&&n.translation[e].length?n.translation[e]:e}}},e.extend(e.FE.DEFAULTS,{placeholderText:"Type something"}),e.FE.MODULES.placeholder=function(t){function n(){t.$placeholder||(t.$placeholder=e('<span class="fr-placeholder"></span>'),t.$wp.append(t.$placeholder));var n=t.opts.iframe?t.$iframe.prev().outerHeight(!0):t.$el.prev().outerHeight(!0),r=0,i=0,o=0,a=0,s=0,l=0,c=t.node.contents(t.el),u=e(t.selection.element()).css("text-align");if(c.length&&c[0].nodeType==Node.ELEMENT_NODE){var d=e(c[0]);(!t.opts.toolbarInline||0<t.$el.prev().length)&&t.ready&&(r=t.helpers.getPX(d.css("margin-top")),a=t.helpers.getPX(d.css("padding-top")),i=t.helpers.getPX(d.css("margin-left")),o=t.helpers.getPX(d.css("margin-right")),s=t.helpers.getPX(d.css("padding-left")),l=t.helpers.getPX(d.css("padding-right"))),t.$placeholder.css("font-size",d.css("font-size")),t.$placeholder.css("line-height",d.css("line-height"))}else t.$placeholder.css("font-size",t.$el.css("font-size")),t.$placeholder.css("line-height",t.$el.css("line-height"));if(t.$wp.addClass("show-placeholder"),t.$placeholder.css({marginTop:Math.max(t.helpers.getPX(t.$el.css("margin-top")),r)+(n||0),paddingTop:Math.max(t.helpers.getPX(t.$el.css("padding-top")),a),paddingLeft:Math.max(t.helpers.getPX(t.$el.css("padding-left")),s),marginLeft:Math.max(t.helpers.getPX(t.$el.css("margin-left")),i),paddingRight:Math.max(t.helpers.getPX(t.$el.css("padding-right")),l),marginRight:Math.max(t.helpers.getPX(t.$el.css("margin-right")),o),textAlign:u}).text(t.language.translate(t.opts.placeholderText||t.$oel.attr("placeholder")||"")),t.$placeholder.html(t.$placeholder.text().replace(/\n/g,"<br>")),t.size.refresh(),t.$placeholder.outerHeight()>t.$el.height()){var f=t.opts.heightMin;t.opts.heightMin=t.$placeholder.outerHeight()+(t.$tb?t.$tb.height():0),t.size.refresh(),t.opts.heightMin=f}}function r(){t.$wp.removeClass("show-placeholder"),t.size.refresh()}function i(){if(!t.$wp)return!1;t.core.isEmpty()?n():r()}return{_init:function(){if(!t.$wp)return!1;t.events.on("init input keydown keyup contentChanged initialized",i)},show:n,hide:r,refresh:i,isVisible:function(){return!!t.$wp&&t.node.hasClass(t.$wp.get(0),"show-placeholder")}}},e.FE.MODULES.edit=function(e){function t(){if(e.browser.mozilla)try{e.doc.execCommand("enableObjectResizing",!1,"false"),e.doc.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}if(e.browser.msie)try{e.doc.body.addEventListener("mscontrolselect",function(e){return e.preventDefault(),!1})}catch(e){}}var n=!1;function r(){return n}return{_init:function(){e.events.on("focus",function(){r()?e.edit.off():e.edit.on()})},on:function(){e.$wp?(e.$el.attr("contenteditable",!0),e.$el.removeClass("fr-disabled").attr("aria-disabled",!1),e.$tb&&e.$tb.removeClass("fr-disabled").removeAttr("aria-disabled"),t()):e.$el.is("a")&&e.$el.attr("contenteditable",!0),n=!1},off:function(){e.events.disableBlur(),e.$wp?(e.$el.attr("contenteditable",!1),e.$el.addClass("fr-disabled").attr("aria-disabled",!0),e.$tb&&e.$tb.addClass("fr-disabled").attr("aria-disabled",!0)):e.$el.is("a")&&e.$el.attr("contenteditable",!1),e.events.enableBlur(),n=!0},disableDesign:t,isDisabled:r}},e.extend(e.FE.DEFAULTS,{documentReady:!1,editorClass:null,typingTimer:500,iframe:!1,requestWithCORS:!0,requestWithCredentials:!1,requestHeaders:{},useClasses:!0,spellcheck:!0,iframeDefaultStyle:'html{margin:0px;height:auto;}body{height:auto;padding:10px;background:transparent;color:#000000;position:relative;z-index: 2;-webkit-user-select:auto;margin:0px;overflow:hidden;min-height:20px;}body:after{content:"";display:block;clear:both;}body::-moz-selection{background:#b5d6fd;color:#000;}body::selection{background:#b5d6fd;color:#000;}',iframeStyle:"",iframeStyleFiles:[],direction:"auto",zIndex:1,tabIndex:null,disableRightClick:!1,scrollableContainer:"body",keepFormatOnDelete:!1,theme:null}),e.FE.MODULES.core=function(t){var n;return{_init:function(){if(e.FE.INSTANCES.push(t),t.drag_support={filereader:"undefined"!=typeof FileReader,formdata:!!t.win.FormData,progress:"upload"in new XMLHttpRequest},t.$wp){(function(){if(t.$box.addClass("fr-box"+(t.opts.editorClass?" "+t.opts.editorClass:"")),t.$box.attr("role","application"),t.$wp.addClass("fr-wrapper"),t.opts.documentReady&&t.$box.addClass("fr-document"),t.opts.iframe||t.$el.addClass("fr-element fr-view"),t.opts.iframe){n=[],t.$iframe.addClass("fr-iframe"),t.$el.addClass("fr-view");for(var e=0;e<t.o_doc.styleSheets.length;e++){var r;try{r=t.o_doc.styleSheets[e].cssRules}catch(e){}if(r)for(var i=0,o=r.length;i<o;i++)!r[i].selectorText||0!==r[i].selectorText.indexOf(".fr-view")&&0!==r[i].selectorText.indexOf(".fr-element")||0<r[i].style.cssText.length&&(0===r[i].selectorText.indexOf(".fr-view")?n.push({selector:r[i].selectorText.replace(/\.fr-view/g,"body"),style:r[i].style}):n.push({selector:r[i].selectorText.replace(/\.fr-element/g,"body"),style:r[i].style}))}}"auto"!=t.opts.direction&&t.$box.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.$el.attr("dir",t.opts.direction),t.$wp.attr("dir",t.opts.direction),1<t.opts.zIndex&&t.$box.css("z-index",t.opts.zIndex),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"),t.opts.tabIndex=t.opts.tabIndex||t.$oel.attr("tabIndex"),t.opts.tabIndex&&t.$el.attr("tabIndex",t.opts.tabIndex)})(),t.html.set(t._original_html),t.$el.attr("spellcheck",t.opts.spellcheck),t.helpers.isMobile()&&(t.$el.attr("autocomplete",t.opts.spellcheck?"on":"off"),t.$el.attr("autocorrect",t.opts.spellcheck?"on":"off"),t.$el.attr("autocapitalize",t.opts.spellcheck?"on":"off")),t.opts.disableRightClick&&t.events.$on(t.$el,"contextmenu",function(e){if(2==e.button)return!1});try{t.doc.execCommand("styleWithCSS",!1,!1)}catch(e){}}"TEXTAREA"==t.$oel.get(0).tagName&&(t.events.on("contentChanged",function(){t.$oel.val(t.html.get())}),t.events.on("form.submit",function(){t.$oel.val(t.html.get())}),t.events.on("form.reset",function(){t.html.set(t._original_html)}),t.$oel.val(t.html.get())),t.helpers.isIOS()&&t.events.$on(t.$doc,"selectionchange",function(){t.$doc.get(0).hasFocus()||t.$win.get(0).focus()}),t.events.trigger("init"),t.opts.autofocus&&!t.opts.initOnClick&&t.$wp&&t.events.on("initialized",function(){t.events.focus(!0)})},destroy:function(e){"TEXTAREA"==t.$oel.get(0).tagName&&t.$oel.val(e),t.$box&&t.$box.removeAttr("role"),t.$wp&&("TEXTAREA"==t.$oel.get(0).tagName?(t.$el.html(""),t.$wp.html(""),t.$box.replaceWith(t.$oel),t.$oel.show()):(t.$wp.replaceWith(e),t.$el.html(""),t.$box.removeClass("fr-view fr-ltr fr-box "+(t.opts.editorClass||"")),t.opts.theme&&t.$box.addClass(t.opts.theme+"-theme"))),this.$wp=null,this.$el=null,this.el=null,this.$box=null},isEmpty:function(){return t.node.isEmpty(t.el)},getXHR:function(e,n){var r=new XMLHttpRequest;for(var i in r.open(n,e,!0),t.opts.requestWithCredentials&&(r.withCredentials=!0),t.opts.requestHeaders)t.opts.requestHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,t.opts.requestHeaders[i]);return r},injectStyle:function(r){if(t.opts.iframe){t.$head.find("style[data-fr-style], link[data-fr-style]").remove();for(var i=e('<style data-fr-style="true">'+r+"</style>").appendTo(t.$head)[0].sheet,o=0;o<n.length;o++)for(var a=i.insertRule(n[o].selector+"{}",i.cssRules.length),s=0;s<n[o].style.length;s++){var l=n[o].style[s],c=n[o].style[l];t.browser.safari&&"content"===l&&(c='"'+c+'"'),i.cssRules[a].style[l]=c}for(var u=0;u<t.opts.iframeStyleFiles.length;u++){var d=e('<link data-fr-style="true" rel="stylesheet" href="'+t.opts.iframeStyleFiles[u]+'">');d.get(0).addEventListener("load",t.size.syncIframe),t.$head.append(d)}}},hasFocus:function(){return t.browser.mozilla&&t.helpers.isMobile()?t.selection.inEditor():t.node.hasFocus(t.el)||0<t.$el.find("*:focus").length},sameInstance:function(e){if(!e)return!1;var n=e.data("instance");return!!n&&n.id==t.id}}},e.FE.MODULES.cursorLists=function(t){function n(e){for(var t=e;"LI"!=t.tagName;)t=t.parentNode;return t}function r(e){for(var n=e;!t.node.isList(n);)n=n.parentNode;return n}return{_startEnter:function(i){var o,a=n(i),s=a.nextSibling,l=a.previousSibling,c=t.html.defaultTag();if(t.node.isEmpty(a,!0)&&s){for(var u="",d="",f=i.parentNode;!t.node.isList(f)&&f.parentNode&&("LI"!==f.parentNode.tagName||f.parentNode===a);)u=t.node.openTagString(f)+u,d+=t.node.closeTagString(f),f=f.parentNode;u=t.node.openTagString(f)+u,d+=t.node.closeTagString(f);var p="";for(p=f.parentNode&&"LI"==f.parentNode.tagName?d+"<li>"+e.FE.MARKERS+"<br>"+u:c?d+"<"+c+">"+e.FE.MARKERS+"<br></"+c+">"+u:d+e.FE.MARKERS+"<br>"+u;["UL","OL"].indexOf(f.tagName)<0||f.parentNode&&"LI"===f.parentNode.tagName;)f=f.parentNode;e(a).replaceWith('<span id="fr-break"></span>');var h=t.node.openTagString(f)+e(f).html()+t.node.closeTagString(f);h=h.replace(/<span id="fr-break"><\/span>/g,p),e(f).replaceWith(h),t.$el.find("li:empty").remove()}else if(l&&s||!t.node.isEmpty(a,!0)){for(var m="<br>",g=i.parentNode;g&&"LI"!=g.tagName;)m=t.node.openTagString(g)+m+t.node.closeTagString(g),g=g.parentNode;e(a).before("<li>"+m+"</li>"),e(i).remove()}else if(l){o=r(a);for(var v=e.FE.MARKERS+"<br>",y=i.parentNode;y&&"LI"!=y.tagName;)v=t.node.openTagString(y)+v+t.node.closeTagString(y),y=y.parentNode;o.parentNode&&"LI"==o.parentNode.tagName?e(o.parentNode).after("<li>"+v+"</li>"):c?e(o).after("<"+c+">"+v+"</"+c+">"):e(o).after(v),e(a).remove()}else(o=r(a)).parentNode&&"LI"==o.parentNode.tagName?s?e(o.parentNode).before(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):e(o.parentNode).after(t.node.openTagString(a)+e.FE.MARKERS+"<br></li>"):c?e(o).before("<"+c+">"+e.FE.MARKERS+"<br></"+c+">"):e(o).before(e.FE.MARKERS+"<br>"),e(a).remove()},_middleEnter:function(r){for(var i=n(r),o="",a=r,s="",l="";a!=i;){var c="A"==(a=a.parentNode).tagName&&t.cursor.isAtEnd(r,a)?"fr-to-remove":"";s=t.node.openTagString(e(a).clone().addClass(c).get(0))+s,l=t.node.closeTagString(a)+l}o=l+o+s+e.FE.MARKERS+(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:""),e(r).replaceWith('<span id="fr-break"></span>');var u=t.node.openTagString(i)+e(i).html()+t.node.closeTagString(i);u=u.replace(/<span id="fr-break"><\/span>/g,o),e(i).replaceWith(u)},_endEnter:function(r){for(var i=n(r),o=e.FE.MARKERS,a="",s=r,l=!1;s!=i;){var c="A"==(s=s.parentNode).tagName&&t.cursor.isAtEnd(r,s)?"fr-to-remove":"";l||s==i||t.node.isBlock(s)||(l=!0,a+=e.FE.INVISIBLE_SPACE),a=t.node.openTagString(e(s).clone().addClass(c).get(0))+a,o+=t.node.closeTagString(s)}var u=a+o;e(r).remove(),e(i).after(u)},_backspace:function(i){var o=n(i),a=o.previousSibling;if(a){a=e(a).find(t.html.blockTagsQuery()).get(-1)||a,e(i).replaceWith(e.FE.MARKERS);var s=t.node.contents(a);s.length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(o).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==o&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var l,c=t.node.contents(o)[0];c&&!t.node.isList(c);)l=c.nextSibling,e(a).append(c),c=l;for(a=o.previousSibling;c;)l=c.nextSibling,e(a).append(c),c=l;1<(s=t.node.contents(a)).length&&"BR"===s[s.length-1].tagName&&e(s[s.length-1]).remove(),e(o).remove()}else{var u=r(o);if(e(i).replaceWith(e.FE.MARKERS),u.parentNode&&"LI"==u.parentNode.tagName){var d=u.previousSibling;t.node.isBlock(d)?(e(o).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==o&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(d).append(e(o).html())):e(u).before(e(o).html())}else{var f=t.html.defaultTag();f&&0===e(o).find(t.html.blockTagsQuery()).length?e(u).before("<"+f+">"+e(o).html()+"</"+f+">"):e(u).before(e(o).html())}e(o).remove(),t.html.wrap(),0===e(u).find("li").length&&e(u).remove()}},_del:function(r){var i,o=n(r),a=o.nextSibling;if(a){(i=t.node.contents(a)).length&&"BR"==i[0].tagName&&e(i[0]).remove(),e(a).find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==a&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))});for(var s,l=r,c=t.node.contents(a)[0];c&&!t.node.isList(c);)s=c.nextSibling,e(l).after(c),l=c,c=s;for(;c;)s=c.nextSibling,e(o).append(c),c=s;e(r).replaceWith(e.FE.MARKERS),e(a).remove()}else{for(var u=o;!u.nextSibling&&u!=t.el;)u=u.parentNode;if(u==t.el)return!1;if(u=u.nextSibling,t.node.isBlock(u))e.FE.NO_DELETE_TAGS.indexOf(u.tagName)<0&&(e(r).replaceWith(e.FE.MARKERS),(i=t.node.contents(o)).length&&"BR"==i[i.length-1].tagName&&e(i[i.length-1]).remove(),e(o).append(e(u).html()),e(u).remove());else for((i=t.node.contents(o)).length&&"BR"==i[i.length-1].tagName&&e(i[i.length-1]).remove(),e(r).replaceWith(e.FE.MARKERS);u&&!t.node.isBlock(u)&&"BR"!=u.tagName;)e(o).append(e(u)),u=u.nextSibling}}}},e.FE.NO_DELETE_TAGS=["TH","TD","TR","TABLE","FORM"],e.FE.SIMPLE_ENTER_TAGS=["TH","TD","LI","DL","DT","FORM"],e.FE.MODULES.cursor=function(t){function n(e){return!!e&&(!!t.node.isBlock(e)||(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?n(e.nextSibling):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&n(e.parentNode)))}function r(e){return!!e&&(!!t.node.isBlock(e)||(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?r(e.previousSibling):!e.previousSibling&&(!(e.previousSibling||!t.node.hasClass(e.parentNode,"fr-inner"))||r(e.parentNode))))}function i(e,n){return!!e&&e!=t.$wp.get(0)&&(e.previousSibling&&e.previousSibling.nodeType==Node.TEXT_NODE&&0===e.previousSibling.textContent.replace(/\u200b/g,"").length?i(e.previousSibling,n):!e.previousSibling&&(e.parentNode==n||i(e.parentNode,n)))}function o(e,n){return!!e&&e!=t.$wp.get(0)&&(e.nextSibling&&e.nextSibling.nodeType==Node.TEXT_NODE&&0===e.nextSibling.textContent.replace(/\u200b/g,"").length?o(e.nextSibling,n):!(e.nextSibling&&(!e.previousSibling||"BR"!=e.nextSibling.tagName||e.nextSibling.nextSibling))&&(e.parentNode==n||o(e.parentNode,n)))}function a(n){return 0<e(n).parentsUntil(t.$el,"LI").length&&0===e(n).parentsUntil("LI","TABLE").length}function s(e,t){var n=new RegExp((t?"^":"")+"(([\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+\\u200D)*[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]{2})"+(t?"":"$"),"i"),r=e.match(n);return r?r[0].length:1}function l(n){for(var r,i=n;!i.previousSibling;)if(i=i.parentNode,t.node.isElement(i))return!1;if(i=i.previousSibling,!t.node.isBlock(i)&&t.node.isEditable(i)){for(r=t.node.contents(i);i.nodeType!=Node.TEXT_NODE&&!t.node.isDeletable(i)&&r.length&&t.node.isEditable(i);)i=r[r.length-1],r=t.node.contents(i);if(i.nodeType==Node.TEXT_NODE){var o=i.textContent,a=o.length;if(o.length&&"\n"===o[o.length-1])return i.textContent=o.substring(0,a-2),0===i.textContent.length&&i.parentNode.removeChild(i),l(n);t.opts.tabSpaces&&o.length>=t.opts.tabSpaces&&0===o.substr(o.length-t.opts.tabSpaces,o.length-1).replace(/ /g,"").replace(new RegExp(e.FE.UNICODE_NBSP,"g"),"").length&&(a=o.length-t.opts.tabSpaces+1),i.textContent=o.substring(0,a-s(o)),t.opts.htmlUntouched&&!n.nextSibling&&i.textContent.length&&" "===i.textContent[i.textContent.length-1]&&(i.textContent=i.textContent.substring(0,i.textContent.length-1)+e.FE.UNICODE_NBSP);var c=o.length!=i.textContent.length;if(0===i.textContent.length)if(c&&t.opts.keepFormatOnDelete)e(i).after(e.FE.INVISIBLE_SPACE+e.FE.MARKERS);else if(0!==o.length&&t.node.isBlock(i.parentNode))e(i).after(e.FE.MARKERS);else if((2!=i.parentNode.childNodes.length||i.parentNode!=n.parentNode)&&1!=i.parentNode.childNodes.length||t.node.isBlock(i.parentNode)||t.node.isElement(i.parentNode)||!t.node.isDeletable(i.parentNode)){for(;!t.node.isElement(i.parentNode)&&t.node.isEmpty(i.parentNode)&&e.FE.NO_DELETE_TAGS.indexOf(i.parentNode.tagName)<0;){var u=i;i=i.parentNode,u.parentNode.removeChild(u)}e(i).after(e.FE.MARKERS),t.node.isElement(i.parentNode)&&!n.nextSibling&&i.previousSibling&&"BR"==i.previousSibling.tagName&&e(n).after("<br>"),i.parentNode.removeChild(i)}else e(i.parentNode).after(e.FE.MARKERS),e(i.parentNode).remove();else e(i).after(e.FE.MARKERS)}else t.node.isDeletable(i)?(e(i).after(e.FE.MARKERS),e(i).remove()):n.nextSibling&&"BR"==n.nextSibling.tagName&&t.node.isVoid(i)&&"BR"!=i.tagName?(e(n.nextSibling).remove(),e(n).replaceWith(e.FE.MARKERS)):!1!==t.events.trigger("node.remove",[e(i)])&&(e(i).after(e.FE.MARKERS),e(i).remove())}else if(e.FE.NO_DELETE_TAGS.indexOf(i.tagName)<0&&(t.node.isEditable(i)||t.node.isDeletable(i)))if(t.node.isDeletable(i))e(n).replaceWith(e.FE.MARKERS),e(i).remove();else if(t.node.isEmpty(i)&&!t.node.isList(i))e(i).remove(),e(n).replaceWith(e.FE.MARKERS);else{for(t.node.isList(i)&&(i=e(i).find("li:last").get(0)),(r=t.node.contents(i))&&"BR"==r[r.length-1].tagName&&e(r[r.length-1]).remove(),r=t.node.contents(i);r&&t.node.isBlock(r[r.length-1]);)i=r[r.length-1],r=t.node.contents(i);e(i).append(e.FE.MARKERS);for(var d=n;!d.previousSibling;)d=d.parentNode;for(;d&&"BR"!==d.tagName&&!t.node.isBlock(d);){var f=d;d=d.nextSibling,e(i).append(f)}d&&"BR"==d.tagName&&e(d).remove(),e(n).remove()}else n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove();return!0}function c(n){var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,i=t.node.deepestParent(n,[],!r);if(i&&"BLOCKQUOTE"==i.tagName){var o=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);o&&o.nextSibling&&(i=o)}if(null!==i){var a,s=i.nextSibling;if(t.node.isBlock(i)&&(t.node.isEditable(i)||t.node.isDeletable(i))&&s&&e.FE.NO_DELETE_TAGS.indexOf(s.tagName)<0)if(t.node.isDeletable(s))e(s).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isBlock(s)&&t.node.isEditable(s))if(t.node.isList(s))if(t.node.isEmpty(i,!0))e(i).remove(),e(s).find("li:first").prepend(e.FE.MARKERS);else{var l=e(s).find("li:first");"BLOCKQUOTE"==i.tagName&&(a=t.node.contents(i)).length&&t.node.isBlock(a[a.length-1])&&(i=a[a.length-1]),0===l.find("ul, ol").length&&(e(n).replaceWith(e.FE.MARKERS),l.find(t.html.blockTagsQuery()).not("ol, ul, table").each(function(){this.parentNode==l.get(0)&&e(this).replaceWith(e(this).html()+(t.node.isEmpty(this)?"":"<br>"))}),e(i).append(t.node.contents(l.get(0))),l.remove(),0===e(s).find("li").length&&e(s).remove())}else{if((a=t.node.contents(s)).length&&"BR"==a[0].tagName&&e(a[0]).remove(),"BLOCKQUOTE"!=s.tagName&&"BLOCKQUOTE"==i.tagName)for(a=t.node.contents(i);a.length&&t.node.isBlock(a[a.length-1]);)i=a[a.length-1],a=t.node.contents(i);else if("BLOCKQUOTE"==s.tagName&&"BLOCKQUOTE"!=i.tagName)for(a=t.node.contents(s);a.length&&t.node.isBlock(a[0]);)s=a[0],a=t.node.contents(s);e(n).replaceWith(e.FE.MARKERS),e(i).append(s.innerHTML),e(s).remove()}else{for(e(n).replaceWith(e.FE.MARKERS);s&&"BR"!==s.tagName&&!t.node.isBlock(s)&&t.node.isEditable(s);){var c=s;s=s.nextSibling,e(i).append(c)}s&&"BR"==s.tagName&&t.node.isEditable(s)&&e(s).remove()}}}function u(){for(var e=t.el.querySelectorAll("blockquote:empty"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n])}function d(n,r,i){var a,s=t.node.deepestParent(n,[],!i);if(s&&"BLOCKQUOTE"==s.tagName)return o(n,s)?(a=t.html.defaultTag(),r?e(n).replaceWith("<br>"+e.FE.MARKERS):a?e(s).after("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):e(s).after(e.FE.MARKERS+"<br>"),e(n).remove()):f(n,r,i),!1;if(null==s)(a=t.html.defaultTag())&&t.node.isElement(n.parentNode)?e(n).replaceWith("<"+a+">"+e.FE.MARKERS+"<br></"+a+">"):!n.previousSibling||e(n.previousSibling).is("br")||n.nextSibling?e(n).replaceWith("<br>"+e.FE.MARKERS):e(n).replaceWith("<br>"+e.FE.MARKERS+"<br>");else{var l=n,c="";"PRE"!=s.tagName||n.nextSibling||(r=!0),t.node.isBlock(s)&&!r||(c="<br/>");var u,d="",p="",h="",m="";(a=t.html.defaultTag())&&t.node.isBlock(s)&&(h="<"+a+">",m="</"+a+">",s.tagName==a.toUpperCase()&&(h=t.node.openTagString(e(s).clone().removeAttr("id").get(0))));do{if(l=l.parentNode,!r||l!=s||r&&!t.node.isBlock(s))if(d+=t.node.closeTagString(l),l==s&&t.node.isBlock(s))p=h+p;else{var g="A"==l.tagName&&o(n,l)?"fr-to-remove":"";p=t.node.openTagString(e(l).clone().addClass(g).get(0))+p}}while(l!=s);c=d+c+p+(n.parentNode==s&&t.node.isBlock(s)?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS,t.node.isBlock(s)&&!e(s).find("*:last").is("br")&&e(s).append("<br/>"),e(n).after('<span id="fr-break"></span>'),e(n).remove(),s.nextSibling&&!t.node.isBlock(s.nextSibling)||t.node.isBlock(s)||e(s).after("<br>"),u=(u=!r&&t.node.isBlock(s)?t.node.openTagString(s)+e(s).html()+m:t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s)).replace(/<span id="fr-break"><\/span>/g,c),e(s).replaceWith(u)}}function f(n,r,a){var s=t.node.deepestParent(n,[],!a);if(null==s)t.html.defaultTag()&&n.parentNode===t.el?e(n).replaceWith("<"+t.html.defaultTag()+">"+e.FE.MARKERS+"<br></"+t.html.defaultTag()+">"):(n.nextSibling&&!t.node.isBlock(n.nextSibling)||e(n).after("<br>"),e(n).replaceWith("<br>"+e.FE.MARKERS));else{var l=n,c="";"PRE"==s.tagName&&(r=!0),t.node.isBlock(s)&&!r||(c="<br>");var u="",d="";do{var f=l;if(l=l.parentNode,"BLOCKQUOTE"==s.tagName&&t.node.isEmpty(f)&&!t.node.hasClass(f,"fr-marker")&&0<e(f).find(n).length&&e(f).after(n),"BLOCKQUOTE"!=s.tagName||!o(n,l)&&!i(n,l))if(!r||l!=s||r&&!t.node.isBlock(s)){u+=t.node.closeTagString(l);var p="A"==l.tagName&&o(n,l)?"fr-to-remove":"";d=t.node.openTagString(e(l).clone().addClass(p).removeAttr("id").get(0))+d}else"BLOCKQUOTE"==s.tagName&&r&&(d=u="")}while(l!=s);var h=s==n.parentNode&&t.node.isBlock(s)||n.nextSibling;if("BLOCKQUOTE"==s.tagName)if(n.previousSibling&&t.node.isBlock(n.previousSibling)&&n.nextSibling&&"BR"==n.nextSibling.tagName&&(e(n.nextSibling).after(n),n.nextSibling&&"BR"==n.nextSibling.tagName&&e(n.nextSibling).remove()),r)c=u+c+e.FE.MARKERS+d;else{var m=t.html.defaultTag();c=u+c+(m?"<"+m+">":"")+e.FE.MARKERS+"<br>"+(m?"</"+m+">":"")+d}else c=u+c+d+(h?"":e.FE.INVISIBLE_SPACE)+e.FE.MARKERS;e(n).replaceWith('<span id="fr-break"></span>');var g=t.node.openTagString(s)+e(s).html()+t.node.closeTagString(s);g=g.replace(/<span id="fr-break"><\/span>/g,c),e(s).replaceWith(g)}}return{enter:function(s){var l=t.markers.insert();if(!l)return!0;for(var c=l.parentNode;c&&!t.node.isElement(c);){if("false"===c.getAttribute("contenteditable"))return e(l).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===c.getAttribute("contenteditable"))break;c=c.parentNode}t.el.normalize();var u=!1;0<e(l).parentsUntil(t.$el,"BLOCKQUOTE").length&&(u=!0),e(l).parentsUntil(t.$el,"TD, TH").length&&(u=!1),n(l)?!a(l)||s||u?d(l,s,u):t.cursorLists._endEnter(l):r(l)?!a(l)||s||u?function n(r,a,s){var l,c=t.node.deepestParent(r,[],!s);if(c&&"TABLE"==c.tagName)return e(c).find("td:first, th:first").prepend(r),n(r,a,s);if(c&&"BLOCKQUOTE"==c.tagName)if(i(r,c)){if(!a)return(l=t.html.defaultTag())?e(c).before("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(c).before(e.FE.MARKERS+"<br>"),e(r).remove(),!1}else o(r,c)?d(r,a,!0):f(r,a,!0);if(null==c)(l=t.html.defaultTag())&&t.node.isElement(r.parentNode)?e(r).replaceWith("<"+l+">"+e.FE.MARKERS+"<br></"+l+">"):e(r).replaceWith("<br>"+e.FE.MARKERS);else{if(t.node.isBlock(c))if("PRE"==c.tagName&&(a=!0),a)e(r).remove(),e(c).prepend("<br>"+e.FE.MARKERS);else{if(t.node.isEmpty(c,!0))return d(r,a,s);if(t.opts.keepFormatOnDelete){for(var u=r,p=e.FE.INVISIBLE_SPACE;u!=c&&!t.node.isElement(u);)u=u.parentNode,p=t.node.openTagString(u)+p+t.node.closeTagString(u);e(c).before(p)}else e(c).before(t.node.openTagString(e(c).clone().removeAttr("id").get(0))+"<br>"+t.node.closeTagString(c))}else e(c).before("<br>");e(r).remove()}}(l,s,u):t.cursorLists._startEnter(l):!a(l)||s||u?f(l,s,u):t.cursorLists._middleEnter(l),t.$el.find(".fr-to-remove").each(function(){for(var n=t.node.contents(this),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE&&(n[r].textContent=n[r].textContent.replace(/\u200B/g,""));e(this).replaceWith(this.innerHTML)}),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore()},backspace:function(){var o=!1,c=t.markers.insert();if(!c)return!0;for(var d=c.parentNode;d&&!t.node.isElement(d);){if("false"===d.getAttribute("contenteditable"))return e(c).replaceWith(e.FE.MARKERS),t.selection.restore(),!1;if("true"===d.getAttribute("contenteditable"))break;d=d.parentNode}t.el.normalize();var f=c.previousSibling;if(f){var p=f.textContent;p&&p.length&&8203==p.charCodeAt(p.length-1)&&(1==p.length?e(f).remove():f.textContent=f.textContent.substr(0,p.length-s(p)))}return n(c)?a(c)&&i(c,e(c).parents("li:first").get(0))?t.cursorLists._backspace(c):o=l(c):r(c)?a(c)&&i(c,e(c).parents("li:first").get(0))?t.cursorLists._backspace(c):function(n){for(var r=0<e(n).parentsUntil(t.$el,"BLOCKQUOTE").length,i=t.node.deepestParent(n,[],!r),o=i;i&&!i.previousSibling&&"BLOCKQUOTE"!=i.tagName&&i.parentElement!=t.el&&!t.node.hasClass(i.parentElement,"fr-inner")&&e.FE.SIMPLE_ENTER_TAGS.indexOf(i.parentElement.tagName)<0;)i=i.parentElement;if(i&&"BLOCKQUOTE"==i.tagName){var a=t.node.deepestParent(n,[e(n).parentsUntil(t.$el,"BLOCKQUOTE").get(0)]);a&&a.previousSibling&&(o=i=a)}if(null!==i){var s,l=i.previousSibling;if(t.node.isBlock(i)&&t.node.isEditable(i))if(l&&e.FE.NO_DELETE_TAGS.indexOf(l.tagName)<0){if(t.node.isDeletable(l))e(l).remove(),e(n).replaceWith(e.FE.MARKERS);else if(t.node.isEditable(l))if(t.node.isBlock(l))if(t.node.isEmpty(l)&&!t.node.isList(l))e(l).remove(),e(n).after(t.opts.keepFormatOnDelete?e.FE.INVISIBLE_SPACE:"");else{if(t.node.isList(l)&&(l=e(l).find("li:last").get(0)),(s=t.node.contents(l)).length&&"BR"==s[s.length-1].tagName&&e(s[s.length-1]).remove(),"BLOCKQUOTE"==l.tagName&&"BLOCKQUOTE"!=i.tagName)for(s=t.node.contents(l);s.length&&t.node.isBlock(s[s.length-1]);)l=s[s.length-1],s=t.node.contents(l);else if("BLOCKQUOTE"!=l.tagName&&"BLOCKQUOTE"==o.tagName)for(s=t.node.contents(o);s.length&&t.node.isBlock(s[0]);)o=s[0],s=t.node.contents(o);if(t.node.isEmpty(i))e(n).remove(),t.selection.setAtEnd(l,!0);else{e(n).replaceWith(e.FE.MARKERS);var c=l.childNodes;t.node.isBlock(c[c.length-1])?e(c[c.length-1]).append(o.innerHTML):e(l).append(o.innerHTML)}e(o).remove(),t.node.isEmpty(i)&&e(i).remove()}else e(n).replaceWith(e.FE.MARKERS),"BLOCKQUOTE"==i.tagName&&l.nodeType==Node.ELEMENT_NODE?e(l).remove():(e(l).after(t.node.isEmpty(i)?"":e(i).html()),e(i).remove(),"BR"==l.tagName&&e(l).remove())}else l||i&&"BLOCKQUOTE"===i.tagName&&0===e(i).text().replace(/\u200B/g,"").length&&e(i).remove()}}(c):o=l(c),e(c).remove(),u(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists(),t.spaces.normalizeAroundCursor()),t.selection.restore(),o},del:function(){var i=t.markers.insert();if(!i)return!1;if(t.el.normalize(),n(i))if(a(i))if(0===e(i).parents("li:first").find("ul, ol").length)t.cursorLists._del(i);else{var o=e(i).parents("li:first").find("ul:first, ol:first").find("li:first");(o=o.find(t.html.blockTagsQuery()).get(-1)||o).prepend(i),t.cursorLists._backspace(i)}else c(i);else r(i),function(r){for(var i,o=r;!o.nextSibling;)if(o=o.parentNode,t.node.isElement(o))return!1;if("BR"==(o=o.nextSibling).tagName&&t.node.isEditable(o))if(o.nextSibling){if(t.node.isBlock(o.nextSibling)&&t.node.isEditable(o.nextSibling)){if(!(e.FE.NO_DELETE_TAGS.indexOf(o.nextSibling.tagName)<0))return void e(o).remove();o=o.nextSibling,e(o.previousSibling).remove()}}else if(n(o))return void(a(r)?t.cursorLists._del(r):t.node.deepestParent(o)&&((!t.node.isEmpty(t.node.blockParent(o))||(t.node.blockParent(o).nextSibling&&e.FE.NO_DELETE_TAGS.indexOf(t.node.blockParent(o).nextSibling.tagName))<0)&&e(o).remove(),c(r)));if(!t.node.isBlock(o)&&t.node.isEditable(o)){for(i=t.node.contents(o);o.nodeType!=Node.TEXT_NODE&&i.length&&!t.node.isDeletable(o)&&t.node.isEditable(o);)o=i[0],i=t.node.contents(o);o.nodeType==Node.TEXT_NODE?(e(o).before(e.FE.MARKERS),o.textContent.length&&(o.textContent=o.textContent.substring(s(o.textContent,!0),o.textContent.length))):t.node.isDeletable(o)?(e(o).before(e.FE.MARKERS),e(o).remove()):!1!==t.events.trigger("node.remove",[e(o)])&&(e(o).before(e.FE.MARKERS),e(o).remove()),e(r).remove()}else if(e.FE.NO_DELETE_TAGS.indexOf(o.tagName)<0&&(t.node.isEditable(o)||t.node.isDeletable(o)))if(t.node.isDeletable(o))e(r).replaceWith(e.FE.MARKERS),e(o).remove();else if(t.node.isList(o))r.previousSibling?(e(o).find("li:first").prepend(r),t.cursorLists._backspace(r)):(e(o).find("li:first").prepend(e.FE.MARKERS),e(r).remove());else if((i=t.node.contents(o))&&i.length&&"BR"==i[0].tagName&&e(i[0]).remove(),i&&"BLOCKQUOTE"==o.tagName){var l=i[0];for(e(r).before(e.FE.MARKERS);l&&"BR"!=l.tagName;){var u=l;l=l.nextSibling,e(r).before(u)}l&&"BR"==l.tagName&&e(l).remove()}else e(r).after(e(o).html()).after(e.FE.MARKERS),e(o).remove()}(i);e(i).remove(),u(),t.html.fillEmptyBlocks(!0),t.opts.htmlUntouched||(t.html.cleanEmptyTags(),t.clean.lists()),t.spaces.normalizeAroundCursor(),t.selection.restore()},isAtEnd:o,isAtStart:i}},e.FE.ENTER_P=0,e.FE.ENTER_DIV=1,e.FE.ENTER_BR=2,e.FE.KEYCODE={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,FF_HYPHEN:173,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,HYPHEN:189,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,IME:229},e.extend(e.FE.DEFAULTS,{enter:e.FE.ENTER_P,multiLine:!0,tabSpaces:0}),e.FE.MODULES.keys=function(t){var n,r,i,o=!1;function a(){if(t.browser.mozilla&&t.selection.isCollapsed()&&!o){var e=t.selection.ranges(0),n=e.startContainer,r=e.startOffset;n&&n.nodeType==Node.TEXT_NODE&&r<=n.textContent.length&&0<r&&32==n.textContent.charCodeAt(r-1)&&(t.selection.save(),t.spaces.normalize(),t.selection.restore())}}function s(){t.selection.isFull()&&setTimeout(function(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore(),t.placeholder.refresh(),t.button.bulkRefresh(),t.undo.saveStep()},0)}function l(){o=!1}function c(){o=!1}function u(){var n=t.html.defaultTag();n?t.$el.html("<"+n+">"+e.FE.MARKERS+"<br/></"+n+">"):t.$el.html(e.FE.MARKERS+"<br/>"),t.selection.restore()}function d(r){var i=t.selection.element();if(i&&0<=["INPUT","TEXTAREA"].indexOf(i.tagName))return!0;if(r&&g(r.which))return p(),!0;t.events.disableBlur();var a=r.which;if(16===a)return!0;if((n=a)===e.FE.KEYCODE.IME)return o=!0;o=!1;var s,l,c,d=v(a)&&!m(r)&&!r.altKey,f=a==e.FE.KEYCODE.BACKSPACE||a==e.FE.KEYCODE.DELETE;if((!m(r)&&(!r.shiftKey||33!==a&&34!==a&&35!==a&&36!==a)&&t.selection.isFull()&&!t.opts.keepFormatOnDelete&&!t.placeholder.isVisible()||f&&t.placeholder.isVisible()&&t.opts.keepFormatOnDelete)&&(d||f)&&(u(),!v(a)))return r.preventDefault(),!0;a==e.FE.KEYCODE.ENTER?r.shiftKey?((c=r).preventDefault(),c.stopPropagation(),t.opts.multiLine&&(t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter(!0))):(l=r,t.opts.multiLine?(t.helpers.isIOS()||(l.preventDefault(),l.stopPropagation()),t.selection.isCollapsed()||t.selection.remove(),t.cursor.enter()):(l.preventDefault(),l.stopPropagation())):a===e.FE.KEYCODE.BACKSPACE&&(r.metaKey||r.ctrlKey)?setTimeout(function(){t.events.disableBlur(),t.events.focus()},0):a!=e.FE.KEYCODE.BACKSPACE||m(r)||r.altKey?a!=e.FE.KEYCODE.DELETE||m(r)||r.altKey||r.shiftKey?a==e.FE.KEYCODE.SPACE?function(n){var r=t.selection.element();if(!t.helpers.isMobile()&&r&&"A"==r.tagName){n.preventDefault(),n.stopPropagation(),t.selection.isCollapsed()||t.selection.remove();var i=t.markers.insert();if(i){var o=i.previousSibling;!i.nextSibling&&i.parentNode&&"A"==i.parentNode.tagName?(i.parentNode.insertAdjacentHTML("afterend","&nbsp;"+e.FE.MARKERS),i.parentNode.removeChild(i)):(o&&o.nodeType==Node.TEXT_NODE&&1==o.textContent.length&&160==o.textContent.charCodeAt(0)?o.textContent=o.textContent+" ":i.insertAdjacentHTML("beforebegin","&nbsp;"),i.outerHTML=e.FE.MARKERS),t.selection.restore()}}}(r):a==e.FE.KEYCODE.TAB?function(e){if(0<t.opts.tabSpaces)if(t.selection.isCollapsed()){t.undo.saveStep(),e.preventDefault(),e.stopPropagation();for(var n="",r=0;r<t.opts.tabSpaces;r++)n+="&nbsp;";t.html.insert(n),t.placeholder.refresh(),t.undo.saveStep()}else e.preventDefault(),e.stopPropagation(),e.shiftKey?t.commands.outdent():t.commands.indent()}(r):m(r)||!v(r.which)||t.selection.isCollapsed()||r.ctrlKey||r.altKey||t.selection.remove():t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):((s=r).preventDefault(),s.stopPropagation(),""===t.selection.text()?t.cursor.del():t.selection.remove(),t.placeholder.refresh()):t.placeholder.isVisible()?(t.opts.keepFormatOnDelete||u(),r.preventDefault(),r.stopPropagation()):function(e){if(t.selection.isCollapsed())if(t.cursor.backspace(),t.helpers.isIOS()){var n=t.selection.ranges(0);n.deleteContents(),n.insertNode(document.createTextNode("​")),t.selection.get().modify("move","forward","character")}else e.preventDefault(),e.stopPropagation();else e.preventDefault(),e.stopPropagation(),t.selection.remove();t.placeholder.refresh()}(r),t.events.enableBlur()}function f(){if(!t.$wp)return!0;var n;t.opts.height||t.opts.heightMax?(n=t.position.getBoundingRect().top,t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n>t.$wp.offset().top-t.helpers.scrollTop()+t.$wp.height()-20&&t.$wp.scrollTop(n+t.$wp.scrollTop()-(t.$wp.height()+t.$wp.offset().top)+t.helpers.scrollTop()+20)):(n=t.position.getBoundingRect().top,t.opts.toolbarBottom&&(n+=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),(n+=t.opts.toolbarStickyOffset)>t.o_win.innerHeight-20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.o_win.innerHeight+20),n=t.position.getBoundingRect().top,t.opts.toolbarBottom||(n-=t.opts.toolbarStickyOffset),t.opts.iframe&&(n+=t.$iframe.offset().top,n-=t.helpers.scrollTop()),n<t.$tb.height()+20&&e(t.o_win).scrollTop(n+t.helpers.scrollTop()-t.$tb.height()-20))}function p(){var e,n=t.selection.element();!function(e){if(!e)return!1;var t=e.innerHTML;return!!((t=t.replace(/<span[^>]*? class\s*=\s*["']?fr-marker["']?[^>]+>\u200b<\/span>/gi,""))&&/\u200B/.test(t)&&0<t.replace(/\u200B/gi,"").length)}(n)||t.node.hasClass(n,"fr-marker")||"IFRAME"==n.tagName||(e=n,t.helpers.isIOS()&&0!==((e.textContent||"").match(/[\u3041-\u3096\u30A0-\u30FF\u4E00-\u9FFF\u3130-\u318F\uAC00-\uD7AF]/gi)||[]).length)||(t.selection.save(),function(e){for(var n=t.doc.createTreeWalker(e,NodeFilter.SHOW_TEXT,t.node.filter(function(e){return/\u200B/gi.test(e.textContent)}),!1);n.nextNode();){var r=n.currentNode;r.textContent=r.textContent.replace(/\u200B/gi,"")}}(n),t.selection.restore())}function h(r){var i=t.selection.element();if(i&&0<=["INPUT","TEXTAREA"].indexOf(i.tagName))return!0;if(r&&0===r.which&&n&&(r.which=n),t.helpers.isAndroid()&&t.browser.mozilla)return!0;if(o)return!1;if(r&&t.helpers.isIOS()&&r.which==e.FE.KEYCODE.ENTER&&t.doc.execCommand("undo"),!t.selection.isCollapsed())return!0;if(r&&(r.which===e.FE.KEYCODE.META||r.which==e.FE.KEYCODE.CTRL))return!0;if(r&&g(r.which))return!0;if(r&&!t.helpers.isIOS()&&(r.which==e.FE.KEYCODE.ENTER||r.which==e.FE.KEYCODE.BACKSPACE||37<=r.which&&r.which<=40&&!t.browser.msie))try{f()}catch(e){}p()}function m(e){if(-1!=navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}function g(t){if(t>=e.FE.KEYCODE.ARROW_LEFT&&t<=e.FE.KEYCODE.ARROW_DOWN)return!0}function v(n){if(n>=e.FE.KEYCODE.ZERO&&n<=e.FE.KEYCODE.NINE)return!0;if(n>=e.FE.KEYCODE.NUM_ZERO&&n<=e.FE.KEYCODE.NUM_MULTIPLY)return!0;if(n>=e.FE.KEYCODE.A&&n<=e.FE.KEYCODE.Z)return!0;if(t.browser.webkit&&0===n)return!0;switch(n){case e.FE.KEYCODE.SPACE:case e.FE.KEYCODE.QUESTION_MARK:case e.FE.KEYCODE.NUM_PLUS:case e.FE.KEYCODE.NUM_MINUS:case e.FE.KEYCODE.NUM_PERIOD:case e.FE.KEYCODE.NUM_DIVISION:case e.FE.KEYCODE.SEMICOLON:case e.FE.KEYCODE.FF_SEMICOLON:case e.FE.KEYCODE.DASH:case e.FE.KEYCODE.EQUALS:case e.FE.KEYCODE.FF_EQUALS:case e.FE.KEYCODE.COMMA:case e.FE.KEYCODE.PERIOD:case e.FE.KEYCODE.SLASH:case e.FE.KEYCODE.APOSTROPHE:case e.FE.KEYCODE.SINGLE_QUOTE:case e.FE.KEYCODE.OPEN_SQUARE_BRACKET:case e.FE.KEYCODE.BACKSLASH:case e.FE.KEYCODE.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}function y(n){var o=n.which;if(m(n)||37<=o&&o<=40||!v(o)&&o!=e.FE.KEYCODE.DELETE&&o!=e.FE.KEYCODE.BACKSPACE&&o!=e.FE.KEYCODE.ENTER&&o!=e.FE.KEYCODE.IME)return!0;r||(i=t.snapshot.get(),t.undo.canDo()||t.undo.saveStep()),clearTimeout(r),r=setTimeout(function(){r=null,t.undo.saveStep()},Math.max(250,t.opts.typingTimer))}function b(e){var n=e.which;if(m(e)||37<=n&&n<=40)return!0;i&&r?(t.undo.saveStep(i),i=null):void 0!==n&&0!==n||i||r||t.undo.saveStep()}function _(e){if(e&&"BR"==e.tagName)return!1;try{return 0===(e.textContent||"").length&&e.querySelector&&!e.querySelector(":scope > br")||e.childNodes&&1==e.childNodes.length&&e.childNodes[0].getAttribute&&("false"==e.childNodes[0].getAttribute("contenteditable")||t.node.hasClass(e.childNodes[0],"fr-img-caption"))}catch(e){return!1}}function w(n){var r=t.el.childNodes,i=t.html.defaultTag();return!(!n.target||n.target===t.el)||0===r.length||void(t.$el.outerHeight()-n.offsetY<=10?_(r[r.length-1])&&(i?t.$el.append("<"+i+">"+e.FE.MARKERS+"<br></"+i+">"):t.$el.append(e.FE.MARKERS+"<br>"),t.selection.restore(),f()):n.offsetY<=10&&_(r[0])&&(i?t.$el.prepend("<"+i+">"+e.FE.MARKERS+"<br></"+i+">"):t.$el.prepend(e.FE.MARKERS+"<br>"),t.selection.restore(),f()))}function E(){r&&clearTimeout(r)}return{_init:function(){t.events.on("keydown",y),t.events.on("input",a),t.events.on("mousedown",c),t.events.on("keyup input",b),t.events.on("keypress",l),t.events.on("keydown",d),t.events.on("keyup",h),t.events.on("destroy",E),t.events.on("html.inserted",h),t.events.on("cut",s),t.opts.multiLine&&t.events.on("click",w)},ctrlKey:m,isCharacter:v,isArrow:g,forceUndo:function(){r&&(clearTimeout(r),t.undo.saveStep(),i=null)},isIME:function(){return o},isBrowserAction:function(t){var n=t.which;return m(t)||n==e.FE.KEYCODE.F5},positionCaret:f}},e.FE.MODULES.accessibility=function(t){var n=!0;function r(e){e&&e.length&&!t.$el.find('[contenteditable="true"]').is(":focus")&&(e.data("blur-event-set")||e.parents(".fr-popup").length||(t.events.$on(e,"blur",function(){var n=e.parents(".fr-toolbar, .fr-popup").data("instance")||t;n.events.blurActive()&&!t.core.hasFocus()&&n.events.trigger("blur"),setTimeout(function(){n.events.enableBlur()},100)},!0),e.data("blur-event-set",!0)),(e.parents(".fr-toolbar, .fr-popup").data("instance")||t).events.disableBlur(),e.focus(),t.shared.$f_el=e)}function i(e,t){var n=t?"last":"first",i=e.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible")[n]();if(i.length)return r(i),!0}function o(e){return e.is("input, textarea, select")&&s(),t.events.disableBlur(),e.focus(),!0}function a(e,n){var r=e.find("input, textarea, button, select").filter(":visible").not(":disabled").filter(n?":last":":first");if(r.length)return o(r);if(t.shared.with_kb){var i=e.find(".fr-active-item:visible:first");if(i.length)return o(i);var a=e.find("[tabIndex]:visible:first");if(a.length)return o(a)}}function s(){0===t.$el.find(".fr-marker").length&&t.core.hasFocus()&&t.selection.save()}function l(){var e=t.popups.areVisible();if(e){var n=e.find(".fr-buttons");return n.find("button:focus, .fr-group span:focus").length?!i(e.data("instance").$tb):!i(n)}return!i(t.$tb)}function c(){var e=null;return t.shared.$f_el.is(".fr-dropdown.fr-active")?e=t.shared.$f_el:t.shared.$f_el.closest(".fr-dropdown-menu").prev().is(".fr-dropdown.fr-active")&&(e=t.shared.$f_el.closest(".fr-dropdown-menu").prev()),e}function u(n,o,s){if(t.shared.$f_el){var l=c();l&&(t.button.click(l),t.shared.$f_el=l);var u,d=n.find("button:visible:not(.fr-disabled), .fr-group span.fr-command:visible"),f=d.index(t.shared.$f_el);return 0===f&&!s||f==d.length-1&&s?(o&&(n.parent().is(".fr-popup")&&(u=!a(n.parent().children().not(".fr-buttons"),!s)),!1===u&&(t.shared.$f_el=null)),o&&!1===u||i(n,!s)):r(e(d.get(f+(s?1:-1)))),!1}}function d(e,t){return u(e,t,!0)}function f(e,t){return u(e,t)}function p(e){if(t.shared.$f_el){var n;if(t.shared.$f_el.is(".fr-dropdown.fr-active"))return r(n=e?t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.next().find(".fr-command:not(.fr-disabled)").last()),!1;if(t.shared.$f_el.is("a.fr-command"))return(n=e?t.shared.$f_el.closest("li").nextAll(":visible:first").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest("li").prevAll(":visible:first").find(".fr-command:not(.fr-disabled)").first()).length||(n=e?t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").first():t.shared.$f_el.closest(".fr-dropdown-menu").find(".fr-command:not(.fr-disabled)").last()),r(n),!1}}function h(){if(t.shared.$f_el){if(t.shared.$f_el.hasClass("fr-dropdown"))t.button.click(t.shared.$f_el);else if(t.shared.$f_el.is("button.fr-back")){t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus());var e=t.popups.areVisible(t);e&&(t.shared.with_kb=!1),t.button.click(t.shared.$f_el),v(e)}else{if(t.events.disableBlur(),t.button.click(t.shared.$f_el),t.shared.$f_el.attr("data-popup")){var n=t.popups.areVisible(t);n&&n.data("popup-button",t.shared.$f_el)}else if(t.shared.$f_el.attr("data-modal")){var r=t.modals.areVisible(t);r&&r.data("modal-button",t.shared.$f_el)}t.shared.$f_el=null}return!1}}function m(){t.shared.$f_el&&(t.events.disableBlur(),t.shared.$f_el.blur(),t.shared.$f_el=null),!1!==t.events.trigger("toolbar.focusEditor")&&(t.events.disableBlur(),t.browser.msie||t.$el.focus(),t.events.focus())}function g(r){r&&r.length&&(t.events.$on(r,"keydown",function(n){if(!e(n.target).is("a.fr-command, button.fr-command, .fr-group span.fr-command"))return!0;var i=r.parents(".fr-popup").data("instance")||r.data("instance")||t;t.shared.with_kb=!0;var o=i.accessibility.exec(n,r);return t.shared.with_kb=!1,o},!0),t.browser.msie||t.events.$on(r,"mouseenter","[tabIndex]",function(i){var o=r.parents(".fr-popup").data("instance")||r.data("instance")||t;if(!n)return i.stopPropagation(),void i.preventDefault();var a=e(i.currentTarget);o.shared.$f_el&&o.shared.$f_el.not(a)&&o.accessibility.focusEditor()},!0))}function v(e){var t=e.data("popup-button");t&&setTimeout(function(){r(t),e.data("popup-button",null)},0)}function y(e){var n=t.popups.areVisible(e);n&&n.data("popup-button",null)}function b(n){var r=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if(n.which==e.FE.KEYCODE.F10&&!r&&!n.shiftKey&&n.altKey){t.shared.with_kb=!0;var i=t.popups.areVisible(t),o=!1;return i&&(o=a(i.children().not(".fr-buttons"))),o||l(),t.shared.with_kb=!1,n.preventDefault(),n.stopPropagation(),!1}return!0}return{_init:function(){t.$wp?t.events.on("keydown",b,!0):t.events.$on(t.$win,"keydown",b,!0),t.events.on("mousedown",function(e){y(t),t.shared.$f_el&&(t.accessibility.restoreSelection(),e.stopPropagation(),t.events.disableBlur(),t.shared.$f_el=null)},!0),t.events.on("blur",function(){t.shared.$f_el=null,y(t)},!0)},registerPopup:function(r){var o,s,l=t.popups.get(r),c=(o=r,s=t.popups.get(o),{_tiKeydown:function(n){var r=s.data("instance")||t;if(!1===r.events.trigger("popup.tab",[n]))return!1;var l=n.which,c=s.find(":focus:first");if(e.FE.KEYCODE.TAB==l){n.preventDefault();var u=s.children().not(".fr-buttons"),d=u.find("input, textarea, button, select").filter(":visible").not(".fr-no-touch input, .fr-no-touch textarea, .fr-no-touch button, .fr-no-touch select, :disabled").toArray(),f=d.indexOf(this)+(n.shiftKey?-1:1);if(0<=f&&f<d.length)return r.events.disableBlur(),e(d[f]).focus(),n.stopPropagation(),!1;var p=s.find(".fr-buttons");if(p.length&&i(p,!!n.shiftKey))return n.stopPropagation(),!1;if(a(u))return n.stopPropagation(),!1}else{if(e.FE.KEYCODE.ENTER!=l||!n.target||"TEXTAREA"===n.target.tagName)return e.FE.KEYCODE.ESC==l?(n.preventDefault(),n.stopPropagation(),r.accessibility.restoreSelection(),r.popups.isVisible(o)&&s.find(".fr-back:visible").length?(r.opts.toolbarInline&&(r.events.disableBlur(),r.events.focus()),r.button.exec(s.find(".fr-back:visible:first")),v(s)):r.popups.isVisible(o)&&s.find(".fr-dismiss:visible").length?r.button.exec(s.find(".fr-dismiss:visible:first")):(r.popups.hide(o),r.opts.toolbarInline&&r.toolbar.showInline(null,!0),v(s)),!1):e.FE.KEYCODE.SPACE==l&&(c.is(".fr-submit")||c.is(".fr-dismiss"))?(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(c),!0):r.keys.isBrowserAction(n)?void n.stopPropagation():c.is("input[type=text], textarea")?void n.stopPropagation():e.FE.KEYCODE.SPACE==l&&(c.is(".fr-link-attr")||c.is("input[type=file]"))?void n.stopPropagation():(n.stopPropagation(),n.preventDefault(),!1);var h=null;0<s.find(".fr-submit:visible").length?h=s.find(".fr-submit:visible:first"):s.find(".fr-dismiss:visible").length&&(h=s.find(".fr-dismiss:visible:first")),h&&(n.preventDefault(),n.stopPropagation(),r.events.disableBlur(),r.button.exec(h))}},_tiMouseenter:function(){var e=s.data("instance")||t;y(e)}});g(l.find(".fr-buttons")),t.events.$on(l,"mouseenter","tabIndex",c._tiMouseenter,!0),t.events.$on(l.children().not(".fr-buttons"),"keydown","[tabIndex]",c._tiKeydown,!0),t.popups.onHide(r,function(){(l.data("instance")||t).accessibility.restoreSelection()}),t.popups.onShow(r,function(){n=!1,setTimeout(function(){n=!0},0)})},registerToolbar:g,focusToolbarElement:r,focusToolbar:i,focusContent:a,focusPopup:function(e){var r=e.children().not(".fr-buttons");r.data("mouseenter-event-set")||t.browser.msie||(t.events.$on(r,"mouseenter","[tabIndex]",function(i){var o=e.data("instance")||t;if(!n)return i.stopPropagation(),void i.preventDefault();var a=r.find(":focus:first");a.length&&!a.is("input, button, textarea, select")&&(o.events.disableBlur(),a.blur(),o.events.disableBlur(),o.events.focus())}),r.data("mouseenter-event-set",!0)),!a(r)&&t.shared.with_kb&&i(e.find(".fr-buttons"))},focusModal:function(e){t.core.hasFocus()||(t.events.disableBlur(),t.events.focus()),t.accessibility.saveSelection(),t.events.disableBlur(),t.$el.blur(),t.selection.clear(),t.events.disableBlur(),t.shared.with_kb?e.find(".fr-command[tabIndex], [tabIndex]").first().focus():e.find("[tabIndex]:first").focus()},focusEditor:m,focusPopupButton:v,focusModalButton:function(e){var t=e.data("modal-button");t&&setTimeout(function(){r(t),e.data("modal-button",null)},0)},hasFocus:function(){return null!=t.shared.$f_el},exec:function(n,i){var o=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey,a=n.which,s=!1;return a!=e.FE.KEYCODE.TAB||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_RIGHT||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.TAB||o||!n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_LEFT||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_UP||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ARROW_DOWN||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ENTER&&a!=e.FE.KEYCODE.SPACE||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.ESC||o||n.shiftKey||n.altKey?a!=e.FE.KEYCODE.F10||o||n.shiftKey||!n.altKey||(s=l()):s=function(e){if(t.shared.$f_el){var n=c();return n?(t.button.click(n),r(n)):e.parent().find(".fr-back:visible").length?(t.shared.with_kb=!1,t.opts.toolbarInline&&(t.events.disableBlur(),t.events.focus()),t.button.exec(e.parent().find(".fr-back:visible:first")),v(e.parent())):t.shared.$f_el.is("button, .fr-group span")&&(e.parent().is(".fr-popup")?(t.accessibility.restoreSelection(),t.shared.$f_el=null,!1!==t.events.trigger("toolbar.esc")&&(t.popups.hide(e.parent()),t.opts.toolbarInline&&t.toolbar.showInline(null,!0),v(e.parent()))):m()),!1}}(i):s=h():s=t.shared.$f_el&&t.shared.$f_el.is(".fr-dropdown:not(.fr-active)")?h():p(!0):s=p():s=f(i):s=f(i,!0):s=d(i):s=d(i,!0),t.shared.$f_el||void 0!==s||(s=!0),!s&&t.keys.isBrowserAction(n)&&(s=!0),!!s||(n.preventDefault(),n.stopPropagation(),!1)},saveSelection:s,restoreSelection:function(){t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur())}}},e.FE.MODULES.format=function(t){function n(e,t){var n="<"+e;for(var r in t)t.hasOwnProperty(r)&&(n+=" "+r+'="'+t[r]+'"');return n+=">"}function r(e,t){var n=e;for(var r in t)t.hasOwnProperty(r)&&(n+="id"==r?"#"+t[r]:"class"==r?"."+t[r]:"["+r+'="'+t[r]+'"]');return n}function i(e,t){return!(!e||e.nodeType!=Node.ELEMENT_NODE)&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}function o(r,i,a){if(r){for(;r.nodeType===Node.COMMENT_NODE;)r=r.nextSibling;if(r){if(t.node.isBlock(r)&&"HR"!==r.tagName)return o(r.firstChild,i,a),!1;for(var s=e(n(i,a)).insertBefore(r),l=r;l&&!e(l).is(".fr-marker")&&0===e(l).find(".fr-marker").length&&"UL"!=l.tagName&&"OL"!=l.tagName;){var c=l;if(t.node.isBlock(l)&&"HR"!==r.tagName)return o(l.firstChild,i,a),!1;l=l.nextSibling,s.append(c)}if(l)(e(l).find(".fr-marker").length||"UL"==l.tagName||"OL"==l.tagName)&&o(l.firstChild,i,a);else{for(var u=s.get(0).parentNode;u&&!u.nextSibling&&!t.node.isElement(u);)u=u.parentNode;if(u){var d=u.nextSibling;d&&(t.node.isBlock(d)?"HR"===d.tagName?o(d.nextSibling,i,a):o(d.firstChild,i,a):o(d,i,a))}}s.is(":empty")&&s.remove()}}}function a(a,s){var l;if(void 0===s&&(s={}),s.style&&delete s.style,t.selection.isCollapsed())t.markers.insert(),t.$el.find(".fr-marker").replaceWith(n(a,s)+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</"+a+">"),t.selection.restore();else{var c;t.selection.save(),o(t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,a,s);do{for(c=t.$el.find(r(a,s)+" > "+r(a,s)),l=0;l<c.length;l++)c[l].outerHTML=c[l].innerHTML}while(c.length);t.el.normalize();var u=t.el.querySelectorAll(".fr-marker");for(l=0;l<u.length;l++){var d=e(u[l]);!0===d.data("type")?i(d.get(0).nextSibling,r(a,s))&&d.next().prepend(d):i(d.get(0).previousSibling,r(a,s))&&d.prev().append(d)}t.selection.restore()}}function s(e,n,o,a){if(!a){var s=!1;if(!0===e.data("type"))for(;t.node.isFirstSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().before(e),s=!0;else if(!1===e.data("type"))for(;t.node.isLastSibling(e.get(0))&&!e.parent().is(t.$el)&&!e.parent().is("ol")&&!e.parent().is("ul");)e.parent().after(e),s=!0;if(s)return!0}if(e.parents(n).length||void 0===n){var l="",c="",u=e.parent();if(u.is(t.$el)||t.node.isBlock(u.get(0)))return!1;for(;!t.node.isBlock(u.parent().get(0))&&(void 0===n||void 0!==n&&!i(u.get(0),r(n,o)));)l+=t.node.closeTagString(u.get(0)),c=t.node.openTagString(u.get(0))+c,u=u.parent();var d=e.get(0).outerHTML;e.replaceWith('<span id="mark"></span>');var f=u.html().replace(/<span id="mark"><\/span>/,l+t.node.closeTagString(u.get(0))+c+d+l+t.node.openTagString(u.get(0))+c);return u.replaceWith(t.node.openTagString(u.get(0))+f+t.node.closeTagString(u.get(0))),!0}return!1}function l(n,o){void 0===o&&(o={}),o.style&&delete o.style;var a=t.selection.isCollapsed();t.selection.save();for(var l=!0;l;){l=!1;for(var c=t.$el.find(".fr-marker"),u=0;u<c.length;u++){var d=e(c[u]),f=null;if(d.attr("data-cloned")||a||(f=d.clone().removeClass("fr-marker").addClass("fr-clone"),!0===d.data("type")?d.attr("data-cloned",!0).after(f):d.attr("data-cloned",!0).before(f)),s(d,n,o,a)){l=!0;break}}}!function n(o,a,s,l){for(var c=t.node.contents(o.get(0)),u=0;u<c.length;u++){var d=c[u];if(t.node.hasClass(d,"fr-marker"))a=(a+1)%2;else if(a)if(0<e(d).find(".fr-marker").length)a=n(e(d),a,s,l);else{for(var f=e(d).find(s||"*:not(br)"),p=f.length-1;0<=p;p--){var h=f[p];t.node.isBlock(h)||t.node.isVoid(h)||void 0!==s&&!i(h,r(s,l))?t.node.isBlock(h)&&void 0===s&&"TABLE"!=d.tagName&&t.node.clearAttributes(h):t.node.hasClass(h,"fr-clone")||(h.outerHTML=h.innerHTML)}void 0===s&&d.nodeType==Node.ELEMENT_NODE&&!t.node.isVoid(d)||i(d,r(s,l))?t.node.isBlock(d)?void 0===s&&d.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(d)&&"TABLE"!=d.tagName&&t.node.clearAttributes(d):t.node.hasClass(d,"fr-clone")||(d.outerHTML=d.innerHTML):void 0===s&&d.nodeType==Node.ELEMENT_NODE&&t.node.isBlock(d)&&"TABLE"!=d.tagName&&t.node.clearAttributes(d)}else 0<e(d).find(".fr-marker").length&&(a=n(e(d),a,s,l))}return a}(t.$el,0,n,o),a||(t.$el.find(".fr-marker").remove(),t.$el.find(".fr-clone").removeClass("fr-clone").addClass("fr-marker")),a&&t.$el.find(".fr-marker").before(e.FE.INVISIBLE_SPACE).after(e.FE.INVISIBLE_SPACE),t.html.cleanEmptyTags(),t.el.normalize(),t.selection.restore()}function c(n,r){var i,a,l,c,d,f=null;if(t.selection.isCollapsed()){t.markers.insert();var p=(a=t.$el.find(".fr-marker")).parent();if(t.node.openTagString(p.get(0))=='<span style="'+n+": "+p.css(n)+';">'){if(t.node.isEmpty(p.get(0)))f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),p.replaceWith(f);else{var h={};h["style*"]=n+":",s(a,"span",h,!0),a=t.$el.find(".fr-marker"),r?(f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(f)):a.replaceWith(e.FE.INVISIBLE_SPACE+e.FE.MARKERS)}t.html.cleanEmptyTags()}else t.node.isEmpty(p.get(0))&&p.is("span")?(a.replaceWith(e.FE.MARKERS),p.css(n,r)):(f=e('<span style="'+n+": "+r+';">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>"),a.replaceWith(f));f&&u(f,n,r)}else{if(t.selection.save(),null==r||"color"==n&&0<t.$el.find(".fr-marker").parents("u, a").length){var m=t.$el.find(".fr-marker");for(i=0;i<m.length;i++)if(!0===(a=e(m[i])).data("type"))for(;t.node.isFirstSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().before(a);else for(;t.node.isLastSibling(a.get(0))&&!a.parent().is(t.$el)&&!t.node.isElement(a.parent().get(0))&&!t.node.isBlock(a.parent().get(0));)a.parent().after(a)}var g=t.$el.find('.fr-marker[data-type="true"]').get(0).nextSibling,v={class:"fr-unprocessed"};for(r&&(v.style=n+": "+r+";"),o(g,"span",v),t.$el.find(".fr-marker + .fr-unprocessed").each(function(){e(this).prepend(e(this).prev())}),t.$el.find(".fr-unprocessed + .fr-marker").each(function(){e(this).prev().append(this)}),(r||"").match(/\dem$/)&&t.$el.find("span.fr-unprocessed").removeClass("fr-unprocessed");0<t.$el.find("span.fr-unprocessed").length;){if((f=t.$el.find("span.fr-unprocessed:first").removeClass("fr-unprocessed")).parent().get(0).normalize(),f.parent().is("span")&&1==f.parent().get(0).childNodes.length){f.parent().css(n,r);var y=f;f=f.parent(),y.replaceWith(y.html())}var b=f.find("span");for(i=b.length-1;0<=i;i--)l=b[i],c=n,d=void 0,(d=e(l)).css(c,""),""===d.attr("style")&&d.replaceWith(d.html());u(f,n,r)}}!function(){for(var n;0<t.$el.find(".fr-split:empty").length;)t.$el.find(".fr-split:empty").remove();t.$el.find(".fr-split").removeClass("fr-split"),t.$el.find('[style=""]').removeAttr("style"),t.$el.find('[class=""]').removeAttr("class"),t.html.cleanEmptyTags(),e(t.$el.find("span").get().reverse()).each(function(){this.attributes&&0!==this.attributes.length||e(this).replaceWith(this.innerHTML)}),t.el.normalize();var r=t.$el.find("span[style] + span[style]");for(n=0;n<r.length;n++){var i=e(r[n]),o=e(r[n]).prev();i.get(0).previousSibling==o.get(0)&&t.node.openTagString(i.get(0))==t.node.openTagString(o.get(0))&&(i.prepend(o.html()),o.remove())}t.$el.find("span[style] span[style]").each(function(){if(0<=e(this).attr("style").indexOf("font-size")){var t=e(this).parents("span[style]");0<=t.attr("style").indexOf("background-color")&&(e(this).attr("style",e(this).attr("style")+";"+t.attr("style")),s(e(this),"span[style]",{},!1))}}),t.el.normalize(),t.selection.restore()}()}function u(n,r,i){var o,a,s,l=n.parentsUntil(t.$el,"span[style]"),c=[];for(o=l.length-1;0<=o;o--)a=l[o],s=r,0===e(a).attr("style").indexOf(s+":")||0<=e(a).attr("style").indexOf(";"+s+":")||0<=e(a).attr("style").indexOf("; "+s+":")||c.push(l[o]);if((l=l.not(c)).length){for(var u="",d="",f="",p="",h=n.get(0);h=h.parentNode,e(h).addClass("fr-split"),u+=t.node.closeTagString(h),d=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+d,l.get(0)!=h&&(f+=t.node.closeTagString(h),p=t.node.openTagString(e(h).clone().addClass("fr-split").get(0))+p),l.get(0)!=h;);var m=u+t.node.openTagString(e(l.get(0)).clone().css(r,i||"").get(0))+p+n.css(r,"").get(0).outerHTML+f+"</span>"+d;n.replaceWith('<span id="fr-break"></span>');var g=l.get(0).outerHTML;e(l.get(0)).replaceWith(g.replace(/<span id="fr-break"><\/span>/g,m))}}function d(e,n){void 0===n&&(n={}),n.style&&delete n.style;var o=t.selection.ranges(0),a=o.startContainer;if(a.nodeType==Node.ELEMENT_NODE&&0<a.childNodes.length&&a.childNodes[o.startOffset]&&(a=a.childNodes[o.startOffset]),!o.collapsed&&a.nodeType==Node.TEXT_NODE&&o.startOffset==(a.textContent||"").length){for(;!t.node.isBlock(a.parentNode)&&!a.nextSibling;)a=a.parentNode;a.nextSibling&&(a=a.nextSibling)}for(var s=a;s&&s.nodeType==Node.ELEMENT_NODE&&!i(s,r(e,n));)s=s.firstChild;if(s&&s.nodeType==Node.ELEMENT_NODE&&i(s,r(e,n)))return!0;var l=a;for(l&&l.nodeType!=Node.ELEMENT_NODE&&(l=l.parentNode);l&&l.nodeType==Node.ELEMENT_NODE&&l!=t.el&&!i(l,r(e,n));)l=l.parentNode;return!(!l||l.nodeType!=Node.ELEMENT_NODE||l==t.el||!i(l,r(e,n)))}return{is:d,toggle:function(e,t){d(e,t)?l(e,t):a(e,t)},apply:a,remove:l,applyStyle:c,removeStyle:function(e){c(e,null)}}},e.extend(e.FE.DEFAULTS,{indentMargin:20}),e.FE.COMMANDS={bold:{title:"Bold",toggle:!0,refresh:function(e){var t=this.format.is("strong");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},italic:{title:"Italic",toggle:!0,refresh:function(e){var t=this.format.is("em");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},underline:{title:"Underline",toggle:!0,refresh:function(e){var t=this.format.is("u");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},strikeThrough:{title:"Strikethrough",toggle:!0,refresh:function(e){var t=this.format.is("s");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},subscript:{title:"Subscript",toggle:!0,refresh:function(e){var t=this.format.is("sub");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},superscript:{title:"Superscript",toggle:!0,refresh:function(e){var t=this.format.is("sup");e.toggleClass("fr-active",t).attr("aria-pressed",t)}},outdent:{title:"Decrease Indent"},indent:{title:"Increase Indent"},undo:{title:"Undo",undo:!1,forcedRefresh:!0,disabled:!0},redo:{title:"Redo",undo:!1,forcedRefresh:!0,disabled:!0},insertHR:{title:"Insert Horizontal Line"},clearFormatting:{title:"Clear Formatting"},selectAll:{title:"Select All",undo:!1}},e.FE.RegisterCommand=function(t,n){e.FE.COMMANDS[t]=n},e.FE.MODULES.commands=function(t){function n(e){return t.html.defaultTag()&&(e="<"+t.html.defaultTag()+">"+e+"</"+t.html.defaultTag()+">"),e}var r={bold:function(){o(0,"strong")},subscript:function(){t.format.is("sup")&&t.format.remove("sup"),o(0,"sub")},superscript:function(){t.format.is("sub")&&t.format.remove("sub"),o(0,"sup")},italic:function(){o(0,"em")},strikeThrough:function(){o(0,"s")},underline:function(){o(0,"u")},undo:function(){t.undo.run()},redo:function(){t.undo.redo()},indent:function(){a(1)},outdent:function(){a(-1)},show:function(){t.opts.toolbarInline&&t.toolbar.showInline(null,!0)},insertHR:function(){t.selection.remove();var r="";t.core.isEmpty()&&(r=n(r="<br>")),t.html.insert('<hr id="fr-just">'+r);var i,o=t.$el.find("hr#fr-just");if(o.removeAttr("id"),0===o.next().length){var a=t.html.defaultTag();a?o.after(e("<"+a+">").append("<br>")):o.after("<br>")}o.prev().is("hr")?i=t.selection.setAfter(o.get(0),!1):o.next().is("hr")?i=t.selection.setBefore(o.get(0),!1):t.selection.setAfter(o.get(0),!1)||t.selection.setBefore(o.get(0),!1),i||void 0===i||(r=n(r=e.FE.MARKERS+"<br>"),o.after(r)),t.selection.restore()},clearFormatting:function(){t.format.remove()},selectAll:function(){t.doc.execCommand("selectAll",!1,!1)}};function i(n,i){if(!1!==t.events.trigger("commands.before",e.merge([n],i||[]))){var o=e.FE.COMMANDS[n]&&e.FE.COMMANDS[n].callback||r[n],a=!0,s=!1;e.FE.COMMANDS[n]&&(void 0!==e.FE.COMMANDS[n].focus&&(a=e.FE.COMMANDS[n].focus),void 0!==e.FE.COMMANDS[n].accessibilityFocus&&(s=e.FE.COMMANDS[n].accessibilityFocus)),(!t.core.hasFocus()&&a&&!t.popups.areVisible()||!t.core.hasFocus()&&s&&t.accessibility.hasFocus())&&t.events.focus(!0),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&(t.$el.find(".fr-marker").length&&(t.events.disableBlur(),t.selection.restore()),t.undo.saveStep()),o&&o.apply(t,e.merge([n],i||[])),t.events.trigger("commands.after",e.merge([n],i||[])),e.FE.COMMANDS[n]&&!1!==e.FE.COMMANDS[n].undo&&t.undo.saveStep()}}function o(e,n){t.format.toggle(n)}function a(n){t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore();for(var r=t.selection.blocks(),i=0;i<r.length;i++)if("LI"!=r[i].tagName&&"LI"!=r[i].parentNode.tagName){var o=e(r[i]),a="rtl"==t.opts.direction||"rtl"==o.css("direction")?"margin-right":"margin-left",s=t.helpers.getPX(o.css(a));if(o.width()<2*t.opts.indentMargin&&0<n)continue;o.css(a,Math.max(s+n*t.opts.indentMargin,0)||""),o.removeClass("fr-temp-div")}t.selection.save(),t.html.unwrap(),t.selection.restore()}function s(e){return function(){i(e)}}var l={};for(var c in r)r.hasOwnProperty(c)&&(l[c]=s(c));return e.extend(l,{exec:i,_init:function(){t.events.on("keydown",function(e){var n=t.selection.element();if(n&&"HR"==n.tagName&&!t.keys.isArrow(e.which))return e.preventDefault(),!1}),t.events.on("keyup",function(n){var r=t.selection.element();if(r&&"HR"==r.tagName)if(n.which==e.FE.KEYCODE.ARROW_LEFT||n.which==e.FE.KEYCODE.ARROW_UP){if(r.previousSibling)return t.node.isBlock(r.previousSibling)?t.selection.setAtEnd(r.previousSibling):e(r).before(e.FE.MARKERS),t.selection.restore(),!1}else if((n.which==e.FE.KEYCODE.ARROW_RIGHT||n.which==e.FE.KEYCODE.ARROW_DOWN)&&r.nextSibling)return t.node.isBlock(r.nextSibling)?t.selection.setAtStart(r.nextSibling):e(r).after(e.FE.MARKERS),t.selection.restore(),!1}),t.events.on("mousedown",function(e){if(e.target&&"HR"==e.target.tagName)return e.preventDefault(),e.stopPropagation(),!1}),t.events.on("mouseup",function(){var n=t.selection.element();n==t.selection.endElement()&&n&&"HR"==n.tagName&&(n.nextSibling&&(t.node.isBlock(n.nextSibling)?t.selection.setAtStart(n.nextSibling):e(n).after(e.FE.MARKERS)),t.selection.restore())})}})},e.FE.MODULES.data=function(t){var n="NCKB1zwtPA9tqzajXC2c2A7B-16VD3spzJ1C9C3D5oOF2OB1NB1LD7VA5QF4TE3gytXB2A4C-8VA2AC4E1D3GB2EB2KC3KD1MF1juuSB1A8C6yfbmd1B2a1A5qdsdB2tivbC3CB1KC1CH1eLA2sTF1B4I4H-7B-21UB6b1F5bzzzyAB4JC3MG2hjdKC1JE6C1E1cj1pD-16pUE5B4prra2B5ZB3D3C3pxj1EA6A3rnJA2C-7I-7JD9D1E1wYH1F3sTB5TA2G4H4ZA22qZA5BB3mjcvcCC3JB1xillavC-21VE6PC5SI4YC5C8mb1A3WC3BD2B5aoDA2qqAE3A5D-17fOD1D5RD4WC10tE6OAZC3nF-7b1C4A4D3qCF2fgmapcromlHA2QA6a1E1D3e1A6C2bie2F4iddnIA7B2mvnwcIB5OA1DB2OLQA3PB10WC7WC5d1E3uI-7b1D5D6b1E4D2arlAA4EA1F-11srxI-7MB1D7PF1E5B4adB-21YD5vrZH3D3xAC4E1A2GF2CF2J-7yNC2JE1MI2hH-7QB1C6B5B-9bA-7XB13a1B5VievwpKB4LA3NF-10H-9I-8hhaC-16nqPG4wsleTD5zqYF3h1G2B7B4yvGE2Pi1H-7C-21OE6B1uLD1kI4WC1E7C5g1D-8fue1C8C6c1D4D3Hpi1CC4kvGC2E1legallyXB4axVA11rsA4A-9nkdtlmzBA2GD3A13A6CB1dabE1lezrUE6RD5TB4A-7f1C8c1B5d1D4D3tyfCD5C2D2==",r=function(){for(var e=0,t=document.domain,n=t.split("."),r="_gd"+(new Date).getTime();e<n.length-1&&-1==document.cookie.indexOf(r+"="+r);)t=n.slice(-1-++e).join("."),document.cookie=r+"="+r+";domain="+t+";";return document.cookie=r+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",(t||"").replace(/(^\.*)|(\.*$)/g,"")}();function i(e){return e}var o,a,s=i(function(e){if(!e)return e;for(var t="",n=i("charCodeAt"),r=i("fromCharCode"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".indexOf(e[0]),a=1;a<e.length-2;a++){for(var s=l(++o),u=e[n](a),d="";/[0-9-]/.test(e[a+1]);)d+=e[++a];u=c(u,s,d=parseInt(d,10)||0),u^=o-1&31,t+=String[r](u)}return t});function l(e){for(var t=e.toString(),n=0,r=0;r<t.length;r++)n+=parseInt(t.charAt(r),10);return 10<n?n%9+1:n}function c(e,t,n){for(var r=Math.abs(n);0<r--;)e-=t;return n<0&&(e+=123),e}function u(e){return e&&"block"!==e.css("display")?(e.remove(),!0):e&&0===t.helpers.getPX(e.css("height"))?(e.remove(),!0):!(!e||"absolute"!==e.css("position")&&"fixed"!==e.css("position")||(e.remove(),0))}function d(e){return e&&0===t.$box.find(e).length}var f=0;function p(){if(10<f&&(t[i(s("0ppecjvc=="))](),setTimeout(function(){e.FE=null},10)),!t.$box)return!1;t.$wp.prepend(s(i(s(n)))),o=t.$wp.find("> div:first"),a=o.find("> a"),"rtl"==t.opts.direction&&o.css("left","auto").css("right",0).attr("direction","rtl"),f++}function h(e){for(var t=[s("9qqG-7amjlwq=="),s("KA3B3C2A6D1D5H5H1A3=="),s("3B9B3B5F3C4G3E3=="),s("QzbzvxyB2yA-9m=="),s("ji1kacwmgG5bc=="),s("nmA-13aogi1A3c1jd=="),s("BA9ggq=="),s("emznbjbH3fij=="),s("tkC-22d1qC-13sD1wzF-7==")],n=0;n<t.length;n++)if(String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return(void 0===t||t>this.length)&&(t=this.length),this.substring(t-e.length,t)===e}),e.endsWith(t[n]))return!0;return!1}return{_init:function(){var l=t.o_win.FEK;try{l=l||localStorage&&localStorage.FEK}catch(e){}l=t.opts.key||l||[""];var c=s(i("ziRA1E3B9pA5B-11D-11xg1A3ZB5D1D4B-11ED2EG2pdeoC1clIH4wB-22yQD5uF4YE3E3A9=="));"string"==typeof l&&(l=[l]);for(var f,m,g,v=!(t.ul=!0),y=0,b=0;b<l.length;b++){var _=(m=l[b],3===(g=(s(m)||"").split("|")).length?g:[null,null,s(m)||""]),w=_[2];if(w===s(i(s("mcVRDoB1BGILD7YFe1BTXBA7B6==")))||0<=w.indexOf(r,w.length-r.length)||h(r)){if(!((null===(f=_[1])||new Date(f)<new Date(s("fA4B3E3C1I3H2C6C6C3E4==")))&&0<(r||"").length)||h(r)){t.ul=!1;break}v=!0,n="RCZB17botVG4A-8yzia1C4A5DG3CD2cFB4qflmCE4I2FB1SC7F6PE4WE3RD6e2A4c1D3d1E2E3ehxdGE3CE2IB2LC1HG2LE1QA3QC7B-13cC-9epmkjc1B4e1C4pgjgvkOC5E1eNE1HB2LD2B-13WD5tvabUA5a1A4f1A2G3C2A-21cihKE3FE2DB2cccJE1iC-7G-7tD-17tVD6A-9qC-7QC7a1E4B4je1E3E2G2ecmsAA1xH-8HB11C1D1lgzQA3dTB8od1D4XE3ohb1B4E4D3mbLA10NA7C-21d1genodKC11PD9PE5tA-8UI3ZC5XB5B-11qXF2F-7wtwjAG3NA1IB1OD1HC1RD4QJ4evUF2D5XG2G4XA8pqocH1F3G2J2hcpHC4D1MD4C1MB8PD5klcQD1A8A6e2A3ed1E2A24A7HC5C3qA-9tiA-61dcC3MD1LE1D4SA3A9ZZXSE4g1C3Pa2C5ufbcGI3I2B4skLF2CA1vxB-22wgUC4kdH-8cVB5iwe1A2D3H3G-7DD5JC2ED2OH2JB10D3C2xHE1KA29PB11wdC-11C4cixb2C7a1C4YYE3B2A15uB-21wpCA1MF1NuC-21dyzD6pPG4I-7pmjc1A4yte1F3B-22yvCC3VbC-7qC-22qNE2hC1vH-8zad1RF6WF3DpI-7C8A-16hpf1F3D2ylalB-13BB2lpA-63IB3uOF6D5G4gabC-21UD2A3PH4ZA20B11b2C6ED4A2H3I1A15DB4KD2laC-8LA5B8B7==",y=_[0]||-1}}var E=new Image;!0===t.ul&&(p(),E.src=v?i(s(c))+"e="+y:i(s(c))+"u"),!0===t.ul&&(t.events.on("contentChanged",function(){(u(o)||u(a)||d(o)||d(a))&&p()}),t.events.on("html.get",function(e){return e+'<p data-f-id="pbf" style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" title="Froala Editor">Froala Editor</a></p>'})),t.events.on("html.set",function(){var n=t.el.querySelector('[data-f-id="pbf"]');n&&e(n).remove()}),t.events.on("destroy",function(){o&&o.length&&o.remove()},!0)}}},e.extend(e.FE.DEFAULTS,{pastePlain:!1,pasteDeniedTags:["colgroup","col","meta"],pasteDeniedAttrs:["class","id","style"],pasteAllowedStyleProps:[".*"],pasteAllowLocalImages:!1}),e.FE.MODULES.paste=function(t){var n,r,i,o;function a(e,n){try{t.win.localStorage.setItem("fr-copied-html",e),t.win.localStorage.setItem("fr-copied-text",n)}catch(e){}}function s(n){var r=t.html.getSelected();a(r,e("<div>").html(r).text()),"cut"==n.type&&(t.undo.saveStep(),setTimeout(function(){t.selection.save(),t.html.wrap(),t.selection.restore(),t.events.focus(),t.undo.saveStep()},0))}var l=!1;function c(o){if(t.edit.isDisabled())return!1;if(l)return!1;if(o.originalEvent&&(o=o.originalEvent),!1===t.events.trigger("paste.before",[o]))return o.preventDefault(),!1;if(t.$win.scrollTop(),o&&o.clipboardData&&o.clipboardData.getData){var a="",s=o.clipboardData.types;if(t.helpers.isArray(s))for(var c=0;c<s.length;c++)a+=s[c]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=o.clipboardData.getData("text/rtf")),/text\/html/.test(a)&&!t.browser.safari?n=o.clipboardData.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/public.rtf/.test(a)&&t.browser.safari&&(n=o.clipboardData.getData("text/rtf")),""!==n)return d(),o.preventDefault&&(o.stopPropagation(),o.preventDefault()),!1;n=null}return function(){var r;t.selection.save(),t.events.disableBlur(),n=null,i?(i.html(""),t.browser.edge&&t.opts.iframe&&t.$el.append(i)):(i=e('<div contenteditable="true" style="position: fixed; top: 0; left: -9999px; height: 100%; width: 0; word-break: break-all; overflow:hidden; z-index: 2147483647; line-height: 140%; -moz-user-select: text; -webkit-user-select: text; -ms-user-select: text; user-select: text;" tabIndex="-1"></div>'),t.browser.webkit||t.browser.mozilla?(i.css("top",t.$sc.scrollTop()),t.$el.after(i)):t.browser.edge&&t.opts.iframe?t.$el.append(i):t.$box.after(i),t.events.on("destroy",function(){i.remove()})),t.helpers.isIOS()&&t.$sc&&(r=t.$sc.scrollTop()),t.opts.iframe&&t.$el.attr("contenteditable","false"),i.focus(),t.helpers.isIOS()&&t.$sc&&t.$sc.scrollTop(r),t.win.setTimeout(d,1)}(),!1}function u(i){if(i.originalEvent&&(i=i.originalEvent),i&&i.dataTransfer&&i.dataTransfer.getData){var a="",s=i.dataTransfer.types;if(t.helpers.isArray(s))for(var l=0;l<s.length;l++)a+=s[l]+";";else a=s;if(n="",/text\/rtf/.test(a)&&(r=i.dataTransfer.getData("text/rtf")),/text\/html/.test(a)?n=i.dataTransfer.getData("text/html"):/text\/rtf/.test(a)&&t.browser.safari?n=r:/text\/plain/.test(a)&&!this.browser.mozilla&&(n=t.html.escapeEntities(i.dataTransfer.getData("text/plain")).replace(/\n/g,"<br>")),""!==n){t.keys.forceUndo(),o=t.snapshot.get(),t.selection.save(),t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-helper");var c=t.markers.insertAtPoint(i);if(t.$el.find(".fr-marker").removeClass("fr-marker").addClass("fr-marker-placeholder"),t.$el.find(".fr-marker-helper").addClass("fr-marker").removeClass("fr-marker-helper"),t.selection.restore(),t.selection.remove(),t.$el.find(".fr-marker-placeholder").addClass("fr-marker").removeClass("fr-marker-placeholder"),!1!==c){var u=t.el.querySelector(".fr-marker");return e(u).replaceWith(e.FE.MARKERS),t.selection.restore(),d(),i.preventDefault&&(i.stopPropagation(),i.preventDefault()),!1}}else n=null}}function d(){t.opts.iframe&&t.$el.attr("contenteditable","true"),t.browser.edge&&t.opts.iframe&&t.$box.after(i),o||(t.keys.forceUndo(),o=t.snapshot.get()),n||(n=i.get(0).innerHTML,t.selection.restore(),t.events.enableBlur());var e=n.match(/(class=\"?Mso|class=\'?Mso|class="?Xl|class='?Xl|class=Xl|style=\"[^\"]*\bmso\-|style=\'[^\']*\bmso\-|w:WordDocument)/gi),r=t.events.chainTrigger("paste.beforeCleanup",n);r&&"string"==typeof r&&(n=r),(!e||e&&!1!==t.events.trigger("paste.wordPaste",[n]))&&p(n,e)}function f(e){for(var t="",n=0;n++<e;)t+="&nbsp;";return t}function p(r,i,a){var s,l=null,c=null;if(0<=r.toLowerCase().indexOf("<body")){var u="";0<=r.indexOf("<style")&&(u=r.replace(/[.\s\S\w\W<>]*(<style[^>]*>[\s]*[.\s\S\w\W<>]*[\s]*<\/style>)[.\s\S\w\W<>]*/gi,"$1")),r=u+r.replace(/[.\s\S\w\W<>]*<body[^>]*>[\s]*([.\s\S\w\W<>]*)[\s]*<\/body>[.\s\S\w\W<>]*/gi,"$1");var d=0,p="";r.replace(/<pre.*?>([\s\S]*?)<\/pre>/gi,function(e,t,n){d<n&&(p+=r.substring(d,n).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),p+=e,d=n+e.length}),r.length>d+1&&(p+=r.substring(d,r.length).replace(/ \n/g," ").replace(/\n /g," ").replace(/([^>])\n([^<])/g,"$1 $2")),r=p}var h=!1;0<=r.indexOf('id="docs-internal-guid')&&(r=r.replace(/^[\w\W\s\S]* id="docs-internal-guid[^>]*>([\w\W\s\S]*)<\/b>[\w\W\s\S]*$/g,"$1"),h=!0),0<=r.indexOf('content="Sheets"')&&(r=r.replace(/width:0px;/g,""));var g=!1,v=!1;if(!i)if(g=function(n){var r=null;try{r=t.win.localStorage.getItem("fr-copied-text")}catch(e){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(r),v=function(){var r=null;try{r=t.win.localStorage.getItem("fr-dragged-content-text")}catch(e){}return!(!r||e("<div>").html(n).text().replace(/\u00A0/gi," ").replace(/\r|\n/gi,"")!=r.replace(/\u00A0/gi," ").replace(/\r|\n/gi,""))}(),g&&(r=t.win.localStorage.getItem("fr-copied-html")),v&&(g=!0,r=t.win.localStorage.getItem("fr-dragged-content-html")),g)r=t.clean.html(r,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs);else{var y=t.opts.htmlAllowedStyleProps;t.opts.htmlAllowedStyleProps=t.opts.pasteAllowedStyleProps,t.opts.htmlAllowComments=!1,r=(r=(r=r.replace(/<span class="Apple-tab-span">\s*<\/span>/g,f(t.opts.tabSpaces||4))).replace(/<span class="Apple-tab-span" style="white-space:pre">(\t*)<\/span>/g,function(e,n){return f(n.length*(t.opts.tabSpaces||4))})).replace(/\t/g,f(t.opts.tabSpaces||4)),r=t.clean.html(r,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs),t.opts.htmlAllowedStyleProps=y,t.opts.htmlAllowComments=!0,r=(r=(r=m(r)).replace(/\r/g,"")).replace(/^ */g,"").replace(/ *$/g,"")}!i||t.wordPaste&&a||(0===(r=r.replace(/^\n*/g,"").replace(/^ /g,"")).indexOf("<colgroup>")&&(r="<table>"+r+"</table>"),r=m(r=function(e){var n;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/<p(.*?)class="?'?MsoListParagraph"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li>$3</li></ul>")).replace(/<p(.*?)class="?'?NumberedText"?'? ([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li>$3</li></ol>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ul><li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpFirst"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<ol><li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?NumberedTextCxSpMiddle"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListBullet"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li>")).replace(/<p(.*?)class="?'?MsoListParagraphCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ul>")).replace(/<p(.*?)class="?'?NumberedTextCxSpLast"?'?([\s\S]*?)(level\d)?([\s\S]*?)>([\s\S]*?)<\/p>/gi,"<li$3>$5</li></ol>")).replace(/<span([^<]*?)style="?'?mso-list:Ignore"?'?([\s\S]*?)>([\s\S]*?)<span/gi,"<span><span")).replace(/<!--\[if \!supportLists\]-->([\s\S]*?)<!--\[endif\]-->/gi,"")).replace(/<!\[if \!supportLists\]>([\s\S]*?)<!\[endif\]>/gi,"")).replace(/(\n|\r| class=(")?Mso[a-zA-Z0-9]+(")?)/gi," ")).replace(/<!--[\s\S]*?-->/gi,"")).replace(/<(\/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>/gi,"");var r,i=["style","script","applet","embed","noframes","noscript"];for(n=0;n<i.length;n++){var o=new RegExp("<"+i[n]+".*?"+i[n]+"(.*?)>","gi");e=e.replace(o,"")}for(e=(e=(e=e.replace(/&nbsp;/gi," ")).replace(/<td([^>]*)><\/td>/g,"<td$1><br></td>")).replace(/<th([^>]*)><\/th>/g,"<th$1><br></th>");(e=(r=e).replace(/<[^\/>][^>]*><\/[^>]+>/gi,""))!=r;);e=(e=e.replace(/<lilevel([^1])([^>]*)>/gi,'<li data-indent="true"$2>')).replace(/<lilevel1([^>]*)>/gi,"<li$1>"),e=(e=(e=t.clean.html(e,t.opts.pasteDeniedTags,t.opts.pasteDeniedAttrs)).replace(/<a>(.[^<]+)<\/a>/gi,"$1")).replace(/<br> */g,"<br>");var a=t.o_doc.createElement("div");a.innerHTML=e;var s=a.querySelectorAll("li[data-indent]");for(n=0;n<s.length;n++){var l=s[n],c=l.previousElementSibling;if(c&&"LI"==c.tagName){var u=c.querySelector(":scope > ul, :scope > ol");u||(u=document.createElement("ul"),c.appendChild(u)),u.appendChild(l)}else l.removeAttribute("data-indent")}return t.html.cleanBlankSpaces(a),e=a.innerHTML}(r))),t.opts.pastePlain&&!g&&(r=function(e){var n,r=null,i=t.doc.createElement("div");i.innerHTML=e;var o=i.querySelectorAll("p, div, h1, h2, h3, h4, h5, h6, pre, blockquote");for(n=0;n<o.length;n++)(r=o[n]).outerHTML="<"+(t.html.defaultTag()||"DIV")+">"+r.innerHTML+"</"+(t.html.defaultTag()||"DIV")+">";for(n=(o=i.querySelectorAll("*:not("+"p, div, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol, li, table, tbody, thead, tr, td, br, img".split(",").join("):not(")+")")).length-1;0<=n;n--)(r=o[n]).outerHTML=r.innerHTML;var a=function(e){for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType!=Node.TEXT_NODE&&n[r].nodeType!=Node.ELEMENT_NODE?n[r].parentNode.removeChild(n[r]):a(n[r])};return a(i),i.innerHTML}(r));var b=t.events.chainTrigger("paste.afterCleanup",r);if("string"==typeof b&&(r=b),""!==r){var _=t.o_doc.createElement("div");0<=(_.innerHTML=r).indexOf("<body>")?(t.html.cleanBlankSpaces(_),t.spaces.normalize(_,!0)):t.spaces.normalize(_);var w=_.getElementsByTagName("span");for(s=w.length-1;0<=s;s--){var E=w[s];0===E.attributes.length&&(E.outerHTML=E.innerHTML)}if(!0===t.opts.linkAlwaysBlank){var k=_.getElementsByTagName("a");for(s=k.length-1;0<=s;s--){var x=k[s];x.getAttribute("target")||x.setAttribute("target","_blank")}}var S=t.selection.element(),T=!1;if(S&&e(S).parentsUntil(t.el,"ul, ol").length&&(T=!0),T){var C=_.children;1==C.length&&0<=["OL","UL"].indexOf(C[0].tagName)&&(C[0].outerHTML=C[0].innerHTML)}if(!h){var O=_.getElementsByTagName("br");for(s=O.length-1;0<=s;s--){var A=O[s];t.node.isBlock(A.previousSibling)&&A.parentNode.removeChild(A)}}if(t.opts.enter==e.FE.ENTER_BR)for(s=(l=_.querySelectorAll("p, div")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML=c.innerHTML+(c.nextSibling&&!t.node.isEmpty(c)?"<br>":""));else if(t.opts.enter==e.FE.ENTER_DIV)for(s=(l=_.getElementsByTagName("p")).length-1;0<=s;s--)0===(c=l[s]).attributes.length&&(c.outerHTML="<div>"+c.innerHTML+"</div>");else t.opts.enter==e.FE.ENTER_P&&1==_.childNodes.length&&"P"==_.childNodes[0].tagName&&0===_.childNodes[0].attributes.length&&(_.childNodes[0].outerHTML=_.childNodes[0].innerHTML);r=_.innerHTML,g&&(r=function(n){var r,i=t.o_doc.createElement("div");i.innerHTML=n;for(var o=i.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")");o.length;){for(r=0;r<o.length;r++)o[r].parentNode.removeChild(o[r]);o=i.querySelectorAll("*:empty:not(td):not(th):not(tr):not(iframe):not(svg):not("+e.FE.VOID_ELEMENTS.join("):not(")+"):not("+t.opts.htmlAllowedEmptyTags.join("):not(")+")")}return i.innerHTML}(r)),t.html.insert(r,!0)}t.events.trigger("paste.after"),t.undo.saveStep(o),o=null,t.undo.saveStep()}function h(e){for(var t=e.length-1;0<=t;t--)e[t].attributes&&e[t].attributes.length&&e.splice(t,1);return e}function m(e){var n,r=t.o_doc.createElement("div");r.innerHTML=e;for(var i=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")));i.length;){var o=i[i.length-1];if(t.html.defaultTag()&&"div"!=t.html.defaultTag())o.querySelector(t.html.blockTagsQuery())?o.outerHTML=o.innerHTML:o.outerHTML="<"+t.html.defaultTag()+">"+o.innerHTML+"</"+t.html.defaultTag()+">";else{var a=o.querySelectorAll("*");!a.length||"BR"!==a[a.length-1].tagName&&0===o.innerText.length?o.outerHTML=o.innerHTML+(o.nextSibling?"<br>":""):!a.length||"BR"!==a[a.length-1].tagName||a[a.length-1].nextSibling?o.outerHTML=o.innerHTML+(o.nextSibling?"<br>":""):o.outerHTML=o.innerHTML}i=h(Array.prototype.slice.call(r.querySelectorAll(":scope > div:not([style]), td > div:not([style]), th > div:not([style]), li > div:not([style])")))}for(i=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")));i.length;){for(n=0;n<i.length;n++){var s=i[n],l=s.innerHTML.replace(/\u0009/gi,"").trim();try{s.outerHTML=l}catch(e){}}i=h(Array.prototype.slice.call(r.querySelectorAll("div:not([style])")))}return r.innerHTML}function g(e){if(e.originalEvent&&e.originalEvent.target&&e.originalEvent.target.nodeType==Node.TEXT_NODE)try{t.win.localStorage.setItem("fr-dragged-content-html",e.originalEvent.dataTransfer.getData("text/html")),t.win.localStorage.setItem("fr-dragged-content-text",e.originalEvent.dataTransfer.getData("text/plain"))}catch(e){}}function v(){t.el.removeEventListener("copy",s),t.el.removeEventListener("cut",s),t.el.removeEventListener("paste",c)}return{_init:function(){t.el.addEventListener("copy",s),t.el.addEventListener("cut",s),t.el.addEventListener("paste",c,{capture:!0}),t.events.on("drop",u),t.browser.msie&&t.browser.version<11&&(t.events.on("mouseup",function(e){2==e.button&&(setTimeout(function(){l=!1},50),l=!0)},!0),t.events.on("beforepaste",c)),t.events.on("dragstart",g,!0),t.events.on("destroy",v)},cleanEmptyTagsAndDivs:m,getRtfClipboard:function(){return r},saveCopiedText:a,clean:p}},e.extend(e.FE.DEFAULTS,{shortcutsEnabled:[],shortcutsHint:!0}),e.FE.SHORTCUTS_MAP={},e.FE.RegisterShortcut=function(t,n,r,i,o,a){e.FE.SHORTCUTS_MAP[(o?"^":"")+(a?"@":"")+t]={cmd:n,val:r,letter:i,shift:o,option:a},e.FE.DEFAULTS.shortcutsEnabled.push(n)},e.FE.RegisterShortcut(e.FE.KEYCODE.E,"show",null,"E",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.B,"bold",null,"B",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.I,"italic",null,"I",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.U,"underline",null,"U",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.S,"strikeThrough",null,"S",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.CLOSE_SQUARE_BRACKET,"indent",null,"]",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.OPEN_SQUARE_BRACKET,"outdent",null,"[",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"undo",null,"Z",!1,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Z,"redo",null,"Z",!0,!1),e.FE.RegisterShortcut(e.FE.KEYCODE.Y,"redo",null,"Y",!1,!1),e.FE.MODULES.shortcuts=function(t){var n=null,r=!1;function i(n){if(!t.core.hasFocus())return!0;var i=n.which,o=-1!=navigator.userAgent.indexOf("Mac OS X")?n.metaKey:n.ctrlKey;if("keyup"==n.type&&r&&i!=e.FE.KEYCODE.META)return r=!1;"keydown"==n.type&&(r=!1);var a=(n.shiftKey?"^":"")+(n.altKey?"@":"")+i;if(o&&e.FE.SHORTCUTS_MAP[a]){var s=e.FE.SHORTCUTS_MAP[a].cmd;if(s&&0<=t.opts.shortcutsEnabled.indexOf(s)){var l,c=e.FE.SHORTCUTS_MAP[a].val;if(s&&!c?l=t.$tb.find('.fr-command[data-cmd="'+s+'"]'):s&&c&&(l=t.$tb.find('.fr-command[data-cmd="'+s+'"][data-param1="'+c+'"]')),l.length)return n.preventDefault(),n.stopPropagation(),l.parents(".fr-toolbar").data("instance",t),"keydown"==n.type&&(t.button.exec(l),r=!0),!1;if(s&&(t.commands[s]||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].callback))return n.preventDefault(),n.stopPropagation(),"keydown"==n.type&&((t.commands[s]||e.FE.COMMANDS[s].callback)(),r=!0),!1}}}return{_init:function(){t.events.on("keydown",i,!0),t.events.on("keyup",i,!0)},get:function(r){if(!t.opts.shortcutsHint)return null;if(!n)for(var i in n={},e.FE.SHORTCUTS_MAP)e.FE.SHORTCUTS_MAP.hasOwnProperty(i)&&0<=t.opts.shortcutsEnabled.indexOf(e.FE.SHORTCUTS_MAP[i].cmd)&&(n[e.FE.SHORTCUTS_MAP[i].cmd+"."+(e.FE.SHORTCUTS_MAP[i].val||"")]={shift:e.FE.SHORTCUTS_MAP[i].shift,option:e.FE.SHORTCUTS_MAP[i].option,letter:e.FE.SHORTCUTS_MAP[i].letter});var o=n[r];return o?(t.helpers.isMac()?String.fromCharCode(8984):t.language.translate("Ctrl")+"+")+(o.shift?t.helpers.isMac()?String.fromCharCode(8679):t.language.translate("Shift")+"+":"")+(o.option?t.helpers.isMac()?String.fromCharCode(8997):t.language.translate("Alt")+"+":"")+o.letter:null}}},e.FE.MODULES.snapshot=function(e){function t(e){for(var t=e.parentNode.childNodes,n=0,r=null,i=0;i<t.length;i++){if(r){var o=t[i].nodeType===Node.TEXT_NODE&&""===t[i].textContent,a=r.nodeType===Node.TEXT_NODE&&t[i].nodeType===Node.TEXT_NODE,s=r.nodeType===Node.TEXT_NODE&&""===r.textContent;o||a||s||n++}if(t[i]==e)return n;r=t[i]}}function n(n){var r=[];if(!n.parentNode)return[];for(;!e.node.isElement(n);)r.push(t(n)),n=n.parentNode;return r.reverse()}function r(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;){var n=e.previousSibling;n&&n.nodeType==Node.TEXT_NODE&&(t+=n.textContent.length),e=n}return t}function i(t){for(var n=e.el,r=0;r<t.length;r++)n=n.childNodes[t[r]];return n}function o(t,n){try{var r=i(n.scLoc),o=n.scOffset,a=i(n.ecLoc),s=n.ecOffset,l=e.doc.createRange();l.setStart(r,o),l.setEnd(a,s),t.addRange(l)}catch(e){}}return{get:function(){var t,i={};if(e.events.trigger("snapshot.before"),i.html=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),i.ranges=[],e.$wp&&e.selection.inEditor()&&e.core.hasFocus())for(var o=e.selection.ranges(),a=0;a<o.length;a++)i.ranges.push({scLoc:n((t=o[a]).startContainer),scOffset:r(t.startContainer,t.startOffset),ecLoc:n(t.endContainer),ecOffset:r(t.endContainer,t.endOffset)});return e.events.trigger("snapshot.after",[i]),i},restore:function(t){e.$el.html()!=t.html&&(e.opts.htmlExecuteScripts?e.$el.html(t.html):e.el.innerHTML=t.html);var n=e.selection.get();e.selection.clear(),e.events.focus(!0);for(var r=0;r<t.ranges.length;r++)o(n,t.ranges[r])},equal:function(t,n){return t.html==n.html&&(!e.core.hasFocus()||JSON.stringify(t.ranges)==JSON.stringify(n.ranges))}}},e.FE.MODULES.undo=function(e){function t(t){var n=t.which;e.keys.ctrlKey(t)&&(90==n&&t.shiftKey&&t.preventDefault(),90==n&&t.preventDefault())}var n=null;function r(){if(!e.undo_stack||e.undoing)return!1;for(;e.undo_stack.length>e.undo_index;)e.undo_stack.pop()}function i(){n=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,""),e.undo_index=0,e.undo_stack=[]}function o(){e.undo_stack=[]}return{_init:function(){i(),e.events.on("initialized",function(){n=(e.$wp?e.$el.html():e.$oel.get(0).outerHTML).replace(/ style=""/g,"")}),e.events.on("blur",function(){e.el.querySelector(".fr-dragging")||e.undo.saveStep()}),e.events.on("keydown",t),e.events.on("destroy",o)},run:function(){if(1<e.undo_index){e.undoing=!0;var t=e.undo_stack[--e.undo_index-1];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.undo"),e.undoing=!1}},redo:function(){if(e.undo_index<e.undo_stack.length){e.undoing=!0;var t=e.undo_stack[e.undo_index++];clearTimeout(e._content_changed_timer),e.snapshot.restore(t),n=t.html,e.popups.hideAll(),e.toolbar.enable(),e.events.trigger("contentChanged"),e.events.trigger("commands.redo"),e.undoing=!1}},canDo:function(){return!(0===e.undo_stack.length||e.undo_index<=1)},canRedo:function(){return e.undo_index!=e.undo_stack.length},dropRedo:r,reset:i,saveStep:function(t){if(!e.undo_stack||e.undoing||e.el.querySelector(".fr-marker"))return!1;void 0===t?(t=e.snapshot.get(),e.undo_stack[e.undo_index-1]&&e.snapshot.equal(e.undo_stack[e.undo_index-1],t)||(r(),e.undo_stack.push(t),e.undo_index++,t.html!=n&&(e.events.trigger("contentChanged"),n=t.html))):(r(),0<e.undo_index?e.undo_stack[e.undo_index-1]=t:(e.undo_stack.push(t),e.undo_index++))}}},e.FE.ICON_TEMPLATES={font_awesome:'<i class="fa fa-[NAME]" aria-hidden="true"></i>',font_awesome_5:'<i class="fas fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5r:'<i class="far fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5l:'<i class="fal fa-[FA5NAME]" aria-hidden="true"></i>',font_awesome_5b:'<i class="fab fa-[FA5NAME]" aria-hidden="true"></i>',text:'<span style="text-align: center;">[NAME]</span>',image:"<img src=[SRC] alt=[ALT] />",svg:'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">[PATH]</svg>',empty:" "},e.FE.ICONS={bold:{NAME:"bold"},italic:{NAME:"italic"},underline:{NAME:"underline"},strikeThrough:{NAME:"strikethrough"},subscript:{NAME:"subscript"},superscript:{NAME:"superscript"},color:{NAME:"tint"},outdent:{NAME:"outdent"},indent:{NAME:"indent"},undo:{NAME:"rotate-left",FA5NAME:"undo"},redo:{NAME:"rotate-right",FA5NAME:"redo"},insertHR:{NAME:"minus"},clearFormatting:{NAME:"eraser"},selectAll:{NAME:"mouse-pointer"}},e.FE.DefineIconTemplate=function(t,n){e.FE.ICON_TEMPLATES[t]=n},e.FE.DefineIcon=function(t,n){e.FE.ICONS[t]=n},e.extend(e.FE.DEFAULTS,{iconsTemplate:"font_awesome"}),e.FE.MODULES.icon=function(t){return{create:function(n){var r=null,i=e.FE.ICONS[n];if(void 0!==i){var o=i.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate;o&&o.apply&&(o=o.apply(t)),i.FA5NAME||(i.FA5NAME=i.NAME),o&&(o=e.FE.ICON_TEMPLATES[o])&&(r=o.replace(/\[([a-zA-Z0-9]*)\]/g,function(e,t){return"NAME"==t?i[t]||n:i[t]}))}return r||n},getTemplate:function(n){var r=e.FE.ICONS[n],i=t.opts.iconsTemplate;return void 0!==r?i=r.template||e.FE.ICON_DEFAULT_TEMPLATE||t.opts.iconsTemplate:i}}},e.extend(e.FE.DEFAULTS,{tooltips:!0}),e.FE.MODULES.tooltip=function(t){function n(){if(t.helpers.isMobile())return!1;t.$tooltip&&t.$tooltip.removeClass("fr-visible").css("left","-3000px").css("position","fixed")}function r(n,r){if(t.helpers.isMobile())return!1;if(n.data("title")||n.data("title",n.attr("title")),!n.data("title"))return!1;t.$tooltip||t.opts.tooltips&&!t.helpers.isMobile()&&(t.shared.$tooltip?t.$tooltip=t.shared.$tooltip:(t.shared.$tooltip=e('<div class="fr-tooltip"></div>'),t.$tooltip=t.shared.$tooltip,t.opts.theme&&t.$tooltip.addClass(t.opts.theme+"-theme"),e(t.o_doc).find("body:first").append(t.$tooltip)),t.events.on("shared.destroy",function(){t.$tooltip.html("").removeData().remove(),t.$tooltip=null},!0)),n.removeAttr("title"),t.$tooltip.text(t.language.translate(n.data("title"))),t.$tooltip.addClass("fr-visible");var i=n.offset().left+(n.outerWidth()-t.$tooltip.outerWidth())/2;i<0&&(i=0),i+t.$tooltip.outerWidth()>e(t.o_win).width()&&(i=e(t.o_win).width()-t.$tooltip.outerWidth()),void 0===r&&(r=t.opts.toolbarBottom),n.offset().top-e(window).scrollTop()+n.outerHeight()+10>=e(window).height()&&(r=!0);var o=r?n.offset().top-t.$tooltip.height():n.offset().top+n.outerHeight();t.$tooltip.css("position",""),t.$tooltip.css("left",i),t.$tooltip.css("top",Math.ceil(o)),"static"!=e(t.o_doc).find("body:first").css("position")?(t.$tooltip.css("margin-left",-e(t.o_doc).find("body:first").offset().left),t.$tooltip.css("margin-top",-e(t.o_doc).find("body:first").offset().top)):(t.$tooltip.css("margin-left",""),t.$tooltip.css("margin-top",""))}return{hide:n,to:r,bind:function(i,o,a){t.opts.tooltips&&!t.helpers.isMobile()&&(t.events.$on(i,"mouseenter",o,function(n){t.node.hasClass(n.currentTarget,"fr-disabled")||t.edit.isDisabled()||r(e(n.currentTarget),a)},!0),t.events.$on(i,"mouseleave "+t._mousedown+" "+t._mouseup,o,function(){n()},!0))}}},e.FE.MODULES.button=function(t){var n=[];(t.opts.toolbarInline||t.opts.toolbarContainer)&&(t.shared.buttons||(t.shared.buttons=[]),n=t.shared.buttons);var r=[];function i(t,n,r){for(var i=e(),o=0;o<t.length;o++){var a=e(t[o]);if(a.is(n)&&(i=i.add(a)),r&&a.is(".fr-dropdown")){var s=a.next().find(n);i=i.add(s)}}return i}function o(o,a){var s,l=e();if(!o)return l;for(s in l=(l=l.add(i(n,o,a))).add(i(r,o,a)),t.shared.popups)if(t.shared.popups.hasOwnProperty(s)){var c=t.shared.popups[s].children().find(o);l=l.add(c)}for(s in t.shared.modals)if(t.shared.modals.hasOwnProperty(s)){var u=t.shared.modals[s].$modal.find(o);l=l.add(u)}return l}function a(e){e.addClass("fr-blink"),setTimeout(function(){e.removeClass("fr-blink")},500);for(var t=e.data("cmd"),n=[];void 0!==e.data("param"+(n.length+1));)n.push(e.data("param"+(n.length+1)));var r=o(".fr-dropdown.fr-active");r.length&&(r.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),r.prev(".fr-expanded").removeClass("fr-expanded"),r.parent(".fr-toolbar:not(.fr-inline)").css("zIndex","")),e.parents(".fr-popup, .fr-toolbar").data("instance").commands.exec(t,n)}function s(n){var r=n.parents(".fr-popup, .fr-toolbar").data("instance");if(0!==n.parents(".fr-popup").length||n.data("popup")||r.popups.hideAll(),r.popups.areVisible()&&!r.popups.areVisible(r)){for(var i=0;i<e.FE.INSTANCES.length;i++)e.FE.INSTANCES[i]!=r&&e.FE.INSTANCES[i].popups&&e.FE.INSTANCES[i].popups.areVisible()&&e.FE.INSTANCES[i].$el.find(".fr-marker").remove();r.popups.hideAll()}t.node.hasClass(n.get(0),"fr-dropdown")?function(n){var r=n.next(),i=t.node.hasClass(n.get(0),"fr-active"),a=o(".fr-dropdown.fr-active").not(n),s=n.parents(".fr-toolbar, .fr-popup").data("instance")||t;if(s.helpers.isIOS()&&!s.el.querySelector(".fr-marker")&&(s.selection.save(),s.selection.clear(),s.selection.restore()),!i){var l=n.data("cmd");r.find(".fr-command").removeClass("fr-active").attr("aria-selected",!1),e.FE.COMMANDS[l]&&e.FE.COMMANDS[l].refreshOnShow&&e.FE.COMMANDS[l].refreshOnShow.apply(s,[n,r]),r.css("left",n.offset().left-n.parent().offset().left-("rtl"==t.opts.direction?r.width()-n.outerWidth():0)),r.addClass("test-height");var c=r.outerHeight();r.removeClass("test-height"),r.css("top","").css("bottom",""),!t.opts.toolbarBottom&&r.offset().top+n.outerHeight()+c<e(t.o_doc).height()?r.css("top",n.position().top+n.outerHeight()):r.css("bottom",n.parents(".fr-popup, .fr-toolbar").first().height()-n.position().top)}n.addClass("fr-blink").toggleClass("fr-active"),n.hasClass("fr-options")&&n.prev().toggleClass("fr-expanded"),n.hasClass("fr-active")?(r.attr("aria-hidden",!1),n.attr("aria-expanded",!0)):(r.attr("aria-hidden",!0),n.attr("aria-expanded",!1)),setTimeout(function(){n.removeClass("fr-blink")},300),r.css("margin-left",""),r.offset().left+r.outerWidth()>t.$sc.offset().left+t.$sc.width()&&r.css("margin-left",-(r.offset().left+r.outerWidth()-t.$sc.offset().left-t.$sc.width())),r.offset().left<t.$sc.offset().left&&"rtl"==t.opts.direction&&r.css("margin-left",t.$sc.offset().left),a.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),a.prev(".fr-expanded").removeClass("fr-expanded"),a.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),0!==n.parents(".fr-popup").length||t.opts.toolbarInline||(t.node.hasClass(n.get(0),"fr-active")?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):t.$tb.css("zIndex",""));var u=r.find("a.fr-command.fr-active:first");t.helpers.isMobile()||(u.length?t.accessibility.focusToolbarElement(u):t.accessibility.focusToolbarElement(n))}(n):(a(n),e.FE.COMMANDS[n.data("cmd")]&&!1!==e.FE.COMMANDS[n.data("cmd")].refreshAfterCallback&&r.button.bulkRefresh())}function l(t){s(e(t.currentTarget))}function c(e){var t=e.find(".fr-dropdown.fr-active");t.length&&(t.removeClass("fr-active").attr("aria-expanded",!1).next().attr("aria-hidden",!0),t.parent(".fr-toolbar:not(.fr-inline)").css("zIndex",""),t.prev().removeClass("fr-expanded"))}function u(e){e.preventDefault(),e.stopPropagation()}function d(e){if(e.stopPropagation(),!t.helpers.isMobile())return!1}function f(n,r,i){if(r=e.extend(!0,{},r),t.helpers.isMobile()&&!1===r.showOnMobile)return"";var o=r.displaySelection;"function"==typeof o&&(o=o(t));var a="";if("options"!==r.type)if(o){var s="function"==typeof r.defaultSelection?r.defaultSelection(t):r.defaultSelection;a='<span style="width:'+(r.displaySelectionWidth||100)+'px">'+t.language.translate(s||r.title)+"</span>"}else a=t.icon.create(r.icon||n),a+='<span class="fr-sr-only">'+(t.language.translate(r.title)||"")+"</span>";var l=r.popup?' data-popup="true"':"",c=r.modal?' data-modal="true"':"",u=t.shortcuts.get(n+".");u=u?" ("+u+")":"";var d=n+"-"+t.id,p="dropdown-menu-"+d,h='<button id="'+d+'"type="button" tabIndex="-1" role="button"'+(r.toggle?' aria-pressed="false"':"")+("dropdown"==r.type||"options"==r.type?' aria-controls="'+p+'" aria-expanded="false" aria-haspopup="true"':"")+(r.disabled?' aria-disabled="true"':"")+' title="'+(t.language.translate(r.title)||"")+u+'" class="fr-command fr-btn'+("dropdown"==r.type||"options"==r.type?" fr-dropdown":"")+("options"==r.type?" fr-options":"")+" fr-btn-"+t.icon.getTemplate(r.icon)+(r.displaySelection?" fr-selection":"")+(r.back?" fr-back":"")+(r.disabled?" fr-disabled":"")+(i?"":" fr-hidden")+'" data-cmd="'+n+'"'+l+c+">"+a+"</button>";if("dropdown"==r.type||"options"==r.type){var m='<div id="'+p+'" class="fr-dropdown-menu" role="listbox" aria-labelledby="'+d+'" aria-hidden="true"><div class="fr-dropdown-wrapper" role="presentation"><div class="fr-dropdown-content" role="presentation">';m+=function(e,n){var r="";if(n.html)"function"==typeof n.html?r+=n.html.call(t):r+=n.html;else{var i=n.options;for(var o in"function"==typeof i&&(i=i()),r+='<ul class="fr-dropdown-list" role="presentation">',i)if(i.hasOwnProperty(o)){var a=t.shortcuts.get(e+"."+o);a=a?'<span class="fr-shortcut">'+a+"</span>":"",r+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="'+("options"===n.type?e.replace(/Options/g,""):e)+'" data-param1="'+o+'" title="'+i[o]+'">'+t.language.translate(i[o])+"</a></li>"}r+="</ul>"}return r}(n,r),h+=m+="</div></div></div>"}return r.hasOptions&&r.hasOptions.apply(t)&&(r.type="options",r.hasOptions=!1,h='<div class="fr-btn-wrap">'+h+f(n+"Options",r,i)+"</div>"),h}function p(n){var r=t.$tb&&t.$tb.data("instance")||t;if(!1===t.events.trigger("buttons.refresh"))return!0;setTimeout(function(){for(var i=r.selection.inEditor()&&r.core.hasFocus(),o=0;o<n.length;o++){var a=e(n[o]),s=a.data("cmd");0===a.parents(".fr-popup").length?i||e.FE.COMMANDS[s]&&e.FE.COMMANDS[s].forcedRefresh?r.button.refresh(a):t.node.hasClass(a.get(0),"fr-dropdown")||(a.removeClass("fr-active"),a.attr("aria-pressed")&&a.attr("aria-pressed",!1)):a.parents(".fr-popup").is(":visible")&&r.button.refresh(a)}},0)}function h(){p(n),p(r)}function m(){n=[],r=[]}t.shared.popup_buttons||(t.shared.popup_buttons=[]),r=t.shared.popup_buttons;var g=null;function v(){clearTimeout(g),g=setTimeout(h,50)}return{_init:function(){t.opts.toolbarInline?t.events.on("toolbar.show",h):(t.events.on("mouseup",v),t.events.on("keyup",v),t.events.on("blur",v),t.events.on("focus",v),t.events.on("contentChanged",v),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",h)),t.events.on("shared.destroy",m)},buildList:function(n,r){for(var i="",o=0;o<n.length;o++){var a=n[o],s=e.FE.COMMANDS[a];s&&void 0!==s.plugin&&t.opts.pluginsEnabled.indexOf(s.plugin)<0||(s?i+=f(a,s,void 0===r||0<=r.indexOf(a)):"|"==a?i+='<div class="fr-separator fr-vs" role="separator" aria-orientation="vertical"></div>':"-"==a&&(i+='<div class="fr-separator fr-hs" role="separator" aria-orientation="horizontal"></div>'))}return i},bindCommands:function(i,o){t.events.bindClick(i,".fr-command:not(.fr-disabled)",l),t.events.$on(i,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu",u,!0),t.events.$on(i,t._mousedown+" "+t._mouseup+" "+t._move,".fr-dropdown-menu .fr-dropdown-wrapper",d,!0);var a=i.get(0).ownerDocument,s="defaultView"in a?a.defaultView:a.parentWindow,f=function(n){(!n||n.type==t._mouseup&&n.target!=e("html").get(0)||"keydown"==n.type&&(t.keys.isCharacter(n.which)&&!t.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ESC))&&c(i)};t.events.$on(e(s),t._mouseup+" resize keydown",f,!0),t.opts.iframe&&t.events.$on(t.$win,t._mouseup,f,!0),t.node.hasClass(i.get(0),"fr-popup")?e.merge(r,i.find(".fr-btn").toArray()):e.merge(n,i.find(".fr-btn").toArray()),t.tooltip.bind(i,".fr-btn, .fr-title",o)},refresh:function(n){var r,i=n.parents(".fr-popup, .fr-toolbar").data("instance")||t,o=n.data("cmd");t.node.hasClass(n.get(0),"fr-dropdown")?r=n.next():(n.removeClass("fr-active"),n.attr("aria-pressed")&&n.attr("aria-pressed",!1)),e.FE.COMMANDS[o]&&e.FE.COMMANDS[o].refresh?e.FE.COMMANDS[o].refresh.apply(i,[n,r]):t.refresh[o]&&i.refresh[o](n,r)},bulkRefresh:h,exec:a,click:s,hideActiveDropdowns:c,getButtons:o}},e.FE.MODULES.modals=function(t){t.shared.modals||(t.shared.modals={});var n,r=t.shared.modals;function i(){for(var e in r){var t=r[e];t&&t.$modal&&t.$modal.removeData().remove()}n&&n.removeData().remove(),r={}}function o(i,o){if(r[i]){var a=r[i].$modal,s=a.data("instance")||t;s.events.enableBlur(),a.hide(),n.hide(),e(s.o_doc).find("body:first").removeClass("prevent-scroll fr-mobile"),a.removeClass("fr-active"),o||(s.accessibility.restoreSelection(),s.events.trigger("modals.hide"))}}function a(e){var n;if("string"==typeof e){if(!r[e])return;n=r[e].$modal}else n=e;return n&&t.node.hasClass(n,"fr-active")&&t.core.sameInstance(n)||!1}return{_init:function(){t.events.on("shared.destroy",i,!0)},get:function(e){return r[e]},create:function(i,a,s){if(t.shared.$overlay||(t.shared.$overlay=e('<div class="fr-overlay">').appendTo("body:first")),n=t.shared.$overlay,t.opts.theme&&n.addClass(t.opts.theme+"-theme"),!r[i]){var l=(c=a,u=s,d='<div tabIndex="-1" class="fr-modal'+(t.opts.theme?" "+t.opts.theme+"-theme":"")+'"><div class="fr-modal-wrapper">',d+='<div class="fr-modal-head">'+c+'<span title="'+t.language.translate("Cancel")+'" class="fr-modal-close">&times;</span></div>',d+='<div tabIndex="-1" class="fr-modal-body">'+u+"</div>",e(d+="</div></div>"));r[i]={$modal:l,$head:l.find(".fr-modal-head"),$body:l.find(".fr-modal-body")},t.helpers.isMobile()||l.addClass("fr-desktop"),l.appendTo("body:first"),t.events.$on(l,"click",".fr-modal-close",function(){o(i)},!0),r[i].$body.css("margin-top",r[i].$head.outerHeight()),t.events.$on(l,"keydown",function(n){var r=n.which;return r==e.FE.KEYCODE.ESC?(o(i),t.accessibility.focusModalButton(l),!1):!(!e(n.target).is("input[type=text], textarea")&&r!=e.FE.KEYCODE.ARROW_UP&&r!=e.FE.KEYCODE.ARROW_DOWN&&!t.keys.isBrowserAction(n)&&(n.preventDefault(),n.stopPropagation(),1))},!0),o(i,!0)}var c,u,d;return r[i]},show:function(i){if(r[i]){var o=r[i].$modal;o.data("instance",t),o.show(),n.show(),e(t.o_doc).find("body:first").addClass("prevent-scroll"),t.helpers.isMobile()&&e(t.o_doc).find("body:first").addClass("fr-mobile"),o.addClass("fr-active"),t.accessibility.focusModal(o)}},hide:o,resize:function(n){if(r[n]){var i=r[n],o=i.$modal,a=i.$body,s=e(t.o_win).height(),l=o.find(".fr-modal-wrapper"),c=s-l.outerHeight(!0)+(l.height()-(a.outerHeight(!0)-a.height())),u="auto";c<a.get(0).scrollHeight&&(u=c),a.height(u)}},isVisible:a,areVisible:function(e){for(var t in r)if(r.hasOwnProperty(t)&&a(t)&&(void 0===e||r[t].$modal.data("instance")==e))return r[t].$modal;return!1}}},e.FE.POPUP_TEMPLATES={"text.edit":"[_EDIT_]"},e.FE.RegisterTemplate=function(t,n){e.FE.POPUP_TEMPLATES[t]=n},e.FE.MODULES.popups=function(t){t.shared.popups||(t.shared.popups={});var n=t.shared.popups;function r(e,r){r.is(":visible")||(r=t.$sc),r.is(n[e].data("container"))||(n[e].data("container",r),r.append(n[e]))}function i(e){return n[e]&&t.node.hasClass(n[e],"fr-active")&&t.core.sameInstance(n[e])||!1}function o(e){for(var t in n)if(n.hasOwnProperty(t)&&i(t)&&(void 0===e||n[t].data("instance")==e))return n[t];return!1}function a(e){var r=null;(r="string"!=typeof e?e:n[e])&&t.node.hasClass(r,"fr-active")&&(r.removeClass("fr-active fr-above"),t.events.trigger("popups.hide."+e),t.$tb&&(1<t.opts.zIndex?t.$tb.css("zIndex",t.opts.zIndex+1):t.$tb.css("zIndex","")),t.events.disableBlur(),r.find("input, textarea, button").filter(":focus").blur(),r.find("input, textarea").attr("disabled","disabled"))}function s(e){for(var t in void 0===e&&(e=[]),n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&a(t)}function l(){t.shared.exit_flag=!0}function c(){t.shared.exit_flag=!1}function u(){return t.shared.exit_flag}function d(r){var o=n[r];return{_windowResize:function(){var e=o.data("instance")||t;!e.helpers.isMobile()&&o.is(":visible")&&(e.events.disableBlur(),e.popups.hide(r),e.events.enableBlur())},_inputFocus:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);if(i.is("input:file")&&i.closest(".fr-layer").addClass("fr-input-focus"),n.preventDefault(),n.stopPropagation(),setTimeout(function(){r.events.enableBlur()},t.browser.msie?100:0),r.helpers.isMobile()){var a=e(r.o_win).scrollTop();setTimeout(function(){e(r.o_win).scrollTop(a)},0)}},_inputBlur:function(n){var r=o.data("instance")||t,i=e(n.currentTarget);i.is("input:file")&&i.closest(".fr-layer").removeClass("fr-input-focus"),document.activeElement!=this&&e(this).is(":visible")&&(r.events.blurActive()&&r.events.trigger("blur"),r.events.enableBlur())},_editorKeydown:function(n){var a=o.data("instance")||t;a.keys.ctrlKey(n)||n.which==e.FE.KEYCODE.ALT||n.which==e.FE.KEYCODE.ESC||(i(r)&&o.find(".fr-back:visible").length?a.button.exec(o.find(".fr-back:visible:first")):n.which!=e.FE.KEYCODE.ALT&&a.popups.hide(r))},_preventFocus:function(n){var r=o.data("instance")||t,i=n.originalEvent?n.originalEvent.target||n.originalEvent.originalTarget:null;"mouseup"==n.type||e(i).is(":focus")||r.events.disableBlur(),"mouseup"!=n.type||e(i).hasClass("fr-command")||0<e(i).parents(".fr-command").length||e(i).hasClass("fr-dropdown-content")||t.button.hideActiveDropdowns(o),(t.browser.safari||t.browser.mozilla)&&"mousedown"==n.type&&e(i).is("input[type=file]")&&r.events.disableBlur();var a="input, textarea, button, select, label, .fr-command";if(i&&!e(i).is(a)&&0===e(i).parents(a).length)return n.stopPropagation(),!1;i&&e(i).is(a)&&n.stopPropagation(),c()},_editorMouseup:function(){o.is(":visible")&&u()&&0<o.find("input:focus, textarea:focus, button:focus, select:focus").filter(":visible").length&&t.events.disableBlur()},_windowMouseup:function(e){if(!t.core.sameInstance(o))return!0;var n=o.data("instance")||t;o.is(":visible")&&u()&&(e.stopPropagation(),n.markers.remove(),n.popups.hide(r),c())},_windowKeydown:function(n){if(!t.core.sameInstance(o))return!0;var i=o.data("instance")||t,a=n.which;if(e.FE.KEYCODE.ESC==a){if(i.popups.isVisible(r)&&i.opts.toolbarInline)return n.stopPropagation(),i.popups.isVisible(r)&&(o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(r),i.toolbar.showInline(null,!0),i.accessibility.focusPopupButton(o))),!1;if(i.popups.isVisible(r))return o.find(".fr-back:visible").length?(i.button.exec(o.find(".fr-back:visible:first")),i.accessibility.focusPopupButton(o)):o.find(".fr-dismiss:visible").length?i.button.exec(o.find(".fr-dismiss:visible:first")):(i.popups.hide(r),i.accessibility.focusPopupButton(o)),!1}},_doPlaceholder:function(){0===e(this).next().length&&e(this).attr("placeholder")&&e(this).after('<label for="'+e(this).attr("id")+'">'+e(this).attr("placeholder")+"</label>"),e(this).toggleClass("fr-not-empty",""!==e(this).val())},_repositionPopup:function(){if(!t.opts.height&&!t.opts.heightMax||t.opts.toolbarInline)return!0;if(t.$wp&&i(r)&&o.parent().get(0)==t.$sc.get(0)){var e=o.offset().top-t.$wp.offset().top,n=t.$wp.outerHeight();t.node.hasClass(o.get(0),"fr-above")&&(e+=o.outerHeight()),n<e||e<0?o.addClass("fr-hidden"):o.removeClass("fr-hidden")}}}}function f(e,r){t.events.on("mouseup",e._editorMouseup,!0),t.$wp&&t.events.on("keydown",e._editorKeydown),t.events.on("blur",function(){o()&&t.markers.remove(),s()}),t.$wp&&!t.helpers.isMobile()&&t.events.$on(t.$wp,"scroll.popup"+r,e._repositionPopup),t.events.on("window.mouseup",e._windowMouseup,!0),t.events.on("window.keydown",e._windowKeydown,!0),n[r].data("inst"+t.id,!0),t.events.on("destroy",function(){t.core.sameInstance(n[r])&&n[r].removeClass("fr-active").appendTo("body:first")},!0)}function p(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];t&&(t.html("").removeData().remove(),n[e]=null)}n=[]}return t.shared.exit_flag=!1,{_init:function(){t.events.on("shared.destroy",p,!0),t.events.on("window.mousedown",l),t.events.on("window.touchmove",c),t.events.$on(e(t.o_win),"scroll",c),t.events.on("mousedown",function(e){o()&&(e.stopPropagation(),t.$el.find(".fr-marker").remove(),l(),t.events.disableBlur())})},create:function(r,i){var o=function(r,i){var o,a,s=function(n,r){var i=e.FE.POPUP_TEMPLATES[n];if(!i)return null;for(var o in"function"==typeof i&&(i=i.apply(t)),r)r.hasOwnProperty(o)&&(i=i.replace("[_"+o.toUpperCase()+"_]",r[o]));return i}(r,i);return s?(o=e('<div class="fr-popup'+(t.helpers.isMobile()?" fr-mobile":" fr-desktop")+(t.opts.toolbarInline?" fr-inline":"")+'"><span class="fr-arrow"></span>'+s+"</div>"),t.opts.theme&&o.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&(t.opts.editInPopup?o.css("z-index",t.opts.zIndex+2):t.$tb.css("z-index",t.opts.zIndex+2)),"auto"!=t.opts.direction&&o.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),o.find("input, textarea").attr("dir",t.opts.direction).attr("disabled","disabled"),(a=e("body:first")).append(o),o.data("container",a),n[r]=o,t.button.bindCommands(o,!1),o):(o=e('<div class="fr-popup fr-empty"></div>'),(a=e("body:first")).append(o),o.data("container",a),n[r]=o)}(r,i),a=d(r);return f(a,r),t.events.$on(o,"mousedown mouseup touchstart touchend touch","*",a._preventFocus,!0),t.events.$on(o,"focus","input, textarea, button, select",a._inputFocus,!0),t.events.$on(o,"blur","input, textarea, button, select",a._inputBlur,!0),t.accessibility.registerPopup(r),t.events.$on(o,"keydown keyup change input","input, textarea",a._doPlaceholder,!0),t.helpers.isIOS()&&t.events.$on(o,"touchend","label",function(){e("#"+e(this).attr("for")).prop("checked",function(e,t){return!t})},!0),t.events.$on(e(t.o_win),"resize",a._windowResize,!0),o},get:function(e){var r=n[e];return r&&!r.data("inst"+t.id)&&f(d(e),e),r},show:function(e,a,l,u){if(i(e)||(o()&&0<t.$el.find(".fr-marker").length?(t.events.disableBlur(),t.selection.restore()):o()||(t.events.disableBlur(),t.events.focus(),t.events.enableBlur())),s([e]),!n[e])return!1;var f=t.button.getButtons(".fr-dropdown.fr-active");f.removeClass("fr-active").attr("aria-expanded",!1).parent(".fr-toolbar").css("zIndex",""),f.next().attr("aria-hidden",!0),n[e].data("instance",t),t.$tb&&t.$tb.data("instance",t);var p=n[e].outerWidth(),h=i(e);n[e].addClass("fr-active").removeClass("fr-hidden").find("input, textarea").removeAttr("disabled");var m,g,v=n[e].data("container");m=e,(g=v).is(":visible")||(g=t.$sc),0===g.find([n[m]]).length&&g.append(n[m]),t.opts.toolbarInline&&v&&t.$tb&&v.get(0)==t.$tb.get(0)&&(r(e,t.$sc),l=t.$tb.offset().top-t.helpers.getPX(t.$tb.css("margin-top")),a=t.$tb.offset().left+t.$tb.outerWidth()/2+(parseFloat(t.$tb.find(".fr-arrow").css("margin-left"))||0)+t.$tb.find(".fr-arrow").outerWidth()/2,t.node.hasClass(t.$tb.get(0),"fr-above")&&l&&(l+=t.$tb.outerHeight()),u=0),v=n[e].data("container"),!t.opts.iframe||u||h||(a&&(a-=t.$iframe.offset().left),l&&(l-=t.$iframe.offset().top)),v.is(t.$tb)?t.$tb.css("zIndex",(t.opts.zIndex||1)+4):n[e].css("zIndex",(t.opts.zIndex||1)+4),a&&(a-=p/2),t.opts.toolbarBottom&&v&&t.$tb&&v.get(0)==t.$tb.get(0)&&(n[e].addClass("fr-above"),l&&(l-=n[e].outerHeight())),n[e].removeClass("fr-active"),t.position.at(a,l,n[e],u||0),n[e].addClass("fr-active"),h||t.accessibility.focusPopup(n[e]),t.opts.toolbarInline&&t.toolbar.hide(),t.events.trigger("popups.show."+e),d(e)._repositionPopup(),c()},hide:a,onHide:function(e,n){t.events.on("popups.hide."+e,n)},hideAll:s,setContainer:r,refresh:function(r){n[r].data("instance",t),t.events.trigger("popups.refresh."+r);for(var i=n[r].find(".fr-command"),o=0;o<i.length;o++){var a=e(i[o]);0===a.parents(".fr-dropdown-menu").length&&t.button.refresh(a)}},onRefresh:function(e,n){t.events.on("popups.refresh."+e,n)},onShow:function(e,n){t.events.on("popups.show."+e,n)},isVisible:i,areVisible:o}},e.FE.MODULES.position=function(t){function n(){var e=t.selection.ranges(0).getBoundingClientRect();if(0===e.top&&0===e.left&&0===e.width||0===e.height){var n=!1;0===t.$el.find(".fr-marker").length&&(t.selection.save(),n=!0);var r=t.$el.find(".fr-marker:first");r.css("display","inline"),r.css("line-height","");var i=r.offset(),o=r.outerHeight();r.css("display","none"),r.css("line-height",0),(e={}).left=i.left,e.width=0,e.height=o,e.top=i.top-(t.opts.iframe?0:t.helpers.scrollTop()),e.right=1,e.bottom=1,e.ok=!0,n&&t.selection.restore()}return e}function r(e,n,r,i){var o=r.data("container");!o||"BODY"===o.get(0).tagName&&"static"==o.css("position")||(e&&(e-=o.offset().left),n&&(n-=o.offset().top),"BODY"!=o.get(0).tagName?(e&&(e+=o.get(0).scrollLeft),n&&(n+=o.get(0).scrollTop)):"absolute"==o.css("position")&&(e&&(e+=o.position().left),n&&(n+=o.position().top))),t.opts.iframe&&o&&t.$tb&&o.get(0)!=t.$tb.get(0)&&(e&&(e+=t.$iframe.offset().left),n&&(n+=t.$iframe.offset().top));var a,s,l,c,u=(s=e,l=(a=r).outerWidth(!0),c=a.parent().offset().left,a.parent().get(0)==t.$sc.get(0)&&(c-=a.parent().position().left),c+s+l>t.$sc.get(0).clientWidth-10&&(s=t.$sc.get(0).clientWidth-l-c-10),s<0&&(s=10),s);if(e){r.css("left",u);var d=r.data("fr-arrow");d||(d=r.find(".fr-arrow"),r.data("fr-arrow",d)),d.data("margin-left")||d.data("margin-left",t.helpers.getPX(d.css("margin-left"))),d.css("margin-left",e-u+d.data("margin-left"))}n&&r.css("top",function(e,n,r){var i=e.outerHeight(!0);if(!t.helpers.isMobile()&&t.$tb&&e.parent().get(0)!=t.$tb.get(0)){var o=e.parent().offset().top,a=n-i-(r||0);e.parent().get(0)==t.$sc.get(0)&&(o-=e.parent().position().top);var s=t.$sc.get(0).clientHeight;o+n+i>t.$sc.offset().top+s&&0<e.parent().offset().top+a&&0<a?a>t.$wp.scrollTop()&&(n=a,e.addClass("fr-above")):e.removeClass("fr-above")}return n}(r,n,i))}function i(n){var r=e(n),i=r.is(".fr-sticky-on"),o=r.data("sticky-top"),a=r.data("sticky-scheduled");if(void 0===o){r.data("sticky-top",0);var s=e('<div class="fr-sticky-dummy" style="height: '+r.outerHeight()+'px;"></div>');t.$box.prepend(s)}else t.$box.find(".fr-sticky-dummy").css("height",r.outerHeight());if(t.core.hasFocus()||0<t.$tb.find("input:visible:focus").length){var l=t.helpers.scrollTop(),c=Math.min(Math.max(l-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());c!=o&&c!=a&&(clearTimeout(r.data("sticky-timeout")),r.data("sticky-scheduled",c),r.outerHeight()<l-t.$tb.parent().offset().top&&r.addClass("fr-opacity-0"),r.data("sticky-timeout",setTimeout(function(){var e=t.helpers.scrollTop(),n=Math.min(Math.max(e-t.$tb.parent().offset().top,0),t.$tb.parent().outerHeight()-r.outerHeight());0<n&&"BODY"==t.$tb.parent().get(0).tagName&&(n+=t.$tb.parent().position().top),n!=o&&(r.css("top",Math.max(n,0)),r.data("sticky-top",n),r.data("sticky-scheduled",n)),r.removeClass("fr-opacity-0")},100))),i||(r.css("top","0"),r.width(t.$tb.parent().width()),r.addClass("fr-sticky-on"),t.$box.addClass("fr-sticky-box"))}else clearTimeout(e(n).css("sticky-timeout")),r.css("top","0"),r.css("position",""),r.width(""),r.data("sticky-top",0),r.removeClass("fr-sticky-on"),t.$box.removeClass("fr-sticky-box")}function o(n){if(n.offsetWidth){var r,i,o=e(n),a=o.outerHeight(),s=o.data("sticky-top"),l=o.data("sticky-position"),c=e("body"==t.opts.scrollableContainer?t.o_win:t.opts.scrollableContainer).outerHeight(),u=0,d=0;"body"!==t.opts.scrollableContainer&&(u=t.$sc.offset().top,d=e(t.o_win).outerHeight()-u-c);var f="body"==t.opts.scrollableContainer?t.helpers.scrollTop():u,p=o.is(".fr-sticky-on");o.data("sticky-parent")||o.data("sticky-parent",o.parent());var h=o.data("sticky-parent"),m=h.offset().top,g=h.outerHeight();if(o.data("sticky-offset")||void 0!==s?t.$box.find(".fr-sticky-dummy").css("height",a+"px"):(o.data("sticky-offset",!0),o.after('<div class="fr-sticky-dummy" style="height: '+a+'px;"></div>')),!l){var v="auto"!==o.css("top")||"auto"!==o.css("bottom");v||o.css("position","fixed"),l={top:t.node.hasClass(o.get(0),"fr-top"),bottom:t.node.hasClass(o.get(0),"fr-bottom")},v||o.css("position",""),o.data("sticky-position",l),o.data("top",t.node.hasClass(o.get(0),"fr-top")?o.css("top"):"auto"),o.data("bottom",t.node.hasClass(o.get(0),"fr-bottom")?o.css("bottom"):"auto")}r=t.helpers.getPX(o.data("top")),i=t.helpers.getPX(o.data("bottom"));var y=l.top&&m<f+r&&f+r<=m+g-a&&(t.helpers.isInViewPort(t.$sc.get(0))||"body"==t.opts.scrollableContainer),b=l.bottom&&m+a<f+c-i&&f+c-i<m+g;y||b?(o.css("width",h.get(0).getBoundingClientRect().width+"px"),p||(o.addClass("fr-sticky-on"),o.removeClass("fr-sticky-off"),o.css("top")&&("auto"!=o.data("top")?o.css("top",t.helpers.getPX(o.data("top"))+u):o.data("top","auto")),o.css("bottom")&&("auto"!=o.data("bottom")?o.css("bottom",t.helpers.getPX(o.data("bottom"))+d):o.css("bottom","auto")))):t.node.hasClass(o.get(0),"fr-sticky-off")||(o.width(""),o.removeClass("fr-sticky-on"),o.addClass("fr-sticky-off"),o.css("top")&&"auto"!=o.data("top")&&l.top&&o.css("top",0),o.css("bottom")&&"auto"!=o.data("bottom")&&l.bottom&&o.css("bottom",0))}}function a(){if(t._stickyElements)for(var e=0;e<t._stickyElements.length;e++)o(t._stickyElements[e])}return{_init:function(){!function(){if(t._stickyElements=[],t.helpers.isIOS()){var n=function(){if(t.helpers.requestAnimationFrame()(n),!1!==t.events.trigger("position.refresh"))for(var e=0;e<t._stickyElements.length;e++)i(t._stickyElements[e])};n(),t.events.$on(e(t.o_win),"scroll",function(){if(t.core.hasFocus())for(var n=0;n<t._stickyElements.length;n++){var r=e(t._stickyElements[n]),i=r.parent(),o=t.helpers.scrollTop();r.outerHeight()<o-i.offset().top&&(r.addClass("fr-opacity-0"),r.data("sticky-top",-1),r.data("sticky-scheduled",-1))}},!0)}else"body"!==t.opts.scrollableContainer&&t.events.$on(e(t.opts.scrollableContainer),"scroll",a,!0),t.events.$on(e(t.o_win),"scroll",a,!0),t.events.$on(e(t.o_win),"resize",a,!0),t.events.on("initialized",a),t.events.on("focus",a),t.events.$on(e(t.o_win),"resize","textarea",a,!0);t.events.on("destroy",function(){t._stickyElements=[]})}()},forSelection:function(e){var i=n();e.css({top:0,left:0});var o=i.top+i.height,a=i.left+i.width/2-e.get(0).offsetWidth/2+t.helpers.scrollLeft();t.opts.iframe||(o+=t.helpers.scrollTop()),r(a,o,e,i.height)},addSticky:function(e){e.addClass("fr-sticky"),t.helpers.isIOS()&&e.addClass("fr-sticky-ios"),e.removeClass("fr-sticky"),t._stickyElements.push(e.get(0))},refresh:a,at:r,getBoundingRect:n}},e.FE.MODULES.refresh=function(t){function n(e,t){e.toggleClass("fr-disabled",t).attr("aria-disabled",t)}return{undo:function(e){n(e,!t.undo.canDo())},redo:function(e){n(e,!t.undo.canRedo())},outdent:function(r){if(t.node.hasClass(r.get(0),"fr-no-refresh"))return!1;for(var i=t.selection.blocks(),o=0;o<i.length;o++){var a="rtl"==t.opts.direction||"rtl"==e(i[o]).css("direction")?"margin-right":"margin-left";if("LI"==i[o].tagName||"LI"==i[o].parentNode.tagName)return n(r,!1),!0;if(0<t.helpers.getPX(e(i[o]).css(a)))return n(r,!1),!0}n(r,!0)},indent:function(e){if(t.node.hasClass(e.get(0),"fr-no-refresh"))return!1;for(var r=t.selection.blocks(),i=0;i<r.length;i++){for(var o=r[i].previousSibling;o&&o.nodeType==Node.TEXT_NODE&&0===o.textContent.length;)o=o.previousSibling;if("LI"!=r[i].tagName||o)return n(e,!1),!0;n(e,!0)}}}},e.extend(e.FE.DEFAULTS,{editInPopup:!1}),e.FE.MODULES.textEdit=function(e){return{_init:function(){var t;e.opts.editInPopup&&(t={edit:'<div id="fr-text-edit-'+e.id+'" class="fr-layer fr-text-edit-layer"><div class="fr-input-line"><input type="text" placeholder="'+e.language.translate("Text")+'" tabIndex="1"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="updateText" tabIndex="2">'+e.language.translate("Update")+"</button></div></div>"},e.popups.create("text.edit",t),e.events.$on(e.$el,e._mouseup,function(){setTimeout(function(){var t,n;n=e.popups.get("text.edit"),t="INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder"):e.$el.text(),n.find("input").val(t).trigger("change"),e.popups.setContainer("text.edit",e.$sc),e.popups.show("text.edit",e.$el.offset().left+e.$el.outerWidth()/2,e.$el.offset().top+e.$el.outerHeight(),e.$el.outerHeight())},10)}))},update:function(){var t=e.popups.get("text.edit").find("input").val();0===t.length&&(t=e.opts.placeholderText),"INPUT"===e.$el.prop("tagName")?e.$el.attr("placeholder",t):e.$el.text(t),e.events.trigger("contentChanged"),e.popups.hide("text.edit")}}},e.FE.RegisterCommand("updateText",{focus:!1,undo:!1,callback:function(){this.textEdit.update()}}),e.extend(e.FE.DEFAULTS,{toolbarBottom:!1,toolbarButtons:null,toolbarButtonsXS:null,toolbarButtonsSM:null,toolbarButtonsMD:null,toolbarContainer:null,toolbarInline:!1,toolbarSticky:!0,toolbarStickyOffset:0,toolbarVisibleWithoutSelection:!1}),e.FE.TOOLBAR_BUTTONS=["fullscreen","bold","italic","underline","strikeThrough","subscript","superscript","|","fontFamily","fontSize","color","inlineClass","inlineStyle","paragraphStyle","lineHeight","|","paragraphFormat","align","formatOL","formatUL","outdent","indent","quote","-","insertLink","insertImage","insertVideo","embedly","insertFile","insertTable","|","emoticons","fontAwesome","specialCharacters","insertHR","selectAll","clearFormatting","|","print","getPDF","spellChecker","help","html","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_MD=null,e.FE.TOOLBAR_BUTTONS_SM=["bold","italic","underline","|","fontFamily","fontSize","insertLink","insertImage","table","|","undo","redo"],e.FE.TOOLBAR_BUTTONS_XS=["bold","italic","fontFamily","fontSize","|","undo","redo"],e.FE.MODULES.toolbar=function(t){var n=[];function r(e,t){for(var n=0;n<t.length;n++)"-"!=t[n]&&"|"!=t[n]&&e.indexOf(t[n])<0&&e.push(t[n])}function i(){var e=t.helpers.screenSize();return n[e]}function o(){var e=i();t.$tb.find(".fr-separator").remove(),t.$tb.find("> .fr-command, > div.fr-btn-wrap").addClass("fr-hidden");for(var n=0;n<e.length;n++)if("|"==e[n]||"-"==e[n])t.$tb.append(t.button.buildList([e[n]]));else{var r=t.$tb.find('> .fr-command[data-cmd="'+e[n]+'"], > div.fr-btn-wrap > .fr-command[data-cmd="'+e[n]+'"]'),o=null;t.node.hasClass(r.next().get(0),"fr-dropdown-menu")&&(o=r.next()),t.node.hasClass(r.next().get(0),"fr-options")&&(r=r.parent()),r.removeClass("fr-hidden").appendTo(t.$tb),o&&o.appendTo(t.$tb)}}function a(n,r){setTimeout(function(){if((!n||n.which!=e.FE.KEYCODE.ESC)&&t.selection.inEditor()&&t.core.hasFocus()&&!t.popups.areVisible()&&(t.opts.toolbarVisibleWithoutSelection||!t.selection.isCollapsed()&&!t.keys.isIME()||r)){if(t.$tb.data("instance",t),!1===t.events.trigger("toolbar.show",[n]))return!1;t.$tb.show(),t.opts.toolbarContainer||t.position.forSelection(t.$tb),1<t.opts.zIndex?t.$tb.css("z-index",t.opts.zIndex+1):t.$tb.css("z-index",null)}},0)}function s(e){return(!e||"blur"!==e.type||document.activeElement!==t.el)&&(!(!e||"keydown"!==e.type||!t.keys.ctrlKey(e))||!!t.button.getButtons(".fr-dropdown.fr-active").next().find(t.o_doc.activeElement).length||void(!1!==t.events.trigger("toolbar.hide")&&t.$tb.hide()))}n[e.FE.XS]=t.opts.toolbarButtonsXS||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_XS||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.SM]=t.opts.toolbarButtonsSM||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_SM||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.MD]=t.opts.toolbarButtonsMD||t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS_MD||e.FE.TOOLBAR_BUTTONS||[],n[e.FE.LG]=t.opts.toolbarButtons||e.FE.TOOLBAR_BUTTONS||[];var l=null;function c(n){clearTimeout(l),n&&n.which==e.FE.KEYCODE.ESC||(l=setTimeout(a,t.opts.typingTimer))}function u(){t.events.on("window.mousedown",s),t.events.on("keydown",s),t.events.on("blur",s),t.helpers.isMobile()||t.events.on("window.mouseup",a),t.helpers.isMobile()?t.helpers.isIOS()||(t.events.on("window.touchend",a),t.browser.mozilla&&setInterval(a,200)):t.events.on("window.keyup",c),t.events.on("keydown",function(t){t&&t.which==e.FE.KEYCODE.ESC&&s()}),t.events.on("keydown",function(t){if(t.which==e.FE.KEYCODE.ALT)return t.stopPropagation(),!1},!0),t.events.$on(t.$wp,"scroll.toolbar",a),t.events.$on(t.$sc,"scroll.toolbar",a),t.events.on("commands.after",a),t.helpers.isMobile()&&(t.events.$on(t.$doc,"selectionchange",c),t.events.$on(t.$doc,"orientationchange",a))}function d(){t.$tb.html("").removeData().remove(),t.$tb=null}function f(){t.$box.removeClass("fr-top fr-bottom fr-inline fr-basic"),t.$box.find(".fr-sticky-dummy").remove()}function p(){t.opts.theme&&t.$tb.addClass(t.opts.theme+"-theme"),1<t.opts.zIndex&&t.$tb.css("z-index",t.opts.zIndex+1),"auto"!=t.opts.direction&&t.$tb.removeClass("fr-ltr fr-rtl").addClass("fr-"+t.opts.direction),t.helpers.isMobile()?t.$tb.addClass("fr-mobile"):t.$tb.addClass("fr-desktop"),t.opts.toolbarContainer?(t.opts.toolbarInline&&(u(),s()),t.opts.toolbarBottom?t.$tb.addClass("fr-bottom"):t.$tb.addClass("fr-top")):t.opts.toolbarInline?(t.$sc.append(t.$tb),t.$tb.data("container",t.$sc),t.$tb.addClass("fr-inline"),t.$tb.prepend('<span class="fr-arrow"></span>'),u(),t.opts.toolbarBottom=!1):(t.opts.toolbarBottom&&!t.helpers.isIOS()?(t.$box.append(t.$tb),t.$tb.addClass("fr-bottom"),t.$box.addClass("fr-bottom")):(t.opts.toolbarBottom=!1,t.$box.prepend(t.$tb),t.$tb.addClass("fr-top"),t.$box.addClass("fr-top")),t.$tb.addClass("fr-basic"),t.opts.toolbarSticky&&(t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset)),t.position.addSticky(t.$tb))),function(){var o=e.merge([],i());r(o,n[e.FE.XS]),r(o,n[e.FE.SM]),r(o,n[e.FE.MD]),r(o,n[e.FE.LG]);for(var a=o.length-1;0<=a;a--)"-"!=o[a]&&"|"!=o[a]&&o.indexOf(o[a])<a&&o.splice(a,1);var s=t.button.buildList(o,i());t.$tb.append(s),t.button.bindCommands(t.$tb)}(),t.events.$on(e(t.o_win),"resize",o),t.events.$on(e(t.o_win),"orientationchange",o),t.accessibility.registerToolbar(t.$tb),t.events.$on(t.$tb,t._mousedown+" "+t._mouseup,function(e){var n=e.originalEvent?e.originalEvent.target||e.originalEvent.originalTarget:null;if(n&&"INPUT"!=n.tagName&&!t.edit.isDisabled())return e.stopPropagation(),e.preventDefault(),!1},!0)}var h=!1;return{_init:function(){if(t.$sc=e(t.opts.scrollableContainer).first(),!t.$wp)return!1;t.opts.toolbarContainer?(t.shared.$tb?(t.$tb=t.shared.$tb,t.opts.toolbarInline&&u()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,e(t.opts.toolbarContainer).append(t.$tb),p(),t.$tb.data("instance",t)),t.opts.toolbarInline?t.$box.addClass("fr-inline"):t.$box.addClass("fr-basic"),t.events.on("focus",function(){t.$tb.data("instance",t)},!0),t.opts.toolbarInline=!1):t.opts.toolbarInline?(t.$box.addClass("fr-inline"),t.shared.$tb?(t.$tb=t.shared.$tb,u()):(t.shared.$tb=e('<div class="fr-toolbar"></div>'),t.$tb=t.shared.$tb,p())):(t.$box.addClass("fr-basic"),t.$tb=e('<div class="fr-toolbar"></div>'),p(),t.$tb.data("instance",t)),t.events.on("destroy",f,!0),t.events.on(t.opts.toolbarInline||t.opts.toolbarContainer?"shared.destroy":"destroy",d,!0)},hide:s,show:function(){if(!1===t.events.trigger("toolbar.show"))return!1;t.$tb.show()},showInline:a,disable:function(){!h&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").addClass("fr-disabled fr-no-refresh").attr("aria-disabled",!0),h=!0)},enable:function(){h&&t.$tb&&(t.$tb.find("> .fr-command, .fr-btn-wrap > .fr-command").removeClass("fr-disabled fr-no-refresh").attr("aria-disabled",!1),h=!1),t.button.bulkRefresh()}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),e.FE.PLUGINS.charCounter=function(t){var n;function r(){return(t.el.textContent||"").replace(/\u200B/g,"").length}function i(n){if(t.opts.charCounterMax<0)return!0;if(r()<t.opts.charCounterMax)return!0;var i=n.which;return!(!t.keys.ctrlKey(n)&&t.keys.isCharacter(i)||i===e.FE.KEYCODE.IME)||(n.preventDefault(),n.stopPropagation(),t.events.trigger("charCounter.exceeded"),!1)}function o(n){return t.opts.charCounterMax<0?n:e("<div>").html(n).text().length+r()<=t.opts.charCounterMax?n:(t.events.trigger("charCounter.exceeded"),"")}function a(){if(t.opts.charCounterCount){var e=r()+(0<t.opts.charCounterMax?"/"+t.opts.charCounterMax:"");n.text(e),t.opts.toolbarBottom&&n.css("margin-bottom",t.$tb.outerHeight(!0));var i=t.$wp.get(0).offsetWidth-t.$wp.get(0).clientWidth;0<=i&&("rtl"==t.opts.direction?n.css("margin-left",i):n.css("margin-right",i))}}return{_init:function(){return!!t.$wp&&!!t.opts.charCounterCount&&((n=e('<span class="fr-counter"></span>')).css("bottom",t.$wp.css("border-bottom-width")),t.$box.append(n),t.events.on("keydown",i,!0),t.events.on("paste.afterCleanup",o),t.events.on("keyup contentChanged input",function(){t.events.trigger("charCounter.update")}),t.events.on("charCounter.update",a),t.events.trigger("charCounter.update"),void t.events.on("destroy",function(){e(t.o_win).off("resize.char"+t.id),n.removeData().remove(),n=null}))},count:r}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.FE.PLUGINS.codeBeautifier=function(){var e,t,n,r,i={};function o(e,t){var n={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},r={"@media":!0,"@supports":!0,"@document":!0};t=t||{},e=(e=e||"").replace(/\r\n|[\r\u2028\u2029]/g,"\n");var i=t.indent_size||4,o=t.indent_char||" ",a=void 0===t.selector_separator_newline||t.selector_separator_newline,s=void 0!==t.end_with_newline&&t.end_with_newline,l=void 0===t.newline_between_rules||t.newline_between_rules,c=t.eol?t.eol:"\n";"string"==typeof i&&(i=parseInt(i,10)),t.indent_with_tabs&&(o="\t",i=1),c=c.replace(/\\r/,"\r").replace(/\\n/,"\n");var u,d=/^\s+$/,f=-1,p=0;function h(){return(u=e.charAt(++f))||""}function m(t){var n,r=f;return t&&v(),n=e.charAt(f+1)||"",f=r-1,h(),n}function g(t){for(var n=f;h();)if("\\"===u)h();else{if(-1!==t.indexOf(u))break;if("\n"===u)break}return e.substring(n,f+1)}function v(){for(var e="";d.test(m());)h(),e+=u;return e}function y(){var e="";for(u&&d.test(u)&&(e=u);d.test(h());)e+=u;return e}function b(t){var n=f;for(t="/"===m(),h();h();){if(!t&&"*"===u&&"/"===m()){h();break}if(t&&"\n"===u)return e.substring(n,f)}return e.substring(n,f)+u}function _(t){return e.substring(f-t.length,f).toLowerCase()===t}function w(){for(var t=0,n=f+1;n<e.length;n++){var r=e.charAt(n);if("{"===r)return!0;if("("===r)t+=1;else if(")"===r){if(0==t)return!1;t-=1}else if(";"===r||"}"===r)return!1}return!1}for(var E,k,x=e.match(/^[\t ]*/)[0],S=new Array(i+1).join(o),T=0,C=0,O={"{":function(e){O.singleSpace(),A.push(e),O.newLine()},"}":function(e){O.newLine(),A.push(e),O.newLine()},_lastCharWhitespace:function(){return d.test(A[A.length-1])},newLine:function(e){A.length&&(e||"\n"===A[A.length-1]||O.trim(),A.push("\n"),x&&A.push(x))},singleSpace:function(){A.length&&!O._lastCharWhitespace()&&A.push(" ")},preserveSingleSpace:function(){D&&O.singleSpace()},trim:function(){for(;O._lastCharWhitespace();)A.pop()}},A=[],N=!1,I=!1,M=!1,j="",L="";;){var P=y(),D=""!==P,R=-1!==P.indexOf("\n");if(L=j,!(j=u))break;if("/"===u&&"*"===m()){var F=0===T;(R||F)&&O.newLine(),A.push(b()),O.newLine(),F&&O.newLine(!0)}else if("/"===u&&"/"===m())R||"{"===L||O.trim(),O.singleSpace(),A.push(b()),O.newLine();else if("@"===u){O.preserveSingleSpace(),A.push(u);var B=(E=f,k=g(": ,;{}()[]/='\""),f=E-1,h(),k);B.match(/[ :]$/)&&(h(),B=g(": ").replace(/\s$/,""),A.push(B),O.singleSpace()),(B=B.replace(/\s$/,""))in n&&(C+=1,B in r&&(M=!0))}else"#"===u&&"{"===m()?(O.preserveSingleSpace(),A.push(g("}"))):"{"===u?"}"===m(!0)?(v(),h(),O.singleSpace(),A.push("{}"),O.newLine(),l&&0===T&&O.newLine(!0)):(T++,x+=S,O["{"](u),M?(M=!1,N=C<T):N=C<=T):"}"===u?(T--,x=x.slice(0,-i),O["}"](u),I=N=!1,C&&C--,l&&0===T&&O.newLine(!0)):":"===u?(v(),!N&&!M||_("&")||w()?":"===m()?(h(),A.push("::")):A.push(":"):(I=!0,A.push(":"),O.singleSpace())):'"'===u||"'"===u?(O.preserveSingleSpace(),A.push(g(u))):";"===u?(I=!1,A.push(u),O.newLine()):"("===u?_("url")?(A.push(u),v(),h()&&(")"!==u&&'"'!==u&&"'"!==u?A.push(g(")")):f--)):(p++,O.preserveSingleSpace(),A.push(u),v()):")"===u?(A.push(u),p--):","===u?(A.push(u),v(),a&&!I&&p<1?O.newLine():O.singleSpace()):("]"===u||("["===u?O.preserveSingleSpace():"="===u?(v(),u="="):O.preserveSingleSpace()),A.push(u))}var U="";return x&&(U+=x),U+=A.join("").replace(/[\r\n\t ]+$/,""),s&&(U+="\n"),"\n"!=c&&(U=U.replace(/[\n]/g,c)),U}function a(e,t){for(var n=0;n<t.length;n+=1)if(t[n]===e)return!0;return!1}function s(e){return e.replace(/^\s+|\s+$/g,"")}function l(e,t){return new u(e,t).beautify()}e=i,t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",n=new RegExp("["+t+"]"),r=new RegExp("["+t+"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏０-９＿]"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g"),e.isIdentifierStart=function(e){return e<65?36===e||64===e:e<91||(e<97?95===e:e<123||170<=e&&n.test(String.fromCharCode(e)))},e.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||170<=e&&r.test(String.fromCharCode(e))))};var c={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function u(e,t){var n,r,o,l,u,d,p,m,g,v,y,b,_,w=[],E="";function k(e,t){var r=0;return e&&(r=e.indentation_level,!n.just_added_newline()&&e.line_indent_level>r&&(r=e.line_indent_level)),{mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:r,line_indent_level:e?e.line_indent_level:r,start_line_index:n.get_line_number(),ternary_depth:0}}for(b={TK_START_EXPR:function(){D();var e=c.Expression;if("["===l.text){if("TK_WORD"===u||")"===m.last_text)return"TK_RESERVED"===u&&a(m.last_text,o.line_starters)&&(n.space_before_token=!0),I(e),A(),N(),void(_.space_in_paren&&(n.space_before_token=!0));e=c.ArrayLiteral,M(m.mode)&&("["!==m.last_text&&(","!==m.last_text||"]"!==d&&"}"!==d)||_.keep_array_indentation||C())}else"TK_RESERVED"===u&&"for"===m.last_text?e=c.ForInitializer:"TK_RESERVED"===u&&a(m.last_text,["if","while"])&&(e=c.Conditional);";"===m.last_text||"TK_START_BLOCK"===u?C():"TK_END_EXPR"===u||"TK_START_EXPR"===u||"TK_END_BLOCK"===u||"."===m.last_text?T(l.wanted_newline):"TK_RESERVED"===u&&"("===l.text||"TK_WORD"===u||"TK_OPERATOR"===u?"TK_RESERVED"===u&&("function"===m.last_word||"typeof"===m.last_word)||"*"===m.last_text&&"function"===d?_.space_after_anon_function&&(n.space_before_token=!0):"TK_RESERVED"!==u||!a(m.last_text,o.line_starters)&&"catch"!==m.last_text||_.space_before_conditional&&(n.space_before_token=!0):n.space_before_token=!0,"("===l.text&&"TK_RESERVED"===u&&"await"===m.last_word&&(n.space_before_token=!0),"("===l.text&&("TK_EQUALS"!==u&&"TK_OPERATOR"!==u||P()||T()),I(e),A(),_.space_in_paren&&(n.space_before_token=!0),N()},TK_END_EXPR:function(){for(;m.mode===c.Statement;)L();m.multiline_frame&&T("]"===l.text&&M(m.mode)&&!_.keep_array_indentation),_.space_in_paren&&("TK_START_EXPR"!==u||_.space_in_empty_paren?n.space_before_token=!0:(n.trim(),n.space_before_token=!1)),"]"===l.text&&_.keep_array_indentation?(A(),L()):(L(),A()),n.remove_redundant_indentation(g),m.do_while&&g.mode===c.Conditional&&(g.mode=c.Expression,m.do_block=!1,m.do_while=!1)},TK_START_BLOCK:function(){var e=F(1),t=F(2);t&&(":"===t.text&&a(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||a(e.text,["get","set"])&&a(t.type,["TK_WORD","TK_RESERVED"]))?a(d,["class","interface"])?I(c.BlockStatement):I(c.ObjectLiteral):I(c.BlockStatement);var r=!e.comments_before.length&&"}"===e.text&&"function"===m.last_word&&"TK_END_EXPR"===u;"expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?"TK_OPERATOR"!==u&&(r||"TK_EQUALS"===u||"TK_RESERVED"===u&&R(m.last_text)&&"else"!==m.last_text)?n.space_before_token=!0:C(!1,!0):"TK_OPERATOR"!==u&&"TK_START_EXPR"!==u?"TK_START_BLOCK"===u?C():n.space_before_token=!0:M(g.mode)&&","===m.last_text&&("}"===d?n.space_before_token=!0:C()),A(),N()},TK_END_BLOCK:function(){for(;m.mode===c.Statement;)L();var e="TK_START_BLOCK"===u;"expand"===_.brace_style?e||C():e||(M(m.mode)&&_.keep_array_indentation?(_.keep_array_indentation=!1,C(),_.keep_array_indentation=!0):C()),L(),A()},TK_WORD:B,TK_RESERVED:B,TK_SEMICOLON:function(){for(D()&&(n.space_before_token=!1);m.mode===c.Statement&&!m.if_block&&!m.do_block;)L();A()},TK_STRING:function(){D()?n.space_before_token=!0:"TK_RESERVED"===u||"TK_WORD"===u?n.space_before_token=!0:"TK_COMMA"===u||"TK_START_EXPR"===u||"TK_EQUALS"===u||"TK_OPERATOR"===u?P()||T():C(),A()},TK_EQUALS:function(){D(),m.declaration_statement&&(m.declaration_assignment=!0),n.space_before_token=!0,A(),n.space_before_token=!0},TK_OPERATOR:function(){if(D(),"TK_RESERVED"===u&&R(m.last_text))return n.space_before_token=!0,void A();if("*"!==l.text||"TK_DOT"!==u){if(":"===l.text&&m.in_case)return m.case_body=!0,N(),A(),C(),void(m.in_case=!1);if("::"!==l.text){"TK_OPERATOR"===u&&T();var e=!0,t=!0;a(l.text,["--","++","!","~"])||a(l.text,["-","+"])&&(a(u,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||a(m.last_text,o.line_starters)||","===m.last_text)?(t=e=!1,!l.wanted_newline||"--"!==l.text&&"++"!==l.text||C(!1,!0),";"===m.last_text&&j(m.mode)&&(e=!0),"TK_RESERVED"===u?e=!0:"TK_END_EXPR"===u?e=!("]"===m.last_text&&("--"===l.text||"++"===l.text)):"TK_OPERATOR"===u&&(e=a(l.text,["--","-","++","+"])&&a(m.last_text,["--","-","++","+"]),a(l.text,["+","-"])&&a(m.last_text,["--","++"])&&(t=!0)),m.mode!==c.BlockStatement&&m.mode!==c.Statement||"{"!==m.last_text&&";"!==m.last_text||C()):":"===l.text?0===m.ternary_depth?e=!1:m.ternary_depth-=1:"?"===l.text?m.ternary_depth+=1:"*"===l.text&&"TK_RESERVED"===u&&"function"===m.last_text&&(t=e=!1),n.space_before_token=n.space_before_token||e,A(),n.space_before_token=t}else A()}else A()},TK_COMMA:function(){if(m.declaration_statement)return j(m.parent.mode)&&(m.declaration_assignment=!1),A(),void(m.declaration_assignment?C(m.declaration_assignment=!1,!0):(n.space_before_token=!0,_.comma_first&&T()));A(),m.mode===c.ObjectLiteral||m.mode===c.Statement&&m.parent.mode===c.ObjectLiteral?(m.mode===c.Statement&&L(),C()):(n.space_before_token=!0,_.comma_first&&T())},TK_BLOCK_COMMENT:function(){if(n.raw)return n.add_raw_token(l),void(l.directives&&"end"===l.directives.preserve&&(_.test_output_raw||(n.raw=!1)));if(l.directives)return C(!1,!0),A(),"start"===l.directives.preserve&&(n.raw=!0),void C(!1,!0);if(!i.newline.test(l.text)&&!l.wanted_newline)return n.space_before_token=!0,A(),void(n.space_before_token=!0);var e,t=function(e){e=e.replace(/\x0d/g,"");for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf("\n");return e.length&&t.push(e),t}(l.text),r=!1,o=!1,a=l.whitespace_before,c=a.length;for(C(!1,!0),1<t.length&&(function(e,t){for(var n=0;n<e.length;n++){var r=s(e[n]);if("*"!==r.charAt(0))return!1}return!0}(t.slice(1))?r=!0:function(e,t){for(var n,r=0,i=e.length;r<i;r++)if((n=e[r])&&0!==n.indexOf(t))return!1;return!0}(t.slice(1),a)&&(o=!0)),A(t[0]),e=1;e<t.length;e++)C(!1,!0),r?A(" "+t[e].replace(/^\s+/g,"")):o&&t[e].length>c?A(t[e].substring(c)):n.add_token(t[e]);C(!1,!0)},TK_COMMENT:function(){l.wanted_newline?C(!1,!0):n.trim(!0),n.space_before_token=!0,A(),C(!1,!0)},TK_DOT:function(){D(),"TK_RESERVED"===u&&R(m.last_text)?n.space_before_token=!0:T(")"===m.last_text&&_.break_chained_methods),A()},TK_UNKNOWN:function(){A(),"\n"===l.text[l.text.length-1]&&C()},TK_EOF:function(){for(;m.mode===c.Statement;)L()}},_={},void 0!==(t=t||{}).braces_on_own_line&&(_.brace_style=t.braces_on_own_line?"expand":"collapse"),_.brace_style=t.brace_style?t.brace_style:_.brace_style?_.brace_style:"collapse","expand-strict"===_.brace_style&&(_.brace_style="expand"),_.indent_size=t.indent_size?parseInt(t.indent_size,10):4,_.indent_char=t.indent_char?t.indent_char:" ",_.eol=t.eol?t.eol:"\n",_.preserve_newlines=void 0===t.preserve_newlines||t.preserve_newlines,_.break_chained_methods=void 0!==t.break_chained_methods&&t.break_chained_methods,_.max_preserve_newlines=void 0===t.max_preserve_newlines?0:parseInt(t.max_preserve_newlines,10),_.space_in_paren=void 0!==t.space_in_paren&&t.space_in_paren,_.space_in_empty_paren=void 0!==t.space_in_empty_paren&&t.space_in_empty_paren,_.jslint_happy=void 0!==t.jslint_happy&&t.jslint_happy,_.space_after_anon_function=void 0!==t.space_after_anon_function&&t.space_after_anon_function,_.keep_array_indentation=void 0!==t.keep_array_indentation&&t.keep_array_indentation,_.space_before_conditional=void 0===t.space_before_conditional||t.space_before_conditional,_.unescape_strings=void 0!==t.unescape_strings&&t.unescape_strings,_.wrap_line_length=void 0===t.wrap_line_length?0:parseInt(t.wrap_line_length,10),_.e4x=void 0!==t.e4x&&t.e4x,_.end_with_newline=void 0!==t.end_with_newline&&t.end_with_newline,_.comma_first=void 0!==t.comma_first&&t.comma_first,_.test_output_raw=void 0!==t.test_output_raw&&t.test_output_raw,_.jslint_happy&&(_.space_after_anon_function=!0),t.indent_with_tabs&&(_.indent_char="\t",_.indent_size=1),_.eol=_.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),p="";0<_.indent_size;)p+=_.indent_char,_.indent_size-=1;var x=0;if(e&&e.length){for(;" "===e.charAt(x)||"\t"===e.charAt(x);)E+=e.charAt(x),x+=1;e=e.substring(x)}function S(e){var t=e.newlines;if(_.keep_array_indentation&&M(m.mode))for(n=0;n<t;n+=1)C(0<n);else if(_.max_preserve_newlines&&t>_.max_preserve_newlines&&(t=_.max_preserve_newlines),_.preserve_newlines&&1<e.newlines){C();for(var n=1;n<t;n+=1)C(!0)}b[(l=e).type]()}function T(e){e=void 0!==e&&e,n.just_added_newline()||(_.preserve_newlines&&l.wanted_newline||e?C(!1,!0):_.wrap_line_length&&n.current_line.get_character_count()+l.text.length+(n.space_before_token?1:0)>=_.wrap_line_length&&C(!1,!0))}function C(e,t){if(!t&&";"!==m.last_text&&","!==m.last_text&&"="!==m.last_text&&"TK_OPERATOR"!==u)for(;m.mode===c.Statement&&!m.if_block&&!m.do_block;)L();n.add_new_line(e)&&(m.multiline_frame=!0)}function O(){n.just_added_newline()&&(_.keep_array_indentation&&M(m.mode)&&l.wanted_newline?(n.current_line.push(l.whitespace_before),n.space_before_token=!1):n.set_indent(m.indentation_level)&&(m.line_indent_level=m.indentation_level))}function A(e){n.raw?n.add_raw_token(l):(_.comma_first&&"TK_COMMA"===u&&n.just_added_newline()&&","===n.previous_line.last()&&(n.previous_line.pop(),O(),n.add_token(","),n.space_before_token=!0),e=e||l.text,O(),n.add_token(e))}function N(){m.indentation_level+=1}function I(e){m?(v.push(m),g=m):g=k(null,e),m=k(g,e)}function M(e){return e===c.ArrayLiteral}function j(e){return a(e,[c.Expression,c.ForInitializer,c.Conditional])}function L(){0<v.length&&(g=m,m=v.pop(),g.mode===c.Statement&&n.remove_redundant_indentation(g))}function P(){return m.parent.mode===c.ObjectLiteral&&m.mode===c.Statement&&(":"===m.last_text&&0===m.ternary_depth||"TK_RESERVED"===u&&a(m.last_text,["get","set"]))}function D(){return!!("TK_RESERVED"===u&&a(m.last_text,["var","let","const"])&&"TK_WORD"===l.type||"TK_RESERVED"===u&&"do"===m.last_text||"TK_RESERVED"===u&&"return"===m.last_text&&!l.wanted_newline||"TK_RESERVED"===u&&"else"===m.last_text&&("TK_RESERVED"!==l.type||"if"!==l.text)||"TK_END_EXPR"===u&&(g.mode===c.ForInitializer||g.mode===c.Conditional)||"TK_WORD"===u&&m.mode===c.BlockStatement&&!m.in_case&&"--"!==l.text&&"++"!==l.text&&"function"!==d&&"TK_WORD"!==l.type&&"TK_RESERVED"!==l.type||m.mode===c.ObjectLiteral&&(":"===m.last_text&&0===m.ternary_depth||"TK_RESERVED"===u&&a(m.last_text,["get","set"])))&&(I(c.Statement),N(),"TK_RESERVED"===u&&a(m.last_text,["var","let","const"])&&"TK_WORD"===l.type&&(m.declaration_statement=!0),P()||T("TK_RESERVED"===l.type&&a(l.text,["do","for","if","while"])),!0)}function R(e){return a(e,["case","return","do","if","throw","else"])}function F(e){var t=r+(e||0);return t<0||t>=w.length?null:w[t]}function B(){if("TK_RESERVED"===l.type&&m.mode!==c.ObjectLiteral&&a(l.text,["set","get"])&&(l.type="TK_WORD"),"TK_RESERVED"===l.type&&m.mode===c.ObjectLiteral&&":"==F(1).text&&(l.type="TK_WORD"),D()||!l.wanted_newline||j(m.mode)||"TK_OPERATOR"===u&&"--"!==m.last_text&&"++"!==m.last_text||"TK_EQUALS"===u||!_.preserve_newlines&&"TK_RESERVED"===u&&a(m.last_text,["var","let","const","set","get"])||C(),m.do_block&&!m.do_while){if("TK_RESERVED"===l.type&&"while"===l.text)return n.space_before_token=!0,A(),n.space_before_token=!0,void(m.do_while=!0);C(),m.do_block=!1}if(m.if_block)if(m.else_block||"TK_RESERVED"!==l.type||"else"!==l.text){for(;m.mode===c.Statement;)L();m.if_block=!1,m.else_block=!1}else m.else_block=!0;return"TK_RESERVED"===l.type&&("case"===l.text||"default"===l.text&&m.in_case_statement)?(C(),(m.case_body||_.jslint_happy)&&(0<m.indentation_level&&(!m.parent||m.indentation_level>m.parent.indentation_level)&&(m.indentation_level-=1),m.case_body=!1),A(),m.in_case=!0,void(m.in_case_statement=!0)):("TK_RESERVED"===l.type&&"function"===l.text&&((a(m.last_text,["}",";"])||n.just_added_newline()&&!a(m.last_text,["[","{",":","=",","]))&&(n.just_added_blankline()||l.comments_before.length||(C(),C(!0))),"TK_RESERVED"===u||"TK_WORD"===u?"TK_RESERVED"===u&&a(m.last_text,["get","set","new","return","export","async"])?n.space_before_token=!0:"TK_RESERVED"===u&&"default"===m.last_text&&"export"===d?n.space_before_token=!0:C():"TK_OPERATOR"===u||"="===m.last_text?n.space_before_token=!0:(m.multiline_frame||!j(m.mode)&&!M(m.mode))&&C()),"TK_COMMA"!==u&&"TK_START_EXPR"!==u&&"TK_EQUALS"!==u&&"TK_OPERATOR"!==u||P()||T(),"TK_RESERVED"===l.type&&a(l.text,["function","get","set"])?(A(),void(m.last_word=l.text)):(y="NONE","TK_END_BLOCK"===u?"TK_RESERVED"===l.type&&a(l.text,["else","catch","finally"])?"expand"===_.brace_style||"end-expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?y="NEWLINE":(y="SPACE",n.space_before_token=!0):y="NEWLINE":"TK_SEMICOLON"===u&&m.mode===c.BlockStatement?y="NEWLINE":"TK_SEMICOLON"===u&&j(m.mode)?y="SPACE":"TK_STRING"===u?y="NEWLINE":"TK_RESERVED"===u||"TK_WORD"===u||"*"===m.last_text&&"function"===d?y="SPACE":"TK_START_BLOCK"===u?y="NEWLINE":"TK_END_EXPR"===u&&(n.space_before_token=!0,y="NEWLINE"),"TK_RESERVED"===l.type&&a(l.text,o.line_starters)&&")"!==m.last_text&&(y="else"===m.last_text||"export"===m.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===l.type&&a(l.text,["else","catch","finally"])?"TK_END_BLOCK"!==u||"expand"===_.brace_style||"end-expand"===_.brace_style||"none"===_.brace_style&&l.wanted_newline?C():(n.trim(!0),"}"!==n.current_line.last()&&C(),n.space_before_token=!0):"NEWLINE"===y?"TK_RESERVED"===u&&R(m.last_text)?n.space_before_token=!0:"TK_END_EXPR"!==u?"TK_START_EXPR"===u&&"TK_RESERVED"===l.type&&a(l.text,["var","let","const"])||":"===m.last_text||("TK_RESERVED"===l.type&&"if"===l.text&&"else"===m.last_text?n.space_before_token=!0:C()):"TK_RESERVED"===l.type&&a(l.text,o.line_starters)&&")"!==m.last_text&&C():m.multiline_frame&&M(m.mode)&&","===m.last_text&&"}"===d?C():"SPACE"===y&&(n.space_before_token=!0),A(),m.last_word=l.text,"TK_RESERVED"===l.type&&"do"===l.text&&(m.do_block=!0),void("TK_RESERVED"===l.type&&"if"===l.text&&(m.if_block=!0))))}u="TK_START_BLOCK",d="",(n=new f(p,E)).raw=_.test_output_raw,v=[],I(c.BlockStatement),this.beautify=function(){var t,i;for(o=new h(e,_,p),w=o.tokenize(),r=0;t=F();){for(var a=0;a<t.comments_before.length;a++)S(t.comments_before[a]);S(t),d=m.last_text,u=t.type,m.last_text=t.text,r+=1}return i=n.get_code(),_.end_with_newline&&(i+="\n"),"\n"!=_.eol&&(i=i.replace(/[\n]/g,_.eol)),i}}function d(e){var t=0,n=-1,r=[],i=!0;this.set_indent=function(r){t=e.baseIndentLength+r*e.indent_length,n=r},this.get_character_count=function(){return t},this.is_empty=function(){return i},this.last=function(){return this._empty?null:r[r.length-1]},this.push=function(e){r.push(e),t+=e.length,i=!1},this.pop=function(){var e=null;return i||(e=r.pop(),t-=e.length,i=0===r.length),e},this.remove_indent=function(){0<n&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)r.pop(),t-=1;i=0===r.length},this.toString=function(){var t="";return this._empty||(0<=n&&(t=e.indent_cache[n]),t+=r.join("")),t}}function f(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var n=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new d(this),n.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return n.length},this.add_new_line=function(e){return!(1===this.get_line_number()&&this.just_added_newline()||!e&&this.just_added_newline()||(this.raw||this.add_outputline(),0))},this.get_code=function(){return n.join("\n").replace(/[\r\n\t ]+$/,"")},this.set_indent=function(e){if(1<n.length){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),!1},this.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.add_outputline();this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1},this.add_token=function(e){this.add_space_before_token(),this.current_line.push(e)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(e){if(!e.multiline_frame&&e.mode!==c.ForInitializer&&e.mode!==c.Conditional)for(var t=e.start_line_index,r=n.length;t<r;)n[t].remove_indent(),t++},this.trim=function(r){for(r=void 0!==r&&r,this.current_line.trim(e,t);r&&1<n.length&&this.current_line.is_empty();)n.pop(),this.current_line=n[n.length-1],this.current_line.trim();this.previous_line=1<n.length?n[n.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){return!!this.just_added_newline()&&(1===n.length||n[n.length-2].is_empty())}}var p=function(e,t,n,r,i,o){this.type=e,this.text=t,this.comments_before=[],this.newlines=n||0,this.wanted_newline=0<n,this.whitespace_before=r||"",this.parent=null,this.directives=null};function h(e,t,n){var r="\n\r\t ".split(""),o=/[0-9]/,l=/[01234567]/,c=/[0123456789abcdefABCDEF]/,u="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! ~ , : ? ^ ^= |= :: =>".split(" ");this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var d,f,h,m,g,v,y=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await"]),b=/([\s\S]*?)((?:\*\/)|$)/g,_=/([^\n\r\u2028\u2029]*)/g,w=/\/\* beautify( \w+[:]\w+)+ \*\//g,E=/ (\w+)[:](\w+)/g,k=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,x=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;function S(){var n,S,T=[];if(d=0,f="",v<=g)return["","TK_EOF"];S=m.length?m[m.length-1]:new p("TK_START_BLOCK","{");var C=e.charAt(g);for(g+=1;a(C,r);){if(i.newline.test(C)?"\n"===C&&"\r"===e.charAt(g-2)||(d+=1,T=[]):T.push(C),v<=g)return["","TK_EOF"];C=e.charAt(g),g+=1}if(T.length&&(f=T.join("")),o.test(C)){var O=!0,A=!0,N=o;for("0"===C&&g<v&&/[Xxo]/.test(e.charAt(g))?(A=O=!1,C+=e.charAt(g),g+=1,N=/[o]/.test(e.charAt(g))?l:c):(C="",g-=1);g<v&&N.test(e.charAt(g));)C+=e.charAt(g),g+=1,O&&g<v&&"."===e.charAt(g)&&(C+=e.charAt(g),g+=1,O=!1),A&&g<v&&/[Ee]/.test(e.charAt(g))&&(C+=e.charAt(g),(g+=1)<v&&/[+-]/.test(e.charAt(g))&&(C+=e.charAt(g),g+=1),O=A=!1);return[C,"TK_WORD"]}if(i.isIdentifierStart(e.charCodeAt(g-1))){if(g<v)for(;i.isIdentifierChar(e.charCodeAt(g))&&(C+=e.charAt(g),(g+=1)!==v););return"TK_DOT"===S.type||"TK_RESERVED"===S.type&&a(S.text,["set","get"])||!a(C,y)?[C,"TK_WORD"]:"in"===C?[C,"TK_OPERATOR"]:[C,"TK_RESERVED"]}if("("===C||"["===C)return[C,"TK_START_EXPR"];if(")"===C||"]"===C)return[C,"TK_END_EXPR"];if("{"===C)return[C,"TK_START_BLOCK"];if("}"===C)return[C,"TK_END_BLOCK"];if(";"===C)return[C,"TK_SEMICOLON"];if("/"===C){var I="";if("*"===e.charAt(g)){var M;g+=1,b.lastIndex=g,I="/*"+(M=b.exec(e))[0],g+=M[0].length;var j=function(e){if(!e.match(w))return null;var t={};E.lastIndex=0;for(var n=E.exec(e);n;)t[n[1]]=n[2],n=E.exec(e);return t}(I);return j&&"start"===j.ignore&&(k.lastIndex=g,I+=(M=k.exec(e))[0],g+=M[0].length),[I=I.replace(i.lineBreak,"\n"),"TK_BLOCK_COMMENT",j]}if("/"===e.charAt(g))return g+=1,_.lastIndex=g,I="//"+(M=_.exec(e))[0],g+=M[0].length,[I,"TK_COMMENT"]}if("`"===C||"'"===C||'"'===C||("/"===C||t.e4x&&"<"===C&&e.slice(g-1).match(/^<([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/))&&("TK_RESERVED"===S.type&&a(S.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===S.type&&")"===S.text&&S.parent&&"TK_RESERVED"===S.parent.type&&a(S.parent.text,["if","while","for"])||a(S.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var L=C,P=!1,D=!1;if(n=C,"/"===L)for(var R=!1;g<v&&(P||R||e.charAt(g)!==L)&&!i.newline.test(e.charAt(g));)n+=e.charAt(g),P?P=!1:(P="\\"===e.charAt(g),"["===e.charAt(g)?R=!0:"]"===e.charAt(g)&&(R=!1)),g+=1;else if(t.e4x&&"<"===L){var F=/<(\/?)([-a-zA-Z:0-9_.]+|{[^{}]*}|!\[CDATA\[[\s\S]*?\]\])(\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.*?}))*\s*(\/?)\s*>/g,B=e.slice(g-1),U=F.exec(B);if(U&&0===U.index){for(var q=U[2],z=0;U;){var H=!!U[1],W=U[2],$=!!U[U.length-1]||"![CDATA["===W.slice(0,8);if(W!==q||$||(H?--z:++z),z<=0)break;U=F.exec(B)}var Y=U?U.index+U[0].length:B.length;return B=B.slice(0,Y),g+=Y-1,[B=B.replace(i.lineBreak,"\n"),"TK_STRING"]}}else for(;g<v&&(P||e.charAt(g)!==L&&("`"===L||!i.newline.test(e.charAt(g))));)(P||"`"===L)&&i.newline.test(e.charAt(g))?("\r"===e.charAt(g)&&"\n"===e.charAt(g+1)&&(g+=1),n+="\n"):n+=e.charAt(g),P?("x"!==e.charAt(g)&&"u"!==e.charAt(g)||(D=!0),P=!1):P="\\"===e.charAt(g),g+=1;if(D&&t.unescape_strings&&(n=function(e){for(var t,n=!1,r="",i=0,o="",a=0;n||i<e.length;)if(t=e.charAt(i),i++,n){if(n=!1,"x"===t)o=e.substr(i,2),i+=2;else{if("u"!==t){r+="\\"+t;continue}o=e.substr(i,4),i+=4}if(!o.match(/^[0123456789abcdefABCDEF]+$/))return e;if(0<=(a=parseInt(o,16))&&a<32){r+="x"===t?"\\x"+o:"\\u"+o;continue}if(34===a||39===a||92===a)r+="\\"+String.fromCharCode(a);else{if("x"===t&&126<a&&a<=255)return e;r+=String.fromCharCode(a)}}else"\\"===t?n=!0:r+=t;return r}(n)),g<v&&e.charAt(g)===L&&(n+=L,g+=1,"/"===L))for(;g<v&&i.isIdentifierStart(e.charCodeAt(g));)n+=e.charAt(g),g+=1;return[n,"TK_STRING"]}if("#"===C){if(0===m.length&&"!"===e.charAt(g)){for(n=C;g<v&&"\n"!==C;)n+=C=e.charAt(g),g+=1;return[s(n)+"\n","TK_UNKNOWN"]}var V="#";if(g<v&&o.test(e.charAt(g))){for(;V+=C=e.charAt(g),(g+=1)<v&&"#"!==C&&"="!==C;);return"#"===C||("["===e.charAt(g)&&"]"===e.charAt(g+1)?(V+="[]",g+=2):"{"===e.charAt(g)&&"}"===e.charAt(g+1)&&(V+="{}",g+=2)),[V,"TK_WORD"]}}if("<"===C&&("?"===e.charAt(g)||"%"===e.charAt(g))){x.lastIndex=g-1;var K=x.exec(e);if(K)return C=K[0],g+=C.length-1,[C=C.replace(i.lineBreak,"\n"),"TK_STRING"]}if("<"===C&&"\x3c!--"===e.substring(g-1,g+3)){for(g+=3,C="\x3c!--";!i.newline.test(e.charAt(g))&&g<v;)C+=e.charAt(g),g++;return h=!0,[C,"TK_COMMENT"]}if("-"===C&&h&&"--\x3e"===e.substring(g-1,g+2))return h=!1,g+=2,["--\x3e","TK_COMMENT"];if("."===C)return[C,"TK_DOT"];if(a(C,u)){for(;g<v&&a(C+e.charAt(g),u)&&(C+=e.charAt(g),!(v<=(g+=1))););return","===C?[C,"TK_COMMA"]:"="===C?[C,"TK_EQUALS"]:[C,"TK_OPERATOR"]}return[C,"TK_UNKNOWN"]}this.tokenize=function(){var t,n,r;v=e.length,g=0,h=!1,m=[];for(var i=null,o=[],a=[];!n||"TK_EOF"!==n.type;){for(r=S(),t=new p(r[1],r[0],d,f);"TK_COMMENT"===t.type||"TK_BLOCK_COMMENT"===t.type||"TK_UNKNOWN"===t.type;)"TK_BLOCK_COMMENT"===t.type&&(t.directives=r[2]),a.push(t),r=S(),t=new p(r[1],r[0],d,f);a.length&&(t.comments_before=a,a=[]),"TK_START_BLOCK"===t.type||"TK_START_EXPR"===t.type?(t.parent=n,o.push(i),i=t):("TK_END_BLOCK"===t.type||"TK_END_EXPR"===t.type)&&i&&("]"===t.text&&"["===i.text||")"===t.text&&"("===i.text||"}"===t.text&&"{"===i.text)&&(t.parent=i.parent,i=o.pop()),m.push(t),n=t}return m}}return{run:function(e,t){function n(e){return e.replace(/\s+$/g,"")}var r,i,a,s,c,u,d,f,p,h,m,g,v,y;for(void 0!==(t=t||{}).wrap_line_length&&0!==parseInt(t.wrap_line_length,10)||void 0===t.max_char||0===parseInt(t.max_char,10)||(t.wrap_line_length=t.max_char),i=void 0!==t.indent_inner_html&&t.indent_inner_html,a=void 0===t.indent_size?4:parseInt(t.indent_size,10),s=void 0===t.indent_char?" ":t.indent_char,u=void 0===t.brace_style?"collapse":t.brace_style,c=0===parseInt(t.wrap_line_length,10)?32786:parseInt(t.wrap_line_length||250,10),d=t.unformatted||["a","span","img","bdo","em","strong","dfn","code","samp","kbd","var","cite","abbr","acronym","q","sub","sup","tt","i","b","big","small","u","s","strike","font","ins","del","address","pre"],f=void 0===t.preserve_newlines||t.preserve_newlines,p=f?isNaN(parseInt(t.max_preserve_newlines,10))?32786:parseInt(t.max_preserve_newlines,10):0,h=void 0!==t.indent_handlebars&&t.indent_handlebars,m=void 0===t.wrap_attributes?"auto":t.wrap_attributes,g=void 0===t.wrap_attributes_indent_size?a:parseInt(t.wrap_attributes_indent_size,10)||a,v=void 0!==t.end_with_newline&&t.end_with_newline,y=Array.isArray(t.extra_liners)?t.extra_liners.concat():"string"==typeof t.extra_liners?t.extra_liners.split(","):"head,body,/html".split(","),t.indent_with_tabs&&(s="\t",a=1),(r=new function(){return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=i,this.Utils={whitespace:"\n\r\t ".split(""),single_token:"br,input,link,meta,source,!doctype,basefont,base,area,hr,wbr,param,img,isindex,embed".split(","),extra_liners:y,in_array:function(e,t){for(var n=0;n<t.length;n++)if(e==t[n])return!0;return!1}},this.is_whitespace=function(e){for(;0<e.length;e++)if(!this.Utils.in_array(e.charAt(0),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var e="";if(e=this.input.charAt(this.pos),this.Utils.in_array(e,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(e,this.Utils.whitespace);)f&&"\n"==e&&this.newlines<=p&&(this.newlines+=1),this.pos++,e=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(e){this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e)):(this.line_char_count++,e.push(" "))},this.get_content=function(){for(var e="",t=[];"<"!=this.input.charAt(this.pos);){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(t);else{if(h){var n=this.input.substr(this.pos,3);if("{{#"==n||"{{/"==n)break;if("{{!"==n)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"==this.input.substr(this.pos,2)&&"{{else}}"==this.get_tag(!0))break}e=this.input.charAt(this.pos),this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos==this.input.length)return["","TK_EOF"];var t="",n=new RegExp("</"+e+"\\s*>","igm");n.lastIndex=this.pos;var r=n.exec(this.input),i=r?r.index:this.input.length;return this.pos<i&&(t=this.input.substring(this.pos,i),this.pos=i),t},this.record_tag=function(e){this.tags[e+"count"]?this.tags[e+"count"]++:this.tags[e+"count"]=1,this.tags[e+this.tags[e+"count"]]=this.indent_level,this.tags[e+this.tags[e+"count"]+"parent"]=this.tags.parent,this.tags.parent=e+this.tags[e+"count"]},this.retrieve_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!=t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]],this.tags.parent=this.tags[t+"parent"]),delete this.tags[e+this.tags[e+"count"]+"parent"],delete this.tags[e+this.tags[e+"count"]],1==this.tags[e+"count"]?delete this.tags[e+"count"]:this.tags[e+"count"]--}},this.indent_to_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!=t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]])}},this.get_tag=function(e){var t,n,r="",i=[],o="",a=!1,l=!0,c=this.pos,u=this.line_char_count;e=void 0!==e&&e;do{if(this.pos>=this.input.length)return e&&(this.pos=c,this.line_char_count=u),i.length?i.join(""):["","TK_EOF"];if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace))a=!0;else{if("'"!=r&&'"'!=r||(r+=this.get_unformatted(r),a=!0),"="==r&&(a=!1),i.length&&"="!=i[i.length-1]&&">"!=r&&a){if(this.space_or_wrap(i),a=!1,!l&&"force"==m&&"/"!=r){this.print_newline(!0,i),this.print_indentation(i);for(var f=0;f<g;f++)i.push(s)}for(var p=0;p<i.length;p++)if(" "==i[p]){l=!1;break}}if(h&&"<"==n&&r+this.input.charAt(this.pos)=="{{"&&(r+=this.get_unformatted("}}"),i.length&&" "!=i[i.length-1]&&"<"!=i[i.length-1]&&(r=" "+r),a=!0),"<"!=r||n||(t=this.pos-1,n="<"),h&&!n&&2<=i.length&&"{"==i[i.length-1]&&"{"==i[i.length-2]&&(t="#"==r||"/"==r||"!"==r?this.pos-3:this.pos-2,n="{"),this.line_char_count++,i.push(r),i[1]&&("!"==i[1]||"?"==i[1]||"%"==i[1])){i=[this.get_comment(t)];break}if(h&&i[1]&&"{"==i[1]&&i[2]&&"!"==i[2]){i=[this.get_comment(t)];break}if(h&&"{"==n&&2<i.length&&"}"==i[i.length-2]&&"}"==i[i.length-1])break}}while(">"!=r);var v,y,b=i.join("");v=-1!=b.indexOf(" ")?b.indexOf(" "):"{"==b[0]?b.indexOf("}"):b.indexOf(">"),y="<"!=b[0]&&h?"#"==b[2]?3:2:1;var _=b.substring(y,v).toLowerCase();return"/"==b.charAt(b.length-2)||this.Utils.in_array(_,this.Utils.single_token)?e||(this.tag_type="SINGLE"):h&&"{"==b[0]&&"else"==_?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(_,d)?(o=this.get_unformatted("</"+_+">",b),i.push(o),this.pos,this.tag_type="SINGLE"):"script"==_&&(-1==b.search("type")||-1<b.search("type")&&-1<b.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript)/))?e||(this.record_tag(_),this.tag_type="SCRIPT"):"style"==_&&(-1==b.search("type")||-1<b.search("type")&&-1<b.search("text/css"))?e||(this.record_tag(_),this.tag_type="STYLE"):"!"==_.charAt(0)?e||(this.tag_type="SINGLE",this.traverse_whitespace()):e||("/"==_.charAt(0)?(this.retrieve_tag(_.substring(1)),this.tag_type="END"):(this.record_tag(_),"html"!=_.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(i),this.Utils.in_array(_,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!=this.output[this.output.length-2]&&this.print_newline(!0,this.output))),e&&(this.pos=c,this.line_char_count=u),i.join("")},this.get_comment=function(e){var t="",n=">",r=!1;this.pos=e;var i=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&((t+=i)[t.length-1]!=n[n.length-1]||-1==t.indexOf(n));)!r&&t.length<10&&(0===t.indexOf("<![if")?(n="<![endif]>",r=!0):0===t.indexOf("<![cdata[")?(n="]]>",r=!0):0===t.indexOf("<![")?(n="]>",r=!0):0===t.indexOf("\x3c!--")?(n="--\x3e",r=!0):0===t.indexOf("{{!")?(n="}}",r=!0):0===t.indexOf("<?")?(n="?>",r=!0):0===t.indexOf("<%")&&(n="%>",r=!0)),i=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(e,t){if(t&&-1!=t.toLowerCase().indexOf(e))return"";var n="",r="",i=0,o=!0;do{if(this.pos>=this.input.length)return r;if(n=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(n,this.Utils.whitespace)){if(!o){this.line_char_count--;continue}if("\n"==n||"\r"==n){r+="\n",this.line_char_count=0;continue}}r+=n,this.line_char_count++,o=!0,h&&"{"==n&&r.length&&"{"==r[r.length-2]&&(i=(r+=this.get_unformatted("}}")).length)}while(-1==r.toLowerCase().indexOf(e,i));return r},this.get_token=function(){var e;if("TK_TAG_SCRIPT"==this.last_token||"TK_TAG_STYLE"==this.last_token){var t=this.last_token.substr(7);return"string"!=typeof(e=this.get_contents_to(t))?e:[e,"TK_"+t]}return"CONTENT"==this.current_mode?"string"!=typeof(e=this.get_content())?e:[e,"TK_CONTENT"]:"TAG"==this.current_mode?"string"!=typeof(e=this.get_tag())?e:[e,"TK_TAG_"+this.tag_type]:void 0},this.get_full_indent=function(e){return(e=this.indent_level+e||0)<1?"":new Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!=e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var n=(this.get_tag(!0)||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!(n&&!this.Utils.in_array(n,t))},this.printer=function(e,t,r,i,o){this.input=e||"",this.output=[],this.indent_character=t,this.indent_string="",this.indent_size=r,this.brace_style=o,this.indent_level=0,this.wrap_line_length=i;for(var a=this.line_char_count=0;a<this.indent_size;a++)this.indent_string+=this.indent_character;this.print_newline=function(e,t){this.line_char_count=0,t&&t.length&&(e||"\n"!=t[t.length-1])&&("\n"!=t[t.length-1]&&(t[t.length-1]=n(t[t.length-1])),t.push("\n"))},this.print_indentation=function(e){for(var t=0;t<this.indent_level;t++)e.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(e){this.is_whitespace(e)&&!this.output.length||((e||""!==e)&&this.output.length&&"\n"==this.output[this.output.length-1]&&(this.print_indentation(this.output),e=e.replace(/^\s+/g,"")),this.print_token_raw(e))},this.print_token_raw=function(e){0<this.newlines&&(e=n(e)),e&&""!==e&&(1<e.length&&"\n"==e[e.length-1]?(this.output.push(e.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(e));for(var t=0;t<this.newlines;t++)this.print_newline(0<t,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){0<this.indent_level&&this.indent_level--}},this}).printer(e,s,a,c,u);;){var b=r.get_token();if(r.token_text=b[0],r.token_type=b[1],"TK_EOF"==r.token_type)break;switch(r.token_type){case"TK_TAG_START":r.print_newline(!1,r.output),r.print_token(r.token_text),r.indent_content&&(r.indent(),r.indent_content=!1),r.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":r.print_newline(!1,r.output),r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"==r.last_token&&""===r.last_text){var _=r.token_text.match(/\w+/)[0],w=null;r.output.length&&(w=r.output[r.output.length-1].match(/(?:<|{{#)\/?\s*(\w+)/)),(null==w||w[1]!=_&&!r.Utils.in_array(w[1],d))&&r.print_newline(!1,r.output)}r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var E=r.token_text.match(/^\s*<([a-z-]+)/i);E&&r.Utils.in_array(E[1],d)||r.print_newline(!1,r.output),r.print_token(r.token_text),r.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":r.print_token(r.token_text),r.indent_content&&(r.indent(),r.indent_content=!1),r.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":case"TK_CONTENT":r.print_token(r.token_text),r.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==r.token_text){r.print_newline(!1,r.output);var k,x=r.token_text,S=1;"TK_SCRIPT"==r.token_type?k=l:"TK_STYLE"==r.token_type&&(k=o),"keep"==t.indent_scripts?S=0:"separate"==t.indent_scripts&&(S=-r.indent_level);var T=r.get_full_indent(S);if(k)x=k(x.replace(/^\s*/,T),t);else{var C=x.match(/^\s*/)[0].match(/[^\n\r]*$/)[0].split(r.indent_string).length-1,O=r.get_full_indent(S-C);x=x.replace(/^\s*/,T).replace(/\r\n|\r|\n/g,"\n"+O).replace(/\s+$/,"")}x&&(r.print_token_raw(x),r.print_newline(!0,r.output))}r.current_mode="TAG";break;default:""!==r.token_text&&r.print_token(r.token_text)}r.last_token=r.token_type,r.last_text=r.token_text}var A=r.output.join("").replace(/[\r\n\t ]+$/,"");return v&&(A+="\n"),A}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{codeMirror:window.CodeMirror,codeMirrorOptions:{lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!0,mode:"text/html",tabSize:2},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","ol","table","dl"],brace_style:"expand",indent_char:"\t",indent_size:1,wrap_line_length:0},codeViewKeepActiveButtons:["fullscreen"]}),e.FE.PLUGINS.codeView=function(t){var n,r;function i(){return t.$box.hasClass("fr-code-view")}function o(){return r?r.getValue():n.val()}function a(){i()&&(r&&r.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin||t.opts.height?t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",t.opts.heightMin||t.opts.height):t.$box.find(".CodeMirror-scroll, .CodeMirror-gutters").css("min-height",""))}var s,l=!1;function c(){i()&&t.events.trigger("blur")}function u(){i()&&l&&t.events.trigger("focus")}function d(p){void 0===p&&(p=!i());var h,m,g=t.$tb.find('.fr-command[data-cmd="html"]');p?(t.popups.hideAll(),function(p){n||(function(){n=e('<textarea class="fr-code" tabIndex="-1">'),t.$wp.append(n),n.attr("dir",t.opts.direction),t.$box.hasClass("fr-basic")||(s=e('<a data-cmd="html" title="Code View" class="fr-command fr-btn html-switch'+(t.helpers.isMobile()?"":" fr-desktop")+'" role="button" tabIndex="-1"><i class="fa fa-code"></i></button>'),t.$box.append(s),t.events.bindClick(t.$box,"a.html-switch",function(){t.events.trigger("commands.before",["html"]),d(!1),t.events.trigger("commands.after",["html"])}));var r=function(){return!i()};t.events.on("buttons.refresh",r),t.events.on("copy",r,!0),t.events.on("cut",r,!0),t.events.on("paste",r,!0),t.events.on("destroy",f,!0),t.events.on("html.set",function(){i()&&d(!0)}),t.events.on("codeView.update",a),t.events.on("form.submit",function(){i()&&(t.html.set(o()),t.events.trigger("contentChanged",[],!0))},!0)}(),!r&&t.opts.codeMirror?((r=t.opts.codeMirror.fromTextArea(n.get(0),t.opts.codeMirrorOptions)).on("blur",c),r.on("focus",u)):(t.events.$on(n,"keydown keyup change input",function(){t.opts.height?this.removeAttribute("rows"):(this.rows=1,0===this.value.length?this.style.height="auto":this.style.height=this.scrollHeight+"px")}),t.events.$on(n,"blur",c),t.events.$on(n,"focus",u))),t.undo.saveStep(),t.html.cleanEmptyTags(),t.html.cleanWhiteTags(!0),t.core.hasFocus()&&(t.core.isEmpty()||(t.selection.save(),t.$el.find('.fr-marker[data-type="true"]:first').replaceWith('<span class="fr-tmp fr-sm">F</span>'),t.$el.find('.fr-marker[data-type="false"]:last').replaceWith('<span class="fr-tmp fr-em">F</span>')));var h=t.html.get(!1,!0);t.$el.find("span.fr-tmp").remove(),t.$box.toggleClass("fr-code-view",!0);var m,g,v=!1;if(t.core.hasFocus()&&(v=!0,t.events.disableBlur(),t.$el.blur()),h=(h=h.replace(/<span class="fr-tmp fr-sm">F<\/span>/,"FROALA-SM")).replace(/<span class="fr-tmp fr-em">F<\/span>/,"FROALA-EM"),t.codeBeautifier&&(h=t.codeBeautifier.run(h,t.opts.codeBeautifierOptions)),r){m=h.indexOf("FROALA-SM"),(g=h.indexOf("FROALA-EM"))<m?m=g:g-=9;var y=(h=h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).substring(0,m).length-h.substring(0,m).replace(/\n/g,"").length,b=h.substring(0,g).length-h.substring(0,g).replace(/\n/g,"").length;m=h.substring(0,m).length-h.substring(0,h.substring(0,m).lastIndexOf("\n")+1).length,g=h.substring(0,g).length-h.substring(0,h.substring(0,g).lastIndexOf("\n")+1).length,r.setSize(null,t.opts.height?t.opts.height:"auto"),t.opts.heightMin&&t.$box.find(".CodeMirror-scroll").css("min-height",t.opts.heightMin),r.setValue(h),l=!v,r.focus(),l=!0,r.setSelection({line:y,ch:m},{line:b,ch:g}),r.refresh(),r.clearHistory()}else{m=h.indexOf("FROALA-SM"),g=h.indexOf("FROALA-EM")-9,t.opts.heightMin&&n.css("min-height",t.opts.heightMin),t.opts.height&&n.css("height",t.opts.height),n.val(h.replace(/FROALA-SM/g,"").replace(/FROALA-EM/g,"")).trigger("change");var _=e(t.o_doc).scrollTop();l=!v,n.focus(),l=!0,n.get(0).setSelectionRange(m,g),e(t.o_doc).scrollTop(_)}t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(p).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!0),p.addClass("fr-active").attr("aria-pressed",!0),!t.helpers.isMobile()&&t.opts.toolbarInline&&t.toolbar.hide()}(g)):(t.$box.toggleClass("fr-code-view",!1),h=g,m=o(),t.html.set(m),t.$el.blur(),t.$tb.find(" > .fr-command, > .fr-btn-wrap > .fr-command").not(h).removeClass("fr-disabled").attr("aria-disabled",!1),h.removeClass("fr-active").attr("aria-pressed",!1),t.selection.setAtStart(t.el),t.selection.restore(),t.placeholder.refresh(),t.undo.saveStep())}function f(){i()&&d(!1),r&&r.toTextArea(),n.val("").removeData().remove(),n=null,s&&(s.remove(),s=null)}return{_init:function(){if(t.events.on("focus",function(){var n;t.opts.toolbarContainer&&(n=t.$tb.find('.fr-command[data-cmd="html"]'),i()?(t.$tb.find(" > .fr-command").not(n).filter(function(){return t.opts.codeViewKeepActiveButtons.indexOf(e(this).data("cmd"))<0}).addClass("fr-disabled").attr("aria-disabled",!1),n.addClass("fr-active").attr("aria-pressed",!1)):(t.$tb.find(" > .fr-command").not(n).removeClass("fr-disabled").attr("aria-disabled",!1),n.removeClass("fr-active").attr("aria-pressed",!1)))}),!t.$wp)return!1},toggle:d,isActive:i,get:o}},e.FE.RegisterCommand("html",{title:"Code View",undo:!1,focus:!1,forcedRefresh:!0,toggle:!0,callback:function(){this.codeView.toggle()},plugin:"codeView"}),e.FE.DefineIcon("html",{NAME:"code"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"colors.picker":"[_BUTTONS_][_TEXT_COLORS_][_BACKGROUND_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{colorsText:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsBackground:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],colorsStep:7,colorsHEXInput:!0,colorsDefaultTab:"text",colorsButtons:["colorsBack","|","-"]});var t=["text","background"];e.FE.PLUGINS.colors=function(n){function r(){n.popups.hide("colors.picker")}function i(e){for(var t="text"==e?n.opts.colorsText:n.opts.colorsBackground,r='<div class="fr-color-set fr-'+e+"-color"+(n.opts.colorsDefaultTab==e||"text"!=n.opts.colorsDefaultTab&&"background"!=n.opts.colorsDefaultTab&&"text"==e?" fr-selected-set":"")+'">',i=0;i<t.length;i++)0!==i&&i%n.opts.colorsStep==0&&(r+="<br>"),"REMOVE"!=t[i]?r+='<span class="fr-command fr-select-color" style="background: '+t[i]+';" tabIndex="-1" aria-selected="false" role="button" data-cmd="'+e+'Color" data-param1="'+t[i]+'"><span class="fr-sr-only">'+n.language.translate("Color")+" "+t[i]+"&nbsp;&nbsp;&nbsp;</span></span>":r+='<span class="fr-command fr-select-color" data-cmd="'+e+'Color" tabIndex="-1" role="button" data-param1="REMOVE" title="'+n.language.translate("Clear Formatting")+'">'+n.icon.create("remove")+'<span class="fr-sr-only">'+n.language.translate("Clear Formatting")+"</span></span>";return r+"</div>"}function o(e){var t=n.popups.get("colors.picker"),r=t.find(".fr-"+e+"-color .fr-active-item").attr("data-param1"),i=t.find(".fr-color-hex-layer input"),o=t.find('.fr-colors-tab[data-param1="'+e+'"]');i.length&&o.hasClass("fr-selected-tab")&&i.val(r).trigger("change")}function a(e){"REMOVE"!=e?n.format.applyStyle("background-color",n.helpers.HEXtoRGB(e)):n.format.removeStyle("background-color"),r()}function s(e){"REMOVE"!=e?n.format.applyStyle("color",n.helpers.HEXtoRGB(e)):n.format.removeStyle("color"),r()}return{showColorsPopup:function(){var r=n.$tb.find('.fr-command[data-cmd="color"]'),a=n.popups.get("colors.picker");if(a||(a=function(){var t,r='<div class="fr-buttons fr-colors-buttons">';n.opts.toolbarInline&&0<n.opts.colorsButtons.length&&(r+=n.button.buildList(n.opts.colorsButtons)),r+=(t='<div class="fr-colors-tabs fr-group">',t+='<span class="fr-colors-tab '+("background"==n.opts.colorsDefaultTab?"":"fr-selected-tab ")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"!=n.opts.colorsDefaultTab)+'" data-param1="text" data-cmd="colorChangeSet" title="'+n.language.translate("Text")+'">'+n.language.translate("Text")+"</span>",(t+='<span class="fr-colors-tab '+("background"==n.opts.colorsDefaultTab?"fr-selected-tab":"")+'fr-command" tabIndex="-1" role="button" aria-pressed="'+("background"==n.opts.colorsDefaultTab)+'" data-param1="background" data-cmd="colorChangeSet" title="'+n.language.translate("Background")+'">'+n.language.translate("Background")+"</span>")+"</div></div>");var o="";n.opts.colorsHEXInput&&(o='<div class="fr-color-hex-layer fr-active fr-layer" id="fr-color-hex-layer-'+n.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-color-hex-layer-text-'+n.id+'" type="text" placeholder="'+n.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="customColor" tabIndex="2" role="button">'+n.language.translate("OK")+"</button></div></div>");var a,s={buttons:r,text_colors:i("text"),background_colors:i("background"),custom_color:o},l=n.popups.create("colors.picker",s);return a=l,n.events.on("popup.tab",function(t){var r=e(t.currentTarget);if(!n.popups.isVisible("colors.picker")||!r.is("span"))return!0;var i=t.which,o=!0;if(e.FE.KEYCODE.TAB==i){var s=a.find(".fr-buttons");o=!n.accessibility.focusToolbar(s,!!t.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==i||e.FE.KEYCODE.ARROW_DOWN==i||e.FE.KEYCODE.ARROW_LEFT==i||e.FE.KEYCODE.ARROW_RIGHT==i){if(r.is("span.fr-select-color")){var l=r.parent().find("span.fr-select-color"),c=l.index(r),u=n.opts.colorsStep,d=Math.floor(l.length/u),f=c%u,p=Math.floor(c/u),h=p*u+f,m=d*u;e.FE.KEYCODE.ARROW_UP==i?h=((h-u)%m+m)%m:e.FE.KEYCODE.ARROW_DOWN==i?h=(h+u)%m:e.FE.KEYCODE.ARROW_LEFT==i?h=((h-1)%m+m)%m:e.FE.KEYCODE.ARROW_RIGHT==i&&(h=(h+1)%m);var g=e(l.get(h));n.events.disableBlur(),g.focus(),o=!1}}else e.FE.KEYCODE.ENTER==i&&(n.button.exec(r),o=!1);return!1===o&&(t.preventDefault(),t.stopPropagation()),o},!0),l}()),!a.hasClass("fr-active"))if(n.popups.setContainer("colors.picker",n.$tb),t.map(function(t){!function(t){var r,i=n.popups.get("colors.picker"),a=e(n.selection.element());r="background"==t?"background-color":"color";var s=i.find(".fr-"+t+"-color .fr-select-color");for(s.find(".fr-selected-color").remove(),s.removeClass("fr-active-item"),s.not('[data-param1="REMOVE"]').attr("aria-selected",!1);a.get(0)!=n.el;){if("transparent"!=a.css(r)&&"rgba(0, 0, 0, 0)"!=a.css(r)){var l=i.find(".fr-"+t+'-color .fr-select-color[data-param1="'+n.helpers.RGBToHex(a.css(r))+'"]');l.append('<span class="fr-selected-color" aria-hidden="true"></span>'),l.addClass("fr-active-item").attr("aria-selected",!0);break}a=a.parent()}o(t)}(t)}),r.is(":visible")){var s=r.offset().left+r.outerWidth()/2,l=r.offset().top+(n.opts.toolbarBottom?10:r.outerHeight()-10);n.popups.show("colors.picker",s,l,r.outerHeight())}else n.position.forSelection(a),n.popups.show("colors.picker")},hideColorsPopup:r,changeSet:function(e,t){e.hasClass("fr-selected-tab")||(e.siblings().removeClass("fr-selected-tab").attr("aria-pressed",!1),e.addClass("fr-selected-tab").attr("aria-pressed",!0),e.parents(".fr-popup").find(".fr-color-set").removeClass("fr-selected-set"),e.parents(".fr-popup").find(".fr-color-set.fr-"+t+"-color").addClass("fr-selected-set"),o(t)),n.accessibility.focusPopup(e.parents(".fr-popup"))},background:a,customColor:function(){var e=n.popups.get("colors.picker"),t=e.find(".fr-color-hex-layer input");if(t.length){var r=t.val();"background"==e.find(".fr-selected-tab").attr("data-param1")?a(r):s(r)}},text:s,back:function(){n.popups.hide("colors.picker"),n.toolbar.showInline()}}},e.FE.DefineIcon("colors",{NAME:"tint"}),e.FE.RegisterCommand("color",{title:"Colors",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("colors.picker")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("colors.picker")):this.colors.showColorsPopup()},plugin:"colors"}),e.FE.RegisterCommand("textColor",{undo:!0,callback:function(e,t){this.colors.text(t)}}),e.FE.RegisterCommand("backgroundColor",{undo:!0,callback:function(e,t){this.colors.background(t)}}),e.FE.RegisterCommand("colorChangeSet",{undo:!1,focus:!1,callback:function(e,t){var n=this.popups.get("colors.picker").find('.fr-command[data-cmd="'+e+'"][data-param1="'+t+'"]');this.colors.changeSet(n,t)}}),e.FE.DefineIcon("colorsBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("colorsBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.colors.back()}}),e.FE.RegisterCommand("customColor",{title:"OK",undo:!0,callback:function(){this.colors.customColor()}}),e.FE.DefineIcon("remove",{NAME:"eraser"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{dragInline:!0}),e.FE.PLUGINS.draggable=function(t){function n(n){return!(!n.originalEvent||!n.originalEvent.target||n.originalEvent.target.nodeType!=Node.TEXT_NODE)||(n.target&&"A"==n.target.tagName&&1==n.target.childNodes.length&&"IMG"==n.target.childNodes[0].tagName&&(n.target=n.target.childNodes[0]),e(n.target).hasClass("fr-draggable")?(t.undo.canDo()||t.undo.saveStep(),t.opts.dragInline?t.$el.attr("contenteditable",!0):t.$el.attr("contenteditable",!1),t.opts.toolbarInline&&t.toolbar.hide(),e(n.target).addClass("fr-dragging"),t.browser.msie||t.browser.edge||t.selection.clear(),void n.originalEvent.dataTransfer.setData("text","Froala")):(t.browser.msie||n.preventDefault(),!1))}function r(e){return!(e&&("HTML"==e.tagName||"BODY"==e.tagName||t.node.isElement(e)))}function i(e,n,r){t.opts.iframe&&(e+=t.$iframe.offset().top,n+=t.$iframe.offset().left),u.offset().top!=e&&u.css("top",e),u.offset().left!=n&&u.css("left",n),u.width()!=r&&u.css("width",r)}function o(n){n.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline?function(){for(var t=null,n=0;n<e.FE.INSTANCES.length;n++)if((t=e.FE.INSTANCES[n].$el.find(".fr-dragging")).length)return t.get(0)}()||!t.browser.msie&&!t.browser.edge||n.preventDefault():(n.preventDefault(),function(n){var o=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset);if(!r(o)){for(var a=0,s=o;!r(s)&&s==o&&0<n.originalEvent.pageY-t.win.pageYOffset-a;)a++,s=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset-a);(!r(s)||u&&0===t.$el.find(s).length&&s!=u.get(0))&&(s=null);for(var l=0,c=o;!r(c)&&c==o&&n.originalEvent.pageY-t.win.pageYOffset+l<e(t.doc).height();)l++,c=t.doc.elementFromPoint(n.originalEvent.pageX-t.win.pageXOffset,n.originalEvent.pageY-t.win.pageYOffset+l);(!r(c)||u&&0===t.$el.find(c).length&&c!=u.get(0))&&(c=null),o=null==c&&s?s:c&&null==s?c:c&&s?a<l?s:c:null}if(!e(o).hasClass("fr-drag-helper"))if(o&&!t.node.isBlock(o)&&(o=t.node.blockParent(o)),o&&0<=["TD","TH","TR","THEAD","TBODY"].indexOf(o.tagName)&&(o=e(o).parents("table").get(0)),o&&0<=["LI"].indexOf(o.tagName)&&(o=e(o).parents("UL, OL").get(0)),o&&!e(o).hasClass("fr-drag-helper")){var d;u||(e.FE.$draggable_helper||(e.FE.$draggable_helper=e('<div class="fr-drag-helper"></div>')),u=e.FE.$draggable_helper,t.events.on("shared.destroy",function(){u.html("").removeData().remove(),u=null},!0)),d=n.originalEvent.pageY<e(o).offset().top+e(o).outerHeight()/2;var f=e(o),p=0;d||0!==f.next().length?(d||(f=f.next()),"before"==u.data("fr-position")&&f.is(u.data("fr-tag"))||(0<f.prev().length&&(p=parseFloat(f.prev().css("margin-bottom"))||0),p=Math.max(p,parseFloat(f.css("margin-top"))||0),i(f.offset().top-p/2-t.$box.offset().top,f.offset().left-t.win.pageXOffset-t.$box.offset().left,f.width()),u.data("fr-position","before"))):"after"==u.data("fr-position")&&f.is(u.data("fr-tag"))||(p=parseFloat(f.css("margin-bottom"))||0,i(f.offset().top+e(o).height()+p/2-t.$box.offset().top,f.offset().left-t.win.pageXOffset-t.$box.offset().left,f.width()),u.data("fr-position","after")),u.data("fr-tag",f),u.addClass("fr-visible"),u.appendTo(t.$box)}else u&&0<t.$box.find(u).length&&u.removeClass("fr-visible")}(n))}function a(e){e.originalEvent.dataTransfer.dropEffect="move",t.opts.dragInline||e.preventDefault()}function s(e){t.$el.attr("contenteditable",!0);var n=t.$el.find(".fr-dragging");u&&u.hasClass("fr-visible")&&t.$box.find(u).length?l(e):n.length&&(e.preventDefault(),e.stopPropagation()),u&&t.$box.find(u).length&&u.removeClass("fr-visible"),n.removeClass("fr-dragging")}function l(n){var r,i;"true"!==t.$el.attr("contenteditable")&&t.$el.attr("contenteditable",!0);for(var o=0;o<e.FE.INSTANCES.length;o++)if((r=e.FE.INSTANCES[o].$el.find(".fr-dragging")).length){i=e.FE.INSTANCES[o];break}if(r.length){if(n.preventDefault(),n.stopPropagation(),u&&u.hasClass("fr-visible")&&t.$box.find(u).length)u.data("fr-tag")[u.data("fr-position")]('<span class="fr-marker"></span>'),u.removeClass("fr-visible");else if(!1===t.markers.insertAtPoint(n.originalEvent))return!1;if(r.removeClass("fr-dragging"),!1===(r=t.events.chainTrigger("element.beforeDrop",r)))return!1;var a=r;if(r.parent().is("A")&&1==r.parent().get(0).childNodes.length&&(a=r.parent()),t.core.isEmpty()?t.events.focus():(t.$el.find(".fr-marker").replaceWith(e.FE.MARKERS),t.selection.restore()),i==t||t.undo.canDo()||t.undo.saveStep(),t.core.isEmpty())t.$el.html(a);else{var s=t.markers.insert();0===a.find(s).length?e(s).replaceWith(a):0===r.find(s).length&&e(s).replaceWith(r),r.after(e.FE.MARKERS),t.selection.restore()}return t.popups.hideAll(),t.selection.save(),t.$el.find(t.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").not(t.opts.htmlAllowedEmptyTags.join(",")).remove(),t.html.wrap(),t.html.fillEmptyBlocks(),t.selection.restore(),t.undo.saveStep(),t.opts.iframe&&t.size.syncIframe(),i!=t&&(i.popups.hideAll(),i.$el.find(i.html.emptyBlockTagsQuery()).not("TD, TH, LI, .fr-inner").remove(),i.html.wrap(),i.html.fillEmptyBlocks(),i.undo.saveStep(),i.events.trigger("element.dropped"),i.opts.iframe&&i.size.syncIframe()),t.events.trigger("element.dropped",[a]),!1}u&&u.removeClass("fr-visible"),t.undo.canDo()||t.undo.saveStep(),setTimeout(function(){t.undo.saveStep()},0)}function c(e){if(e&&"DIV"==e.tagName&&t.node.hasClass(e,"fr-drag-helper"))e.parentNode.removeChild(e);else if(e&&e.nodeType==Node.ELEMENT_NODE)for(var n=e.querySelectorAll("div.fr-drag-helper"),r=0;r<n.length;r++)n[r].parentNode.removeChild(n[r])}var u;return{_init:function(){t.opts.enter==e.FE.ENTER_BR&&(t.opts.dragInline=!0),t.events.on("dragstart",n,!0),t.events.on("dragover",o,!0),t.events.on("dragenter",a,!0),t.events.on("document.dragend",s,!0),t.events.on("document.drop",s,!0),t.events.on("drop",l,!0),t.events.on("html.processGet",c)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{entities:"&quot;&#39;&iexcl;&cent;&pound;&curren;&yen;&brvbar;&sect;&uml;&copy;&ordf;&laquo;&not;&shy;&reg;&macr;&deg;&plusmn;&sup2;&sup3;&acute;&micro;&para;&middot;&cedil;&sup1;&ordm;&raquo;&frac14;&frac12;&frac34;&iquest;&Agrave;&Aacute;&Acirc;&Atilde;&Auml;&Aring;&AElig;&Ccedil;&Egrave;&Eacute;&Ecirc;&Euml;&Igrave;&Iacute;&Icirc;&Iuml;&ETH;&Ntilde;&Ograve;&Oacute;&Ocirc;&Otilde;&Ouml;&times;&Oslash;&Ugrave;&Uacute;&Ucirc;&Uuml;&Yacute;&THORN;&szlig;&agrave;&aacute;&acirc;&atilde;&auml;&aring;&aelig;&ccedil;&egrave;&eacute;&ecirc;&euml;&igrave;&iacute;&icirc;&iuml;&eth;&ntilde;&ograve;&oacute;&ocirc;&otilde;&ouml;&divide;&oslash;&ugrave;&uacute;&ucirc;&uuml;&yacute;&thorn;&yuml;&OElig;&oelig;&Scaron;&scaron;&Yuml;&fnof;&circ;&tilde;&Alpha;&Beta;&Gamma;&Delta;&Epsilon;&Zeta;&Eta;&Theta;&Iota;&Kappa;&Lambda;&Mu;&Nu;&Xi;&Omicron;&Pi;&Rho;&Sigma;&Tau;&Upsilon;&Phi;&Chi;&Psi;&Omega;&alpha;&beta;&gamma;&delta;&epsilon;&zeta;&eta;&theta;&iota;&kappa;&lambda;&mu;&nu;&xi;&omicron;&pi;&rho;&sigmaf;&sigma;&tau;&upsilon;&phi;&chi;&psi;&omega;&thetasym;&upsih;&piv;&ensp;&emsp;&thinsp;&zwnj;&zwj;&lrm;&rlm;&ndash;&mdash;&lsquo;&rsquo;&sbquo;&ldquo;&rdquo;&bdquo;&dagger;&Dagger;&bull;&hellip;&permil;&prime;&Prime;&lsaquo;&rsaquo;&oline;&frasl;&euro;&image;&weierp;&real;&trade;&alefsym;&larr;&uarr;&rarr;&darr;&harr;&crarr;&lArr;&uArr;&rArr;&dArr;&hArr;&forall;&part;&exist;&empty;&nabla;&isin;&notin;&ni;&prod;&sum;&minus;&lowast;&radic;&prop;&infin;&ang;&and;&or;&cap;&cup;&int;&there4;&sim;&cong;&asymp;&ne;&equiv;&le;&ge;&sub;&sup;&nsub;&sube;&supe;&oplus;&otimes;&perp;&sdot;&lceil;&rceil;&lfloor;&rfloor;&lang;&rang;&loz;&spades;&clubs;&hearts;&diams;"}),e.FE.PLUGINS.entities=function(t){var n,r;function i(e){var t=e.textContent;if(t.match(n)){for(var i="",o=0;o<t.length;o++)r[t[o]]?i+=r[t[o]]:i+=t[o];e.textContent=i}}function o(e){if(e&&0<=["STYLE","SCRIPT","svg","IFRAME"].indexOf(e.tagName))return!0;for(var n=t.node.contents(e),r=0;r<n.length;r++)n[r].nodeType==Node.TEXT_NODE?i(n[r]):o(n[r]);e.nodeType==Node.TEXT_NODE&&i(e)}function a(e){return 0===e.length?"":t.clean.exec(e,o).replace(/\&amp;/g,"&")}return{_init:function(){t.opts.htmlSimpleAmpersand||(t.opts.entities=t.opts.entities+"&amp;");var i=e("<div>").html(t.opts.entities).text(),o=t.opts.entities.split(";");r={},n="";for(var s=0;s<i.length;s++){var l=i.charAt(s);r[l]=o[s]+";",n+="\\"+l+(s<i.length-1?"|":"")}n=new RegExp("("+n+")","g"),t.events.on("html.get",a,!0)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{fontSize:["8","9","10","11","12","14","18","24","30","36","48","60","72","96"],fontSizeSelection:!1,fontSizeDefaultSelection:"12",fontSizeUnit:"px"}),e.FE.PLUGINS.fontSize=function(t){return{apply:function(e){t.format.applyStyle("font-size",e)},refreshOnShow:function(n,r){var i=e(t.selection.element()).css("font-size");"pt"===t.opts.fontSizeUnit&&(i=Math.round(72*parseFloat(i,10)/96)+"pt"),r.find(".fr-command.fr-active").removeClass("fr-active").attr("aria-selected",!1),r.find('.fr-command[data-param1="'+i+'"]').addClass("fr-active").attr("aria-selected",!0);var o=r.find(".fr-dropdown-list"),a=r.find(".fr-active").parent();a.length?o.parent().scrollTop(a.offset().top-o.offset().top-(o.parent().outerHeight()/2-a.outerHeight()/2)):o.parent().scrollTop(0)},refresh:function(n){if(t.opts.fontSizeSelection){var r=t.helpers.getPX(e(t.selection.element()).css("font-size"));"pt"===t.opts.fontSizeUnit&&(r=Math.round(72*parseFloat(r,10)/96)+"pt"),n.find("> span").text(r)}}}},e.FE.RegisterCommand("fontSize",{type:"dropdown",title:"Font Size",displaySelection:function(e){return e.opts.fontSizeSelection},displaySelectionWidth:30,defaultSelection:function(e){return e.opts.fontSizeDefaultSelection},html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.fontSize,n=0;n<t.length;n++){var r=t[n];e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="fontSize" data-param1="'+r+this.opts.fontSizeUnit+'" title="'+r+'">'+r+"</a></li>"}return e+="</ul>"},callback:function(e,t){this.fontSize.apply(t)},refresh:function(e){this.fontSize.refresh(e)},refreshOnShow:function(e,t){this.fontSize.refreshOnShow(e,t)},plugin:"fontSize"}),e.FE.DefineIcon("fontSize",{NAME:"text-height"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.FE.PLUGINS.fullscreen=function(t){var n,r,i,o;function a(){return t.$box.hasClass("fr-fullscreen")}function s(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(c,250),!1;n=t.helpers.scrollTop(),t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.helpers.isMobile()&&(t.$tb.data("parent",t.$tb.parent()),t.$tb.prependTo(t.$box),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy"))),r=t.opts.height,i=t.opts.heightMax,o=t.opts.zIndex,t.position.refresh(),t.opts.height=t.o_win.innerHeight-(t.opts.toolbarInline?0:t.$tb.outerHeight()),t.opts.zIndex=2147483641,t.opts.heightMax=null,t.size.refresh(),t.opts.toolbarInline&&t.toolbar.showInline();for(var a=t.$box.parent();!a.is("body:first");)a.addClass("fr-fullscreen-wrapper"),a=a.parent();t.opts.toolbarContainer&&t.$box.prepend(t.$tb),t.events.trigger("charCounter.update"),t.events.trigger("codeView.update"),t.$win.trigger("scroll")}function l(){if(t.helpers.isIOS()&&t.core.hasFocus())return t.$el.blur(),setTimeout(c,250),!1;t.$box.toggleClass("fr-fullscreen"),e("body:first").toggleClass("fr-fullscreen"),t.$tb.prependTo(t.$tb.data("parent")),t.$tb.data("sticky-dummy")&&t.$tb.after(t.$tb.data("sticky-dummy")),t.opts.height=r,t.opts.heightMax=i,t.opts.zIndex=o,t.size.refresh(),e(t.o_win).scrollTop(n),t.opts.toolbarInline&&t.toolbar.showInline(),t.events.trigger("charCounter.update"),t.opts.toolbarSticky&&t.opts.toolbarStickyOffset&&(t.opts.toolbarBottom?t.$tb.css("bottom",t.opts.toolbarStickyOffset).data("bottom",t.opts.toolbarStickyOffset):t.$tb.css("top",t.opts.toolbarStickyOffset).data("top",t.opts.toolbarStickyOffset));for(var a=t.$box.parent();!a.is("body:first");)a.removeClass("fr-fullscreen-wrapper"),a=a.parent();t.opts.toolbarContainer&&e(t.opts.toolbarContainer).append(t.$tb),e(t.o_win).trigger("scroll"),t.events.trigger("codeView.update")}function c(){a()?l():s(),u(t.$tb.find('.fr-command[data-cmd="fullscreen"]'))}function u(e){var n=a();e.toggleClass("fr-active",n).attr("aria-pressed",n),e.find("> *:not(.fr-sr-only)").replaceWith(n?t.icon.create("fullscreenCompress"):t.icon.create("fullscreen"))}return{_init:function(){if(!t.$wp)return!1;t.events.$on(e(t.o_win),"resize",function(){a()&&(l(),s())}),t.events.on("toolbar.hide",function(){if(a()&&t.helpers.isMobile())return!1}),t.events.on("position.refresh",function(){if(t.helpers.isIOS())return!a()}),t.events.on("destroy",function(){a()&&l()},!0)},toggle:c,refresh:u,isActive:a}},e.FE.RegisterCommand("fullscreen",{title:"Fullscreen",undo:!1,focus:!1,accessibilityFocus:!0,forcedRefresh:!0,toggle:!0,callback:function(){this.fullscreen.toggle()},refresh:function(e){this.fullscreen.refresh(e)},plugin:"fullscreen"}),e.FE.DefineIcon("fullscreen",{NAME:"expand"}),e.FE.DefineIcon("fullscreenCompress",{NAME:"compress"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{inlineStyles:{"Big Red":"font-size: 20px; color: red;","Small Blue":"font-size: 14px; color: blue;"}}),e.FE.PLUGINS.inlineStyle=function(t){return{apply:function(n){if(""!==t.selection.text())for(var r=n.split(";"),i=0;i<r.length;i++){var o=r[i].split(":");r[i].length&&2==o.length&&t.format.applyStyle(o[0].trim(),o[1].trim())}else t.html.insert('<span style="'+n+'">'+e.FE.INVISIBLE_SPACE+e.FE.MARKERS+"</span>")}}},e.FE.RegisterCommand("inlineStyle",{type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.inlineStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><span style="'+t[n]+(-1===t[n].indexOf("display:block;")?" display:block;":"")+'" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="inlineStyle" data-param1="'+t[n]+'" title="'+this.language.translate(n)+'">'+this.language.translate(n)+"</a></span></li>");return e+="</ul>"},title:"Inline Style",callback:function(e,t){this.inlineStyle.apply(t)},plugin:"inlineStyle"}),e.FE.DefineIcon("inlineStyle",{NAME:"paint-brush"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{lineBreakerTags:["table","hr","form","dl","span.fr-video",".fr-embedly"],lineBreakerOffset:15,lineBreakerHorizontalOffset:10}),e.FE.PLUGINS.lineBreaker=function(t){var n,r,i;function o(r,i){var o,a,s,l,c,u,d,f;if(null==r)c=(l=i.parent()).offset().top,o=(d=i.offset().top)-Math.min((d-c)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),a=l.offset().left;else if(null==i)(u=(l=r.parent()).offset().top+l.outerHeight())<(f=r.offset().top+r.outerHeight())&&(u=(l=e(l).parent()).offset().top+l.outerHeight()),o=f+Math.min(Math.abs(u-f)/2,t.opts.lineBreakerOffset),s=l.outerWidth(),a=l.offset().left;else{l=r.parent();var p=r.offset().top+r.height(),h=i.offset().top;if(h<p)return!1;o=(p+h)/2,s=l.outerWidth(),a=l.offset().left}t.opts.iframe&&(a+=t.$iframe.offset().left-t.helpers.scrollLeft(),o+=t.$iframe.offset().top-t.helpers.scrollTop()),t.$box.append(n),n.css("top",o-t.win.pageYOffset),n.css("left",a-t.win.pageXOffset),n.css("width",s),n.data("tag1",r),n.data("tag2",i),n.addClass("fr-visible").data("instance",t)}function a(n){if(n){var r=e(n);if(0===t.$el.find(r).length)return null;if(n.nodeType!=Node.TEXT_NODE&&r.is(t.opts.lineBreakerTags.join(",")))return r;if(0<r.parents(t.opts.lineBreakerTags.join(",")).length)return n=r.parents(t.opts.lineBreakerTags.join(",")).get(0),0!==t.$el.find(n).length&&e(n).is(t.opts.lineBreakerTags.join(","))?e(n):null}return null}function s(n,r){var i=t.doc.elementFromPoint(n,r);return i&&!e(i).closest(".fr-line-breaker").length&&!t.node.isElement(i)&&i!=t.$wp.get(0)&&function(e){if(void 0!==e.inFroalaWrapper)return e.inFroalaWrapper;for(var n=e;e.parentNode&&e.parentNode!==t.$wp.get(0);)e=e.parentNode;return n.inFroalaWrapper=e.parentNode==t.$wp.get(0),n.inFroalaWrapper}(i)?i:null}function l(e,n,r){for(var i=r,o=null;i<=t.opts.lineBreakerOffset&&!o;)(o=s(e,n-i))||(o=s(e,n+i)),i+=r;return o}function c(e,n,r){for(var i=null,o=100;!i&&e>t.$box.offset().left&&e<t.$box.offset().left+t.$box.outerWidth()&&0<o;)(i=s(e,n))||(i=l(e,n,5)),"left"==r?e-=t.opts.lineBreakerHorizontalOffset:e+=t.opts.lineBreakerHorizontalOffset,o-=t.opts.lineBreakerHorizontalOffset;return i}function u(e){var r=i=null,s=null,u=t.doc.elementFromPoint(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset);u&&("HTML"==u.tagName||"BODY"==u.tagName||t.node.isElement(u)||0<=(u.getAttribute("class")||"").indexOf("fr-line-breaker"))?((s=l(e.pageX-t.win.pageXOffset,e.pageY-t.win.pageYOffset,1))||(s=c(e.pageX-t.win.pageXOffset-t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"left")),s||(s=c(e.pageX-t.win.pageXOffset+t.opts.lineBreakerHorizontalOffset,e.pageY-t.win.pageYOffset,"right")),r=a(s)):r=a(u),r?function(e,r){var i,s,l=e.offset().top,c=e.offset().top+e.outerHeight();if(Math.abs(c-r)<=t.opts.lineBreakerOffset||Math.abs(r-l)<=t.opts.lineBreakerOffset)if(Math.abs(c-r)<Math.abs(r-l)){for(var u=(s=e.get(0)).nextSibling;u&&u.nodeType==Node.TEXT_NODE&&0===u.textContent.length;)u=u.nextSibling;if(!u)return o(e,null);if(i=a(u))return o(e,i)}else{if(!(s=e.get(0)).previousSibling)return o(null,e);if(i=a(s.previousSibling))return o(i,e)}n.removeClass("fr-visible").removeData("instance")}(r,e.pageY):t.core.sameInstance(n)&&n.removeClass("fr-visible").removeData("instance")}function d(e){return!(n.hasClass("fr-visible")&&!t.core.sameInstance(n))&&(t.popups.areVisible()||t.el.querySelector(".fr-selected-cell")?(n.removeClass("fr-visible"),!0):void(!1!==r||t.edit.isDisabled()||(i&&clearTimeout(i),i=setTimeout(u,30,e))))}function f(){i&&clearTimeout(i),n&&n.hasClass("fr-visible")&&n.removeClass("fr-visible").removeData("instance")}function p(){r=!0,f()}function h(){r=!1}function m(r){r.preventDefault();var i=n.data("instance")||t;n.removeClass("fr-visible").removeData("instance");var o=n.data("tag1"),a=n.data("tag2"),s=t.html.defaultTag();null==o?s&&"TD"!=a.parent().get(0).tagName&&0===a.parents(s).length?a.before("<"+s+">"+e.FE.MARKERS+"<br></"+s+">"):a.before(e.FE.MARKERS+"<br>"):s&&"TD"!=o.parent().get(0).tagName&&0===o.parents(s).length?o.after("<"+s+">"+e.FE.MARKERS+"<br></"+s+">"):o.after(e.FE.MARKERS+"<br>"),i.selection.restore()}return{_init:function(){if(!t.$wp)return!1;t.shared.$line_breaker||(t.shared.$line_breaker=e('<div class="fr-line-breaker"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Break")+'"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect x="21" y="11" width="2" height="8"/><rect x="14" y="17" width="7" height="2"/><path d="M14.000,14.000 L14.000,22.013 L9.000,18.031 L14.000,14.000 Z"/></svg></a></div>')),n=t.shared.$line_breaker,t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0),t.events.on("destroy",function(){n.removeData("instance").removeClass("fr-visible").appendTo("body:first"),clearTimeout(i)},!0),t.events.$on(n,"mousemove",function(e){e.stopPropagation()},!0),t.events.bindClick(n,"a",m),r=!1,t.events.$on(t.$win,"mousemove",d),t.events.$on(e(t.win),"scroll",f),t.events.on("popups.show.table.edit",f),t.events.on("commands.after",f),t.events.$on(e(t.win),"mousedown",p),t.events.$on(e(t.win),"mouseup",h)}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"link.edit":"[_BUTTONS_]","link.insert":"[_BUTTONS_][_INPUT_LAYER_]"}),e.extend(e.FE.DEFAULTS,{linkEditButtons:["linkOpen","linkStyle","linkEdit","linkRemove"],linkInsertButtons:["linkBack","|","linkList"],linkAttributes:{},linkAutoPrefix:"http://",linkStyles:{"fr-green":"Green","fr-strong":"Thick"},linkMultipleStyles:!0,linkConvertEmailAddress:!0,linkAlwaysBlank:!1,linkAlwaysNoFollow:!1,linkNoOpener:!0,linkNoReferrer:!0,linkList:[{text:"Froala",href:"https://froala.com",target:"_blank"},{text:"Google",href:"https://google.com",target:"_blank"},{displayText:"Facebook",href:"https://facebook.com"}],linkText:!0}),e.FE.PLUGINS.link=function(t){function n(){var n=t.image?t.image.get():null;if(!n&&t.$wp){var r=t.selection.ranges(0).commonAncestorContainer;try{r&&(r.contains&&r.contains(t.el)||!t.el.contains(r)||t.el==r)&&(r=null)}catch(e){r=null}if(r&&"A"===r.tagName)return r;var i=t.selection.element(),o=t.selection.endElement();"A"==i.tagName||t.node.isElement(i)||(i=e(i).parentsUntil(t.$el,"a:first").get(0)),"A"==o.tagName||t.node.isElement(o)||(o=e(o).parentsUntil(t.$el,"a:first").get(0));try{o&&(o.contains&&o.contains(t.el)||!t.el.contains(o)||t.el==o)&&(o=null)}catch(e){o=null}try{i&&(i.contains&&i.contains(t.el)||!t.el.contains(i)||t.el==i)&&(i=null)}catch(e){i=null}return o&&o==i&&"A"==o.tagName?(t.browser.msie||t.helpers.isMobile())&&(t.selection.info(i).atEnd||t.selection.info(i).atStart)?null:i:null}return"A"==t.el.tagName?t.el:n&&n.get(0).parentNode&&"A"==n.get(0).parentNode.tagName?n.get(0).parentNode:void 0}function r(){var e,n,r,i,o=t.image?t.image.get():null,a=[];if(o)"A"==o.get(0).parentNode.tagName&&a.push(o.get(0).parentNode);else if(t.win.getSelection){var s=t.win.getSelection();if(s.getRangeAt&&s.rangeCount){i=t.doc.createRange();for(var l=0;l<s.rangeCount;++l)if((n=(e=s.getRangeAt(l)).commonAncestorContainer)&&1!=n.nodeType&&(n=n.parentNode),n&&"a"==n.nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a");for(var c=0;c<r.length;++c)i.selectNodeContents(r[c]),i.compareBoundaryPoints(e.END_TO_START,e)<1&&-1<i.compareBoundaryPoints(e.START_TO_END,e)&&a.push(r[c])}}}else if(t.doc.selection&&"Control"!=t.doc.selection.type)if("a"==(n=(e=t.doc.selection.createRange()).parentElement()).nodeName.toLowerCase())a.push(n);else{r=n.getElementsByTagName("a"),i=t.doc.body.createTextRange();for(var u=0;u<r.length;++u)i.moveToElementText(r[u]),-1<i.compareEndPoints("StartToEnd",e)&&i.compareEndPoints("EndToStart",e)<1&&a.push(r[u])}return a}function i(r){if(t.core.hasFocus()){if(o(),r&&"keyup"===r.type&&(r.altKey||r.which==e.FE.KEYCODE.ALT))return!0;setTimeout(function(){if(!r||r&&(1==r.which||"mouseup"!=r.type)){var i=n(),o=t.image?t.image.get():null;if(i&&!o){if(t.image){var a=t.node.contents(i);if(1==a.length&&"IMG"==a[0].tagName){var s=t.selection.ranges(0);return 0===s.startOffset&&0===s.endOffset?e(i).before(e.FE.MARKERS):e(i).after(e.FE.MARKERS),t.selection.restore(),!1}}r&&r.stopPropagation(),function r(i){var o=t.popups.get("link.edit");o||(o=function(){var e="";1<=t.opts.linkEditButtons.length&&("A"==t.el.tagName&&0<=t.opts.linkEditButtons.indexOf("linkRemove")&&t.opts.linkEditButtons.splice(t.opts.linkEditButtons.indexOf("linkRemove"),1),e='<div class="fr-buttons">'+t.button.buildList(t.opts.linkEditButtons)+"</div>");var i={buttons:e},o=t.popups.create("link.edit",i);return t.$wp&&t.events.$on(t.$wp,"scroll.link-edit",function(){n()&&t.popups.isVisible("link.edit")&&r(n())}),o}());var a=e(i);t.popups.isVisible("link.edit")||t.popups.refresh("link.edit"),t.popups.setContainer("link.edit",t.$sc);var s=a.offset().left+e(i).outerWidth()/2,l=a.offset().top+a.outerHeight();t.popups.show("link.edit",s,l,a.outerHeight())}(i)}}},t.helpers.isIOS()?100:0)}}function o(){t.popups.hide("link.edit")}function a(){}function s(){var r=t.popups.get("link.insert"),i=n();if(i){var o,a,s=e(i),l=r.find('input.fr-link-attr[type="text"]'),c=r.find('input.fr-link-attr[type="checkbox"]');for(o=0;o<l.length;o++)(a=e(l[o])).val(s.attr(a.attr("name")||""));for(c.prop("checked",!1),o=0;o<c.length;o++)a=e(c[o]),s.attr(a.attr("name"))==a.data("checked")&&a.prop("checked",!0);r.find('input.fr-link-attr[type="text"][name="text"]').val(s.text())}else r.find('input.fr-link-attr[type="text"]').val(""),r.find('input.fr-link-attr[type="checkbox"]').prop("checked",!1),r.find('input.fr-link-attr[type="text"][name="text"]').val(t.selection.text());r.find("input.fr-link-attr").trigger("change"),t.image&&t.image.get()?r.find('.fr-link-attr[name="text"]').parent().hide():r.find('.fr-link-attr[name="text"]').parent().show()}function l(e){if(e)return t.popups.onRefresh("link.insert",s),t.popups.onHide("link.insert",a),!0;var n="";1<=t.opts.linkInsertButtons.length&&(n='<div class="fr-buttons">'+t.button.buildList(t.opts.linkInsertButtons)+"</div>");var r="",i=0;for(var o in r='<div class="fr-link-insert-layer fr-layer fr-active" id="fr-link-insert-layer-'+t.id+'">',r+='<div class="fr-input-line"><input id="fr-link-insert-layer-url-'+t.id+'" name="href" type="text" class="fr-link-attr" placeholder="'+t.language.translate("URL")+'" tabIndex="'+ ++i+'"></div>',t.opts.linkText&&(r+='<div class="fr-input-line"><input id="fr-link-insert-layer-text-'+t.id+'" name="text" type="text" class="fr-link-attr" placeholder="'+t.language.translate("Text")+'" tabIndex="'+ ++i+'"></div>'),t.opts.linkAttributes)if(t.opts.linkAttributes.hasOwnProperty(o)){var l=t.opts.linkAttributes[o];r+='<div class="fr-input-line"><input name="'+o+'" type="text" class="fr-link-attr" placeholder="'+t.language.translate(l)+'" tabIndex="'+ ++i+'"></div>'}t.opts.linkAlwaysBlank||(r+='<div class="fr-checkbox-line"><span class="fr-checkbox"><input name="target" class="fr-link-attr" data-checked="_blank" type="checkbox" id="fr-link-target-'+t.id+'" tabIndex="'+ ++i+'"><span><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="10" height="10" viewBox="0 0 32 32"><path d="M27 4l-15 15-7-7-5 5 12 12 20-20z" fill="#FFF"></path></svg></span></span><label for="fr-link-target-'+t.id+'">'+t.language.translate("Open in new tab")+"</label></div>");var c={buttons:n,input_layer:r+='<div class="fr-action-buttons"><button class="fr-command fr-submit" role="button" data-cmd="linkInsert" href="#" tabIndex="'+ ++i+'" type="button">'+t.language.translate("Insert")+"</button></div></div>"},f=t.popups.create("link.insert",c);return t.$wp&&t.events.$on(t.$wp,"scroll.link-insert",function(){(t.image?t.image.get():null)&&t.popups.isVisible("link.insert")&&d(),t.popups.isVisible("link.insert")&&u()}),f}function c(o,a,s){if(void 0===s&&(s={}),!1===t.events.trigger("link.beforeInsert",[o,a,s]))return!1;var l=t.image?t.image.get():null;l||"A"==t.el.tagName?"A"==t.el.tagName&&t.$el.focus():(t.selection.restore(),t.popups.hide("link.insert"));var c=o;if(t.opts.linkConvertEmailAddress&&t.helpers.isEmail(o)&&!/^mailto:.*/i.test(o)&&(o="mailto:"+o),""===t.opts.linkAutoPrefix||new RegExp("^("+e.FE.LinkProtocols.join("|")+"):.","i").test(o)||/^data:image.*/i.test(o)||/^(https?:|ftps?:|file:|)\/\//i.test(o)||/^([A-Za-z]:(\\){1,2}|[A-Za-z]:((\\){1,2}[^\\]+)+)(\\)?$/i.test(o)||["/","{","[","#","(","."].indexOf((o||"")[0])<0&&(o=t.opts.linkAutoPrefix+t.helpers.sanitizeURL(o)),o=t.helpers.sanitizeURL(o),t.opts.linkAlwaysBlank&&(s.target="_blank"),t.opts.linkAlwaysNoFollow&&(s.rel="nofollow"),t.helpers.isEmail(c)&&(s.target=null,s.rel=null),"_blank"==s.target?(t.opts.linkNoOpener&&(s.rel?s.rel+=" noopener":s.rel="noopener"),t.opts.linkNoReferrer&&(s.rel?s.rel+=" noreferrer":s.rel="noreferrer")):null==s.target&&(s.rel?s.rel=s.rel.replace(/noopener/,"").replace(/noreferrer/,""):s.rel=null),a=a||"",o===t.opts.linkAutoPrefix)return t.popups.get("link.insert").find('input[name="href"]').addClass("fr-error"),t.events.trigger("link.bad",[c]),!1;var u,d=n();if(d){if((u=e(d)).attr("href",o),0<a.length&&u.text()!=a&&!l){for(var f=u.get(0);1===f.childNodes.length&&f.childNodes[0].nodeType==Node.ELEMENT_NODE;)f=f.childNodes[0];e(f).text(a)}l||u.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),u.attr(s),l||t.selection.restore()}else{l?(l.wrap('<a href="'+o+'"></a>'),t.image.hasCaption()&&l.parent().append(l.parents(".fr-img-caption").find(".fr-inner"))):(t.format.remove("a"),t.selection.isCollapsed()?(a=0===a.length?c:a,t.html.insert('<a href="'+o+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;").replace(/</,"&lt;",">","&gt;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):0<a.length&&a!=t.selection.text().replace(/\n/g,"")?(t.selection.remove(),t.html.insert('<a href="'+o+'">'+e.FE.START_MARKER+a.replace(/&/g,"&amp;")+e.FE.END_MARKER+"</a>"),t.selection.restore()):(function(){if(!t.selection.isCollapsed()){t.selection.save();for(var n=t.$el.find(".fr-marker").addClass("fr-unprocessed").toArray();n.length;){var r=e(n.pop());r.removeClass("fr-unprocessed");var i=t.node.deepestParent(r.get(0));if(i){for(var o=r.get(0),a="",s="";o=o.parentNode,t.node.isBlock(o)||(a+=t.node.closeTagString(o),s=t.node.openTagString(o)+s),o!=i;);var l=t.node.openTagString(r.get(0))+r.html()+t.node.closeTagString(r.get(0));r.replaceWith('<span id="fr-break"></span>');var c=i.outerHTML;c=(c=c.replace(/<span id="fr-break"><\/span>/g,a+l+s)).replace(s+a,""),i.outerHTML=c}n=t.$el.find(".fr-marker.fr-unprocessed").toArray()}t.html.cleanEmptyTags(),t.selection.restore()}}(),t.format.apply("a",{href:o})));for(var p=r(),h=0;h<p.length;h++)(u=e(p[h])).attr(s),u.removeAttr("_moz_dirty");1==p.length&&t.$wp&&!l&&(e(p[0]).prepend(e.FE.START_MARKER).append(e.FE.END_MARKER),t.selection.restore())}if(l){var m=t.popups.get("link.insert");m&&m.find("input:focus").blur(),t.image.edit(l)}else i()}function u(){o();var r=n();if(r){var i=t.popups.get("link.insert");i||(i=l()),t.popups.isVisible("link.insert")||(t.popups.refresh("link.insert"),t.selection.save(),t.helpers.isMobile()&&(t.events.disableBlur(),t.$el.blur(),t.events.enableBlur())),t.popups.setContainer("link.insert",t.$sc);var a=(t.image?t.image.get():null)||e(r),s=a.offset().left+a.outerWidth()/2,c=a.offset().top+a.outerHeight();t.popups.show("link.insert",s,c,a.outerHeight())}}function d(){var e=t.image?t.image.getEl():null;if(e){var n=t.popups.get("link.insert");t.image.hasCaption()&&(e=e.find(".fr-img-wrap")),n||(n=l()),s(),t.popups.setContainer("link.insert",t.$sc);var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+e.outerHeight();t.popups.show("link.insert",r,i,e.outerHeight())}}return{_init:function(){t.events.on("keyup",function(t){t.which!=e.FE.KEYCODE.ESC&&i(t)}),t.events.on("window.mouseup",i),t.events.$on(t.$el,"click","a",function(e){t.edit.isDisabled()&&e.preventDefault()}),t.helpers.isMobile()&&t.events.$on(t.$doc,"selectionchange",i),l(!0),"A"==t.el.tagName&&t.$el.addClass("fr-view"),t.events.on("toolbar.esc",function(){if(t.popups.isVisible("link.edit"))return t.events.disableBlur(),t.events.focus(),!1},!0)},remove:function(){var r=n(),i=t.image?t.image.get():null;if(!1===t.events.trigger("link.beforeRemove",[r]))return!1;i&&r?(i.unwrap(),t.image.edit(i)):r&&(t.selection.save(),e(r).replaceWith(e(r).html()),t.selection.restore(),o())},showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertLink"]'),n=t.popups.get("link.insert");if(n||(n=l()),!n.hasClass("fr-active"))if(t.popups.refresh("link.insert"),t.popups.setContainer("link.insert",t.$tb||t.$sc),e.is(":visible")){var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("link.insert",r,i,e.outerHeight())}else t.position.forSelection(n),t.popups.show("link.insert")},usePredefined:function(n){var r,i,o=t.opts.linkList[n],a=t.popups.get("link.insert"),s=a.find('input.fr-link-attr[type="text"]'),l=a.find('input.fr-link-attr[type="checkbox"]');for(i=0;i<s.length;i++)o[(r=e(s[i])).attr("name")]?r.val(o[r.attr("name")]):"text"!=r.attr("name")&&r.val("");for(i=0;i<l.length;i++)(r=e(l[i])).prop("checked",r.data("checked")==o[r.attr("name")]);t.accessibility.focusPopup(a)},insertCallback:function(){var n,r,i=t.popups.get("link.insert"),o=i.find('input.fr-link-attr[type="text"]'),a=i.find('input.fr-link-attr[type="checkbox"]'),s=(o.filter('[name="href"]').val()||"").trim(),l=o.filter('[name="text"]').val(),u={};for(r=0;r<o.length;r++)n=e(o[r]),["href","text"].indexOf(n.attr("name"))<0&&(u[n.attr("name")]=n.val());for(r=0;r<a.length;r++)(n=e(a[r])).is(":checked")?u[n.attr("name")]=n.data("checked"):u[n.attr("name")]=n.data("unchecked")||null;var d=t.helpers.scrollTop();c(s,l,u),e(t.o_win).scrollTop(d)},insert:c,update:u,get:n,allSelected:r,back:function(){t.image&&t.image.get()?t.image.back():(t.events.disableBlur(),t.selection.restore(),t.events.enableBlur(),n()&&t.$wp?(t.selection.restore(),o(),i()):"A"==t.el.tagName?(t.$el.focus(),i()):(t.popups.hide("link.insert"),t.toolbar.showInline()))},imageLink:d,applyStyle:function(r,o,a){void 0===a&&(a=t.opts.linkMultipleStyles),void 0===o&&(o=t.opts.linkStyles);var s=n();if(!s)return!1;if(!a){var l=Object.keys(o);l.splice(l.indexOf(r),1),e(s).removeClass(l.join(" "))}e(s).toggleClass(r),i()}}},e.FE.DefineIcon("insertLink",{NAME:"link"}),e.FE.RegisterShortcut(e.FE.KEYCODE.K,"insertLink",null,"K"),e.FE.RegisterCommand("insertLink",{title:"Insert Link",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("link.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("link.insert")):this.link.showInsertPopup()},plugin:"link"}),e.FE.DefineIcon("linkOpen",{NAME:"external-link",FA5NAME:"external-link-alt"}),e.FE.RegisterCommand("linkOpen",{title:"Open Link",undo:!1,refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},callback:function(){var e=this.link.get();e&&(-1!==e.href.indexOf("mailto:")?this.o_win.open(e.href).close():this.o_win.open(e.href,"_blank","noopener"),this.popups.hide("link.edit"))},plugin:"link"}),e.FE.DefineIcon("linkEdit",{NAME:"edit"}),e.FE.RegisterCommand("linkEdit",{title:"Edit Link",undo:!1,refreshAfterCallback:!1,popup:!0,callback:function(){this.link.update()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkRemove",{NAME:"unlink"}),e.FE.RegisterCommand("linkRemove",{title:"Unlink",callback:function(){this.link.remove()},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"}),e.FE.DefineIcon("linkBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("linkBack",{title:"Back",undo:!1,focus:!1,back:!0,refreshAfterCallback:!1,callback:function(){this.link.back()},refresh:function(e){var t=this.link.get()&&this.doc.hasFocus();this.image&&this.image.get()||t||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkList",{NAME:"search"}),e.FE.RegisterCommand("linkList",{title:"Choose Link",type:"dropdown",focus:!1,undo:!1,refreshAfterCallback:!1,html:function(){for(var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkList,n=0;n<t.length;n++)e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkList" data-param1="'+n+'">'+(t[n].displayText||t[n].text)+"</a></li>";return e+="</ul>"},callback:function(e,t){this.link.usePredefined(t)},plugin:"link"}),e.FE.RegisterCommand("linkInsert",{focus:!1,refreshAfterCallback:!1,callback:function(){this.link.insertCallback()},refresh:function(e){this.link.get()?e.text(this.language.translate("Update")):e.text(this.language.translate("Insert"))},plugin:"link"}),e.FE.DefineIcon("imageLink",{NAME:"link"}),e.FE.RegisterCommand("imageLink",{title:"Insert Link",undo:!1,focus:!1,popup:!0,callback:function(){this.link.imageLink()},refresh:function(e){var t;this.link.get()?((t=e.prev()).hasClass("fr-separator")&&t.removeClass("fr-hidden"),e.addClass("fr-hidden")):((t=e.prev()).hasClass("fr-separator")&&t.addClass("fr-hidden"),e.removeClass("fr-hidden"))},plugin:"link"}),e.FE.DefineIcon("linkStyle",{NAME:"magic"}),e.FE.RegisterCommand("linkStyle",{title:"Style",type:"dropdown",html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.linkStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="linkStyle" data-param1="'+n+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.link.applyStyle(t)},refreshOnShow:function(t,n){var r=this.link.get();if(r){var i=e(r);n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=i.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}},refresh:function(e){this.link.get()?e.removeClass("fr-hidden"):e.addClass("fr-hidden")},plugin:"link"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{listAdvancedTypes:!0}),e.FE.PLUGINS.lists=function(t){function n(e){return'<span class="fr-open-'+e.toLowerCase()+'"></span>'}function r(e){return'<span class="fr-close-'+e.toLowerCase()+'"></span>'}function i(i){var o,a;for(o=i.length-1;0<=o;o--)for(a=o-1;0<=a;a--)if(e(i[a]).find(i[o]).length||i[a]==i[o]){i.splice(o,1);break}var s=[];for(o=0;o<i.length;o++){var l=e(i[o]),c=i[o].parentNode,u=l.attr("class");if(l.before(r(c.tagName)),"LI"==c.parentNode.tagName)l.before(r("LI")),l.after(n("LI"));else{var d="";u&&(d+=' class="'+u+'"');var f="rtl"==t.opts.direction||"rtl"==l.css("direction")?"margin-right":"margin-left";t.helpers.getPX(e(c).css(f))&&0<=(e(c).attr("style")||"").indexOf(f+":")&&(d+=' style="'+f+":"+t.helpers.getPX(e(c).css(f))+'px;"'),t.html.defaultTag()&&0===l.find(t.html.blockTagsQuery()).length&&l.wrapInner("<"+t.html.defaultTag()+d+"></"+t.html.defaultTag()+">"),t.node.isEmpty(l.get(0),!0)||0!==l.find(t.html.blockTagsQuery()).length||l.append("<br>"),l.append(n("LI")),l.prepend(r("LI"))}l.after(n(c.tagName)),"LI"==c.parentNode.tagName&&(c=c.parentNode.parentNode),s.indexOf(c)<0&&s.push(c)}for(o=0;o<s.length;o++){var p=e(s[o]),h=p.html();h=(h=h.replace(/<span class="fr-close-([a-z]*)"><\/span>/g,"</$1>")).replace(/<span class="fr-open-([a-z]*)"><\/span>/g,"<$1>"),p.replaceWith(t.node.openTagString(p.get(0))+h+t.node.closeTagString(p.get(0)))}t.$el.find("li:empty").remove(),t.$el.find("ul:empty, ol:empty").remove(),t.clean.lists(),t.html.wrap()}function o(n){t.selection.save();for(var r=0;r<n.length;r++){var i=n[r].previousSibling;if(i){var o=e(n[r]).find("> ul, > ol").last().get(0);if(o){for(var a=e("<li>").prependTo(e(o)),s=t.node.contents(n[r])[0];s&&!t.node.isList(s);){var l=s.nextSibling;a.append(s),s=l}e(i).append(e(o)),e(n[r]).remove()}else{var c=e(i).find("> ul, > ol").last().get(0);if(c)e(c).append(e(n[r]));else{var u=e("<"+n[r].parentNode.tagName+">");e(i).append(u),u.append(e(n[r]))}}}}t.clean.lists(),t.selection.restore()}function a(e){t.selection.save(),i(e),t.selection.restore()}function s(e){if("indent"==e||"outdent"==e){for(var n=!1,r=t.selection.blocks(),i=[],s=0;s<r.length;s++)"LI"==r[s].tagName?(n=!0,i.push(r[s])):"LI"==r[s].parentNode.tagName&&(n=!0,i.push(r[s].parentNode));n&&("indent"==e?o(i):a(i))}}return{_init:function(){t.events.on("commands.after",s),t.events.on("keydown",function(n){if(n.which==e.FE.KEYCODE.TAB){for(var r=t.selection.blocks(),i=[],s=0;s<r.length;s++)"LI"==r[s].tagName?i.push(r[s]):"LI"==r[s].parentNode.tagName&&i.push(r[s].parentNode);if(1<i.length||i.length&&(t.selection.info(i[0]).atStart||t.node.isEmpty(i[0])))return n.preventDefault(),n.stopPropagation(),n.shiftKey?a(i):o(i),!1}},!0)},format:function(n,r){var o,a;for(t.selection.save(),t.html.wrap(!0,!0,!0,!0),t.selection.restore(),a=t.selection.blocks(),o=0;o<a.length;o++)"LI"!=a[o].tagName&&"LI"==a[o].parentNode.tagName&&(a[o]=a[o].parentNode);if(t.selection.save(),function(e,t){for(var n=!0,r=0;r<e.length;r++){if("LI"!=e[r].tagName)return!1;e[r].parentNode.tagName!=t&&(n=!1)}return n}(a,n)?r||i(a):function(n,r){!function(n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o].parentNode;"LI"==n[o].tagName&&a.tagName!=r&&i.indexOf(a)<0&&i.push(a)}for(o=i.length-1;0<=o;o--){var s=e(i[o]);s.replaceWith("<"+r.toLowerCase()+" "+t.node.attributes(s.get(0))+">"+s.html()+"</"+r.toLowerCase()+">")}}(n,r);var i,o=t.html.defaultTag(),a=null;n.length&&(i="rtl"==t.opts.direction||"rtl"==e(n[0]).css("direction")?"margin-right":"margin-left");for(var s=0;s<n.length;s++)if("TD"!=n[s].tagName&&"TH"!=n[s].tagName&&"LI"!=n[s].tagName){var l=t.helpers.getPX(e(n[s]).css(i))||0;(n[s].style.marginLeft=null)===a&&(a=l);var c=0<a?"<"+r+' style="'+i+": "+a+'px;">':"<"+r+">",u="</"+r+">";for(l-=a;0<l/t.opts.indentMargin;)c+="<"+r+">",u+=u,l-=t.opts.indentMargin;o&&n[s].tagName.toLowerCase()==o?e(n[s]).replaceWith(c+"<li"+t.node.attributes(n[s])+">"+e(n[s]).html()+"</li>"+u):e(n[s]).wrap(c+"<li></li>"+u)}t.clean.lists()}(a,n),t.html.unwrap(),t.selection.restore(),r=r||"default"){for(a=t.selection.blocks(),o=0;o<a.length;o++)"LI"!=a[o].tagName&&"LI"==a[o].parentNode.tagName&&(a[o]=a[o].parentNode);for(o=0;o<a.length;o++)"LI"==a[o].tagName&&(e(a[o].parentNode).css("list-style-type","default"===r?"":r),0===(e(a[o].parentNode).attr("style")||"").length&&e(a[o].parentNode).removeAttr("style"))}},refresh:function(n,r){var i=e(t.selection.element());if(i.get(0)!=t.el){var o=i.get(0);(o="LI"!=o.tagName&&o.firstElementChild&&"LI"!=o.firstElementChild.tagName?i.parents("li").get(0):"LI"==o.tagName||o.firstElementChild?o.firstElementChild&&"LI"==o.firstElementChild.tagName?i.get(0).firstChild:i.get(0):i.parents("li").get(0))&&o.parentNode.tagName==r&&t.el.contains(o.parentNode)&&n.addClass("fr-active")}}}},e.FE.RegisterCommand("formatUL",{title:"Unordered List",type:"button",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default",circle:"Circle",disc:"Disc",square:"Square"},refresh:function(e){this.lists.refresh(e,"UL")},callback:function(e,t){this.lists.format("UL",t)},plugin:"lists"}),e.FE.RegisterCommand("formatOL",{title:"Ordered List",hasOptions:function(){return this.opts.listAdvancedTypes},options:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},refresh:function(e){this.lists.refresh(e,"OL")},callback:function(e,t){this.lists.format("OL",t)},plugin:"lists"}),e.FE.DefineIcon("formatUL",{NAME:"list-ul"}),e.FE.DefineIcon("formatOL",{NAME:"list-ol"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{quickInsertButtons:["image","video","embedly","table","ul","ol","hr"],quickInsertTags:["p","div","h1","h2","h3","h4","h5","h6","pre","blockquote"],quickInsertEnabled:!0}),e.FE.QUICK_INSERT_BUTTONS={},e.FE.DefineIcon("quickInsert",{PATH:'<path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/>',template:"svg"}),e.FE.RegisterQuickInsertButton=function(t,n){e.FE.QUICK_INSERT_BUTTONS[t]=e.extend({undo:!0},n)},e.FE.RegisterQuickInsertButton("image",{icon:"insertImage",requiredPlugin:"image",title:"Insert Image",undo:!1,callback:function(){var t=this;t.shared.$qi_image_input||(t.shared.$qi_image_input=e('<input accept="image/'+t.opts.imageAllowedTypes.join(", image/").toLowerCase()+'" name="quickInsertImage'+this.id+'" style="display: none;" type="file">'),e("body:first").append(t.shared.$qi_image_input),t.events.$on(t.shared.$qi_image_input,"change",function(){var t=e(this).data("inst");this.files&&(t.quickInsert.hide(),t.image.upload(this.files)),e(this).val("")},!0)),t.$qi_image_input=t.shared.$qi_image_input,t.helpers.isMobile()&&t.selection.save(),t.events.disableBlur(),t.$qi_image_input.data("inst",t).trigger("click")}}),e.FE.RegisterQuickInsertButton("video",{icon:"insertVideo",requiredPlugin:"video",title:"Insert Video",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of the video you want to insert."));e&&this.video.insertByURL(e)}}),e.FE.RegisterQuickInsertButton("embedly",{icon:"embedly",requiredPlugin:"embedly",title:"Embed URL",undo:!1,callback:function(){var e=prompt(this.language.translate("Paste the URL of any web content you want to insert."));e&&this.embedly.add(e)}}),e.FE.RegisterQuickInsertButton("table",{icon:"insertTable",requiredPlugin:"table",title:"Insert Table",callback:function(){this.table.insert(2,2)}}),e.FE.RegisterQuickInsertButton("ol",{icon:"formatOL",requiredPlugin:"lists",title:"Ordered List",callback:function(){this.lists.format("OL")}}),e.FE.RegisterQuickInsertButton("ul",{icon:"formatUL",requiredPlugin:"lists",title:"Unordered List",callback:function(){this.lists.format("UL")}}),e.FE.RegisterQuickInsertButton("hr",{icon:"insertHR",title:"Insert Horizontal Line",callback:function(){this.commands.insertHR()}}),e.FE.PLUGINS.quickInsert=function(t){var n,r;function i(i){var o,a,s;o=i.offset().top-t.$box.offset().top,a=(t.$iframe&&t.$iframe.offset().left||0)+i.offset().left<n.outerWidth()?i.offset().left+n.outerWidth():0-n.outerWidth(),t.opts.enter!=e.FE.ENTER_BR?s=(n.outerHeight()-i.outerHeight())/2:(e("<span>"+e.FE.INVISIBLE_SPACE+"</span>").insertAfter(i),s=(n.outerHeight()-i.next().outerHeight())/2,i.next().remove()),t.opts.iframe&&(o+=t.$iframe.offset().top),n.hasClass("fr-on")&&0<=o&&r.css("top",o-s),0<=o&&o-Math.abs(s)<=t.$box.outerHeight()-i.outerHeight()?(n.hasClass("fr-hidden")&&(n.hasClass("fr-on")&&l(),n.removeClass("fr-hidden")),n.css("top",o-s)):n.hasClass("fr-visible")&&(n.addClass("fr-hidden"),c()),n.css("left",a)}function o(o){n||(t.shared.$quick_insert||(t.shared.$quick_insert=e('<div class="fr-quick-insert"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Quick Insert")+'">'+t.icon.create("quickInsert")+"</a></div>")),n=t.shared.$quick_insert,t.tooltip.bind(t.$box,".fr-quick-insert > a.fr-floating-btn"),t.events.on("destroy",function(){n.removeClass("fr-on").appendTo(e("body:first")).css("left",-9999).css("top",-9999),r&&(c(),r.appendTo(e("body:first")))},!0),t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null,r&&(r.html("").removeData().remove(),r=null)},!0),t.events.on("commands.before",s),t.events.on("commands.after",function(){t.popups.areVisible()||a()}),t.events.bindClick(t.$box,".fr-quick-insert > a",l),t.events.bindClick(t.$box,".fr-qi-helper > a.fr-btn",function(n){var r=e(n.currentTarget).data("cmd");if(!1===t.events.trigger("quickInsert.commands.before",[r]))return!1;e.FE.QUICK_INSERT_BUTTONS[r].callback.apply(t,[n.currentTarget]),e.FE.QUICK_INSERT_BUTTONS[r].undo&&t.undo.saveStep(),t.events.trigger("quickInsert.commands.after",[r]),t.quickInsert.hide()}),t.events.$on(t.$wp,"scroll",function(){n.hasClass("fr-visible")&&i(n.data("tag"))})),n.hasClass("fr-on")&&c(),t.$box.append(n),i(o),n.data("tag",o),n.addClass("fr-visible")}function a(){if(t.core.hasFocus()){var r=t.selection.element();if(t.opts.enter==e.FE.ENTER_BR||t.node.isBlock(r)||(r=t.node.blockParent(r)),t.opts.enter==e.FE.ENTER_BR&&!t.node.isBlock(r)){var i=t.node.deepestParent(r);i&&(r=i)}r&&(t.opts.enter!=e.FE.ENTER_BR&&t.node.isEmpty(r)&&0<=t.opts.quickInsertTags.indexOf(r.tagName.toLowerCase())||t.opts.enter==e.FE.ENTER_BR&&("BR"==r.tagName&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))||t.node.isEmpty(r)&&(!r.previousSibling||"BR"==r.previousSibling.tagName||t.node.isBlock(r.previousSibling))&&(!r.nextSibling||"BR"==r.nextSibling.tagName||t.node.isBlock(r.nextSibling))))?n&&n.data("tag").is(e(r))&&n.hasClass("fr-on")?c():t.selection.isCollapsed()&&o(e(r)):s()}}function s(){n&&(n.hasClass("fr-on")&&c(),n.removeClass("fr-visible fr-on"),n.css("left",-9999).css("top",-9999))}function l(i){if(i&&i.preventDefault(),n.hasClass("fr-on")&&!n.hasClass("fr-hidden"))c();else{if(!t.shared.$qi_helper){for(var o=t.opts.quickInsertButtons,a='<div class="fr-qi-helper">',s=0,l=0;l<o.length;l++){var u=e.FE.QUICK_INSERT_BUTTONS[o[l]];u&&(!u.requiredPlugin||e.FE.PLUGINS[u.requiredPlugin]&&0<=t.opts.pluginsEnabled.indexOf(u.requiredPlugin))&&(a+='<a class="fr-btn fr-floating-btn" role="button" title="'+t.language.translate(u.title)+'" tabIndex="-1" data-cmd="'+o[l]+'" style="transition-delay: '+.025*s+++'s;">'+t.icon.create(u.icon)+"</a>")}a+="</div>",t.shared.$qi_helper=e(a),t.tooltip.bind(t.shared.$qi_helper,"> a.fr-btn"),t.events.$on(t.shared.$qi_helper,"mousedown",function(e){e.preventDefault()},!0)}(r=t.shared.$qi_helper).appendTo(t.$box),setTimeout(function(){r.css("top",parseFloat(n.css("top"))),r.css("left",parseFloat(n.css("left"))+n.outerWidth()),r.find("a").addClass("fr-size-1"),n.addClass("fr-on")},10)}}function c(){var e=t.$box.find(".fr-qi-helper");e.length&&(e.find("a").removeClass("fr-size-1"),e.css("left",-9999),n.hasClass("fr-hidden")||n.removeClass("fr-on"))}return{_init:function(){if(!t.$wp||!t.opts.quickInsertEnabled)return!1;t.popups.onShow("image.edit",s),t.events.on("mouseup",a),t.helpers.isMobile()&&t.events.$on(e(t.o_doc),"selectionchange",a),t.events.on("blur",s),t.events.on("keyup",a),t.events.on("keydown",function(){setTimeout(function(){a()},0)})},hide:s}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{paragraphFormat:{N:"Normal",H1:"Heading 1",H2:"Heading 2",H3:"Heading 3",H4:"Heading 4",PRE:"Code"},paragraphFormatSelection:!1,paragraphDefaultSelection:"Paragraph Format"}),e.FE.PLUGINS.paragraphFormat=function(t){function n(n,r){var i=t.html.defaultTag();if(r&&r.toLowerCase()!=i)if(0<n.find("ul, ol").length){var o=e("<"+r+">");n.prepend(o);for(var a=t.node.contents(n.get(0))[0];a&&["UL","OL"].indexOf(a.tagName)<0;){var s=a.nextSibling;o.append(a),a=s}}else n.html("<"+r+">"+n.html()+"</"+r+">")}return{apply:function(r){"N"==r&&(r=t.html.defaultTag()),t.selection.save(),t.html.wrap(!0,!0,!t.opts.paragraphFormat.BLOCKQUOTE,!0,!0),t.selection.restore();var i,o,a,s,l,c,u,d,f=t.selection.blocks();t.selection.save(),t.$el.find("pre").attr("skip",!0);for(var p=0;p<f.length;p++)if(f[p].tagName!=r&&!t.node.isList(f[p])){var h=e(f[p]);"LI"==f[p].tagName?n(h,r):"LI"==f[p].parentNode.tagName&&f[p]?(c=h,u=r,d=t.html.defaultTag(),u&&u.toLowerCase()!=d||(u='div class="fr-temp-div"'),c.replaceWith(e("<"+u+">").html(c.html()))):0<=["TD","TH"].indexOf(f[p].parentNode.tagName)?(a=h,s=r,l=t.html.defaultTag(),s||(s='div class="fr-temp-div"'+(t.node.isEmpty(a.get(0),!0)?' data-empty="true"':"")),s.toLowerCase()==l?(t.node.isEmpty(a.get(0),!0)||a.append("<br/>"),a.replaceWith(a.html())):a.replaceWith(e("<"+s+">").html(a.html()))):(i=h,(o=r)||(o='div class="fr-temp-div"'+(t.node.isEmpty(i.get(0),!0)?' data-empty="true"':"")),i.replaceWith(e("<"+o+" "+t.node.attributes(i.get(0))+">").html(i.html()).removeAttr("data-empty")))}t.$el.find('pre:not([skip="true"]) + pre:not([skip="true"])').each(function(){e(this).prev().append("<br>"+e(this).html()),e(this).remove()}),t.$el.find("pre").removeAttr("skip"),t.html.unwrap(),t.selection.restore()},refreshOnShow:function(e,n){var r=t.selection.blocks();if(r.length){var i=r[0],o="N",a=t.html.defaultTag();i.tagName.toLowerCase()!=a&&i!=t.el&&(o=i.tagName),n.find('.fr-command[data-param1="'+o+'"]').addClass("fr-active").attr("aria-selected",!0)}else n.find('.fr-command[data-param1="N"]').addClass("fr-active").attr("aria-selected",!0)},refresh:function(e){if(t.opts.paragraphFormatSelection){var n=t.selection.blocks();if(n.length){var r=n[0],i="N",o=t.html.defaultTag();r.tagName.toLowerCase()!=o&&r!=t.el&&(i=r.tagName),0<=["LI","TD","TH"].indexOf(i)&&(i="N"),e.find("> span").text(t.language.translate(t.opts.paragraphFormat[i]))}else e.find("> span").text(t.language.translate(t.opts.paragraphFormat.N))}}}},e.FE.RegisterCommand("paragraphFormat",{type:"dropdown",displaySelection:function(e){return e.opts.paragraphFormatSelection},defaultSelection:function(e){return e.language.translate(e.opts.paragraphDefaultSelection)},displaySelectionWidth:125,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.paragraphFormat;for(var n in t)if(t.hasOwnProperty(n)){var r=this.shortcuts.get("paragraphFormat."+n);r=r?'<span class="fr-shortcut">'+r+"</span>":"",e+='<li role="presentation"><'+("N"==n?this.html.defaultTag()||"DIV":n)+' style="padding: 0 !important; margin: 0 !important;" role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="paragraphFormat" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></"+("N"==n?this.html.defaultTag()||"DIV":n)+"></li>"}return e+="</ul>"},title:"Paragraph Format",callback:function(e,t){this.paragraphFormat.apply(t)},refresh:function(e){this.paragraphFormat.refresh(e)},refreshOnShow:function(e,t){this.paragraphFormat.refreshOnShow(e,t)},plugin:"paragraphFormat"}),e.FE.DefineIcon("paragraphFormat",{NAME:"paragraph"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{saveInterval:1e4,saveURL:null,saveParams:{},saveParam:"body",saveMethod:"POST"}),e.FE.PLUGINS.save=function(t){var n=null,r=null,i=!1,o=1,a=2,s={};function l(e,n){t.events.trigger("save.error",[{code:e,message:s[e]},n])}function c(n){void 0===n&&(n=t.html.get());var i=n,s=t.events.trigger("save.before",[n]);if(!1===s)return!1;if("string"==typeof s&&(n=s),t.opts.saveURL){var c={};for(var u in t.opts.saveParams)if(t.opts.saveParams.hasOwnProperty(u)){var d=t.opts.saveParams[u];c[u]="function"==typeof d?d.call(this):d}var f={};f[t.opts.saveParam]=n,e.ajax({type:t.opts.saveMethod,url:t.opts.saveURL,data:e.extend(f,c),crossDomain:t.opts.requestWithCORS,xhrFields:{withCredentials:t.opts.requestWithCredentials},headers:t.opts.requestHeaders}).done(function(e){r=i,t.events.trigger("save.after",[e])}).fail(function(e){l(a,e.response||e.responseText)})}else l(o)}function u(){clearTimeout(n),n=setTimeout(function(){var e=t.html.get();(r!=e||i)&&(i=!1,c(r=e))},t.opts.saveInterval)}return s[o]="Missing saveURL option.",s[a]="Something went wrong during save.",{_init:function(){t.opts.saveInterval&&(r=t.html.get(),t.events.on("contentChanged",u),t.events.on("keydown destroy",function(){clearTimeout(n)}))},save:c,reset:function(){u(),i=!1},force:function(){i=!0}}},e.FE.DefineIcon("save",{NAME:"floppy-o",FA5NAME:"save"}),e.FE.RegisterCommand("save",{title:"Save",undo:!1,focus:!1,refreshAfterCallback:!1,callback:function(){this.save.save()},plugin:"save"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.POPUP_TEMPLATES,{"table.insert":"[_BUTTONS_][_ROWS_COLUMNS_]","table.edit":"[_BUTTONS_]","table.colors":"[_BUTTONS_][_COLORS_][_CUSTOM_COLOR_]"}),e.extend(e.FE.DEFAULTS,{tableInsertMaxSize:10,tableEditButtons:["tableHeader","tableRemove","|","tableRows","tableColumns","tableStyle","-","tableCells","tableCellBackground","tableCellVerticalAlign","tableCellHorizontalAlign","tableCellStyle"],tableInsertButtons:["tableBack","|"],tableResizer:!0,tableDefaultWidth:"100%",tableResizerOffset:5,tableResizingLimit:30,tableColorsButtons:["tableBack","|"],tableColors:["#61BD6D","#1ABC9C","#54ACD2","#2C82C9","#9365B8","#475577","#CCCCCC","#41A85F","#00A885","#3D8EB9","#2969B0","#553982","#28324E","#000000","#F7DA64","#FBA026","#EB6B56","#E25041","#A38F84","#EFEFEF","#FFFFFF","#FAC51C","#F37934","#D14841","#B8312F","#7C706B","#D1D5D8","REMOVE"],tableColorsStep:7,tableCellStyles:{"fr-highlighted":"Highlighted","fr-thick":"Thick"},tableStyles:{"fr-dashed-borders":"Dashed Borders","fr-alternate-rows":"Alternate Rows"},tableCellMultipleStyles:!0,tableMultipleStyles:!0,tableInsertHelper:!0,tableInsertHelperOffset:15}),e.FE.PLUGINS.table=function(t){var n,r,i,o,a,s,l;function c(){var e=w();if(e){var n=t.popups.get("table.edit");if(n||(n=p()),n){t.popups.setContainer("table.edit",t.$sc);var r=O(e),i=(r.left+r.right)/2,o=r.bottom;t.popups.show("table.edit",i,o,r.bottom-r.top),t.edit.isDisabled()&&(1<X().length&&t.toolbar.disable(),t.$el.removeClass("fr-no-selection"),t.edit.on(),t.button.bulkRefresh(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore())}}}function u(){0===X().length&&t.toolbar.enable()}function d(n){if(n)return t.popups.onHide("table.insert",function(){t.popups.get("table.insert").find('.fr-table-size .fr-select-table-size > span[data-row="1"][data-col="1"]').trigger("mouseenter")}),!0;var r="";0<t.opts.tableInsertButtons.length&&(r='<div class="fr-buttons">'+t.button.buildList(t.opts.tableInsertButtons)+"</div>");var i,o={buttons:r,rows_columns:function(){for(var e='<div class="fr-table-size"><div class="fr-table-size-info">1 &times; 1</div><div class="fr-select-table-size">',n=1;n<=t.opts.tableInsertMaxSize;n++){for(var r=1;r<=t.opts.tableInsertMaxSize;r++){var i="inline-block";2<n&&!t.helpers.isMobile()&&(i="none");var o="fr-table-cell ";1==n&&1==r&&(o+=" hover"),e+='<span class="fr-command '+o+'" tabIndex="-1" data-cmd="tableInsert" data-row="'+n+'" data-col="'+r+'" data-param1="'+n+'" data-param2="'+r+'" style="display: '+i+';" role="button"><span></span><span class="fr-sr-only">'+n+" &times; "+r+"&nbsp;&nbsp;&nbsp;</span></span>"}e+='<div class="new-line"></div>'}return e+="</div></div>"}()},a=t.popups.create("table.insert",o);return t.events.$on(a,"mouseenter",".fr-table-size .fr-select-table-size .fr-table-cell",function(t){f(e(t.currentTarget))},!0),i=a,t.events.$on(i,"focus","[tabIndex]",function(t){var n=e(t.currentTarget);f(n)}),t.events.on("popup.tab",function(n){var r=e(n.currentTarget);if(!t.popups.isVisible("table.insert")||!r.is("span, a"))return!0;var i,o=n.which;if(e.FE.KEYCODE.ARROW_UP==o||e.FE.KEYCODE.ARROW_DOWN==o||e.FE.KEYCODE.ARROW_LEFT==o||e.FE.KEYCODE.ARROW_RIGHT==o){if(r.is("span.fr-table-cell")){var a=r.parent().find("span.fr-table-cell"),s=a.index(r),l=t.opts.tableInsertMaxSize,c=s%l,u=Math.floor(s/l);e.FE.KEYCODE.ARROW_UP==o?u=Math.max(0,u-1):e.FE.KEYCODE.ARROW_DOWN==o?u=Math.min(t.opts.tableInsertMaxSize-1,u+1):e.FE.KEYCODE.ARROW_LEFT==o?c=Math.max(0,c-1):e.FE.KEYCODE.ARROW_RIGHT==o&&(c=Math.min(t.opts.tableInsertMaxSize-1,c+1));var d=u*l+c,p=e(a.get(d));f(p),t.events.disableBlur(),p.focus(),i=!1}}else e.FE.KEYCODE.ENTER==o&&(t.button.exec(r),i=!1);return!1===i&&(n.preventDefault(),n.stopPropagation()),i},!0),a}function f(e){var n=e.data("row"),r=e.data("col"),i=e.parent();i.siblings(".fr-table-size-info").html(n+" &times; "+r),i.find("> span").removeClass("hover fr-active-item");for(var o=1;o<=t.opts.tableInsertMaxSize;o++)for(var a=0;a<=t.opts.tableInsertMaxSize;a++){var s=i.find('> span[data-row="'+o+'"][data-col="'+a+'"]');o<=n&&a<=r?s.addClass("hover"):o<=n+1||o<=2&&!t.helpers.isMobile()?s.css("display","inline-block"):2<o&&!t.helpers.isMobile()&&s.css("display","none")}e.addClass("fr-active-item")}function p(e){if(e)return t.popups.onHide("table.edit",u),!0;if(0<t.opts.tableEditButtons.length){var n={buttons:'<div class="fr-buttons">'+t.button.buildList(t.opts.tableEditButtons)+"</div>"},r=t.popups.create("table.edit",n);return t.events.$on(t.$wp,"scroll.table-edit",function(){t.popups.isVisible("table.edit")&&c()}),r}return!1}function h(){if(0<X().length){var e=Q();t.selection.setBefore(e.get(0))||t.selection.setAfter(e.get(0)),t.selection.restore(),t.popups.hide("table.edit"),e.remove(),t.toolbar.enable()}}function m(n){var r=Q();if(0<r.length){if(0<t.$el.find("th.fr-selected-cell").length&&"above"==n)return;var i,o,a,s=w(),l=C(s);o="above"==n?l.min_i:l.max_i;var u="<tr>";for(i=0;i<s[o].length;i++)if("below"==n&&o<s.length-1&&s[o][i]==s[o+1][i]||"above"==n&&0<o&&s[o][i]==s[o-1][i]){if(0===i||0<i&&s[o][i]!=s[o][i-1]){var d=e(s[o][i]);d.attr("rowspan",parseInt(d.attr("rowspan"),10)+1)}}else u+='<td style="'+e(s[o][i]).attr("style")+'" ><br></td>';u+="</tr>",a=0<t.$el.find("th.fr-selected-cell").length&&"below"==n?e(r.find("tbody").not(r.find("table tbody"))):e(r.find("tr").not(r.find("table tr")).get(o)),"below"==n?"TBODY"==a.prop("tagName")?a.prepend(u):a.after(u):"above"==n&&(a.before(u),t.popups.isVisible("table.edit")&&c())}}function g(e,t,n){var r,i,o,a,s,l=0,c=w(n);if(e<(t=Math.min(t,c[0].length-1)))for(i=e;i<=t;i++)if(!(e<i&&c[0][i]==c[0][i-1])&&1<(a=Math.min(parseInt(c[0][i].getAttribute("colspan"),10)||1,t-e+1))&&c[0][i]==c[0][i+1])for(l=a-1,r=1;r<c.length;r++)if(c[r][i]!=c[r-1][i]){for(o=i;o<i+a;o++)if(1<(s=parseInt(c[r][o].getAttribute("colspan"),10)||1)&&c[r][o]==c[r][o+1])o+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&y(c,l,"colspan",0,c.length-1,e,t)}function v(e,t,n){var r,i,o,a,s,l=0,c=w(n);if(e<(t=Math.min(t,c.length-1)))for(r=e;r<=t;r++)if(!(e<r&&c[r][0]==c[r-1][0])&&1<(a=Math.min(parseInt(c[r][0].getAttribute("rowspan"),10)||1,t-e+1))&&c[r][0]==c[r+1][0])for(l=a-1,i=1;i<c[0].length;i++)if(c[r][i]!=c[r][i-1]){for(o=r;o<r+a;o++)if(1<(s=parseInt(c[o][i].getAttribute("rowspan"),10)||1)&&c[o][i]==c[o+1][i])o+=l=Math.min(l,s-1);else if(!(l=Math.max(0,l-1)))break;if(!l)break}l&&y(c,l,"rowspan",e,t,0,c[0].length-1)}function y(e,t,n,r,i,o,a){var s,l,c;for(s=r;s<=i;s++)for(l=o;l<=a;l++)r<s&&e[s][l]==e[s-1][l]||o<l&&e[s][l]==e[s][l-1]||1<(c=parseInt(e[s][l].getAttribute(n),10)||1)&&(1<c-t?e[s][l].setAttribute(n,c-t):e[s][l].removeAttribute(n))}function b(e,t,n,r,i){v(e,t,i),g(n,r,i)}function _(e){var n=t.$el.find(".fr-selected-cell");"REMOVE"!=e?n.css("background-color",t.helpers.HEXtoRGB(e)):n.css("background-color",""),c()}function w(t){var n=[];return null==(t=t||null)&&0<X().length&&(t=Q()),t&&t.find("tr:visible").not(t.find("table tr")).each(function(t,r){var i=e(r),o=0;i.find("> th, > td").each(function(r,i){for(var a=e(i),s=parseInt(a.attr("colspan"),10)||1,l=parseInt(a.attr("rowspan"),10)||1,c=t;c<t+l;c++)for(var u=o;u<o+s;u++)n[c]||(n[c]=[]),n[c][u]?o++:n[c][u]=i;o+=s})}),n}function E(e,t){for(var n=0;n<t.length;n++)for(var r=0;r<t[n].length;r++)if(t[n][r]==e)return{row:n,col:r}}function k(e,t,n){for(var r=e+1,i=t+1;r<n.length;){if(n[r][t]!=n[e][t]){r--;break}r++}for(r==n.length&&r--;i<n[e].length;){if(n[e][i]!=n[e][t]){i--;break}i++}return i==n[e].length&&i--,{row:r,col:i}}function x(){t.el.querySelector(".fr-cell-fixed")&&t.el.querySelector(".fr-cell-fixed").classList.remove("fr-cell-fixed"),t.el.querySelector(".fr-cell-handler")&&t.el.querySelector(".fr-cell-handler").classList.remove("fr-cell-handler")}function S(){var n=t.$el.find(".fr-selected-cell");0<n.length&&n.each(function(){var t=e(this);t.removeClass("fr-selected-cell"),""===t.attr("class")&&t.removeAttr("class")}),x()}function T(){t.events.disableBlur(),t.selection.clear(),t.$el.addClass("fr-no-selection"),t.$el.blur(),t.events.enableBlur()}function C(e){var n=t.$el.find(".fr-selected-cell");if(0<n.length){var r,i=e.length,o=0,a=e[0].length,s=0;for(r=0;r<n.length;r++){var l=E(n[r],e),c=k(l.row,l.col,e);i=Math.min(l.row,i),o=Math.max(c.row,o),a=Math.min(l.col,a),s=Math.max(c.col,s)}return{min_i:i,max_i:o,min_j:a,max_j:s}}return null}function O(t){var n=C(t),r=e(t[n.min_i][n.min_j]),i=e(t[n.min_i][n.max_j]),o=e(t[n.max_i][n.min_j]);return{left:r.offset().left,right:i.offset().left+i.outerWidth(),top:r.offset().top,bottom:o.offset().top+o.outerHeight()}}function A(n,r){if(e(n).is(r))S(),e(n).addClass("fr-selected-cell");else{T(),t.edit.off();var i=w(),o=E(n,i),a=E(r,i),s=function t(n,r,i,o,a){var s,l,c,u,d=n,f=r,p=i,h=o;for(s=d;s<=f;s++)(1<(parseInt(e(a[s][p]).attr("rowspan"),10)||1)||1<(parseInt(e(a[s][p]).attr("colspan"),10)||1))&&(u=k((c=E(a[s][p],a)).row,c.col,a),d=Math.min(c.row,d),f=Math.max(u.row,f),p=Math.min(c.col,p),h=Math.max(u.col,h)),(1<(parseInt(e(a[s][h]).attr("rowspan"),10)||1)||1<(parseInt(e(a[s][h]).attr("colspan"),10)||1))&&(u=k((c=E(a[s][h],a)).row,c.col,a),d=Math.min(c.row,d),f=Math.max(u.row,f),p=Math.min(c.col,p),h=Math.max(u.col,h));for(l=p;l<=h;l++)(1<(parseInt(e(a[d][l]).attr("rowspan"),10)||1)||1<(parseInt(e(a[d][l]).attr("colspan"),10)||1))&&(u=k((c=E(a[d][l],a)).row,c.col,a),d=Math.min(c.row,d),f=Math.max(u.row,f),p=Math.min(c.col,p),h=Math.max(u.col,h)),(1<(parseInt(e(a[f][l]).attr("rowspan"),10)||1)||1<(parseInt(e(a[f][l]).attr("colspan"),10)||1))&&(u=k((c=E(a[f][l],a)).row,c.col,a),d=Math.min(c.row,d),f=Math.max(u.row,f),p=Math.min(c.col,p),h=Math.max(u.col,h));return d==n&&f==r&&p==i&&h==o?{min_i:n,max_i:r,min_j:i,max_j:o}:t(d,f,p,h,a)}(Math.min(o.row,a.row),Math.max(o.row,a.row),Math.min(o.col,a.col),Math.max(o.col,a.col),i);S(),n.classList.add("fr-cell-fixed"),r.classList.add("fr-cell-handler");for(var l=s.min_i;l<=s.max_i;l++)for(var c=s.min_j;c<=s.max_j;c++)e(i[l][c]).addClass("fr-selected-cell")}}function N(n){var r=null,i=e(n.target);return"TD"==n.target.tagName||"TH"==n.target.tagName?r=n.target:0<i.closest("td").length?r=i.closest("td").get(0):0<i.closest("th").length&&(r=i.closest("th").get(0)),0===t.$el.find(r).length?null:r}function I(){S(),t.popups.hide("table.edit")}function M(n){var r=N(n);if("false"==e(r).parents("[contenteditable]:not(.fr-element):not(.fr-img-caption):not(body):first").attr("contenteditable"))return!0;if(0<X().length&&!r&&I(),!t.edit.isDisabled()||t.popups.isVisible("table.edit"))if(1!=n.which||1==n.which&&t.helpers.isMac()&&n.ctrlKey)(3==n.which||1==n.which&&t.helpers.isMac()&&n.ctrlKey)&&r&&I();else if(o=!0,r){0<X().length&&!n.shiftKey&&I(),n.stopPropagation(),t.events.trigger("image.hideResizer"),t.events.trigger("video.hideResizer"),i=!0;var s=r.tagName.toLowerCase();n.shiftKey&&0<t.$el.find(s+".fr-selected-cell").length?e(t.$el.find(s+".fr-selected-cell").closest("table")).is(e(r).closest("table"))?A(a,r):T():((t.keys.ctrlKey(n)||n.shiftKey)&&(1<X().length||0===e(r).find(t.selection.element()).length&&!e(r).is(t.selection.element()))&&T(),a=r,0<t.opts.tableEditButtons.length&&A(a,a))}}function j(r){if(t.popups.areVisible())return!0;if(i||t.$tb.is(r.target)||t.$tb.is(e(r.target).closest(t.$tb.get(0)))||(0<X().length&&t.toolbar.enable(),S()),!(1!=r.which||1==r.which&&t.helpers.isMac()&&r.ctrlKey)&&(o=!1,i&&(i=!1,N(r)||1!=X().length?0<X().length&&(t.selection.isCollapsed()?c():S()):S()),l)){l=!1,n.removeClass("fr-moving"),t.$el.removeClass("fr-no-selection"),t.edit.on();var a=parseFloat(n.css("left"))+t.opts.tableResizerOffset+t.$wp.offset().left;t.opts.iframe&&(a-=t.$iframe.offset().left),n.data("release-position",a),n.removeData("max-left"),n.removeData("max-right"),function(){var r=n.data("origin"),i=n.data("release-position");if(r!==i){var o=n.data("first"),a=n.data("second"),s=n.data("table"),l=s.outerWidth();if(t.undo.canDo()||t.undo.saveStep(),null!==o&&null!==a){var c,u,d,f=w(s),p=[],h=[],m=[],g=[];for(c=0;c<f.length;c++)u=e(f[c][o]),d=e(f[c][a]),p[c]=u.outerWidth(),m[c]=d.outerWidth(),h[c]=p[c]/l*100,g[c]=m[c]/l*100;for(c=0;c<f.length;c++)if(u=e(f[c][o]),d=e(f[c][a]),f[c][o]!=f[c][a]){var v=(h[c]*(p[c]+i-r)/p[c]).toFixed(4);u.css("width",v+"%"),d.css("width",(h[c]+g[c]-v).toFixed(4)+"%")}}else{var y,b=s.parent(),_=l/b.width()*100,E=(parseInt(s.css("margin-left"),10)||0)/b.width()*100,k=(parseInt(s.css("margin-right"),10)||0)/b.width()*100;"rtl"==t.opts.direction&&0===a||"rtl"!=t.opts.direction&&0!==a?(y=(l+i-r)/l*_,s.css("margin-right","calc(100% - "+Math.round(y).toFixed(4)+"% - "+Math.round(E).toFixed(4)+"%)")):("rtl"==t.opts.direction&&0!==a||"rtl"!=t.opts.direction&&0===a)&&(y=(l-i+r)/l*_,s.css("margin-left","calc(100% - "+Math.round(y).toFixed(4)+"% - "+Math.round(k).toFixed(4)+"%)")),s.css("width",Math.round(y).toFixed(4)+"%")}t.selection.restore(),t.undo.saveStep(),t.events.trigger("table.resized",[s.get(0)])}n.removeData("origin"),n.removeData("release-position"),n.removeData("first"),n.removeData("second"),n.removeData("table")}(),F()}}function L(n){if(!0===i&&0<t.opts.tableEditButtons.length){if(e(n.currentTarget).closest("table").is(Q())){if("TD"==n.currentTarget.tagName&&0===t.$el.find("th.fr-selected-cell").length)return void A(a,n.currentTarget);if("TH"==n.currentTarget.tagName&&0===t.$el.find("td.fr-selected-cell").length)return void A(a,n.currentTarget)}T()}}function P(n,r,i,o){for(var a,s=r;s!=t.el&&"TD"!=s.tagName&&"TH"!=s.tagName&&("up"==o?a=s.previousElementSibling:"down"==o&&(a=s.nextElementSibling),!a);)s=s.parentNode;"TD"==s.tagName||"TH"==s.tagName?function(n,r){for(var i=n;i&&"TABLE"!=i.tagName&&i.parentNode!=t.el;)i=i.parentNode;if(i&&"TABLE"==i.tagName){var o=w(e(i));"up"==r?D(E(n,o),i,o):"down"==r&&R(E(n,o),i,o)}}(s,o):a&&("up"==o&&t.selection.setAtEnd(a),"down"==o&&t.selection.setAtStart(a))}function D(e,n,r){0<e.row?t.selection.setAtEnd(r[e.row-1][e.col]):P(0,n,0,"up")}function R(e,n,r){var i=parseInt(r[e.row][e.col].getAttribute("rowspan"),10)||1;e.row<r.length-i?t.selection.setAtStart(r[e.row+i][e.col]):P(0,n,0,"down")}function F(){n&&(n.find("div").css("opacity",0),n.css("top",0),n.css("left",0),n.css("height",0),n.find("div").css("height",0),n.hide())}function B(){r&&r.removeClass("fr-visible").css("left","-9999px")}function U(n,i){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;r||K(),t.$box.append(r),r.data("instance",t);var o,a=e(i).find("tr:first"),s=n.pageX,l=0,c=0;t.opts.iframe&&(l+=t.$iframe.offset().left-t.helpers.scrollLeft(),c+=t.$iframe.offset().top-t.helpers.scrollTop()),a.find("th, td").each(function(){var n=e(this);return n.offset().left<=s&&s<n.offset().left+n.outerWidth()/2?(o=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-o-5),r.css("left",l+n.offset().left-t.$box.offset().left-o/2),r.data("selected-cell",n),r.data("position","before"),r.addClass("fr-visible"),!1):n.offset().left+n.outerWidth()/2<=s&&s<n.offset().left+n.outerWidth()?(o=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-o-5),r.css("left",l+n.offset().left-t.$box.offset().left+n.outerWidth()-o/2),r.data("selected-cell",n),r.data("position","after"),r.addClass("fr-visible"),!1):void 0})}function q(n,i){if(t.$box.find(".fr-line-breaker").is(":visible"))return!1;r||K(),t.$box.append(r),r.data("instance",t);var o,a=e(i),s=n.pageY,l=0,c=0;t.opts.iframe&&(l+=t.$iframe.offset().left-t.helpers.scrollLeft(),c+=t.$iframe.offset().top-t.helpers.scrollTop()),a.find("tr").each(function(){var n=e(this);return n.offset().top<=s&&s<n.offset().top+n.outerHeight()/2?(o=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top-o/2),r.css("left",l+n.offset().left-t.$box.offset().left-o-5),r.data("selected-cell",n.find("td:first")),r.data("position","above"),r.addClass("fr-visible"),!1):n.offset().top+n.outerHeight()/2<=s&&s<n.offset().top+n.outerHeight()?(o=parseInt(r.find("a").css("width"),10),r.css("top",c+n.offset().top-t.$box.offset().top+n.outerHeight()-o/2),r.css("left",l+n.offset().left-t.$box.offset().left-o-5),r.data("selected-cell",n.find("td:first")),r.data("position","below"),r.addClass("fr-visible"),!1):void 0})}function z(i){s=null;var o=t.doc.elementFromPoint(i.pageX-t.win.pageXOffset,i.pageY-t.win.pageYOffset);t.opts.tableResizer&&(!t.popups.areVisible()||t.popups.areVisible()&&t.popups.isVisible("table.edit"))&&function(r,i){var o=e(i),a=o.closest("table"),s=a.parent();if(i&&"TD"!=i.tagName&&"TH"!=i.tagName&&(0<o.closest("td").length?i=o.closest("td"):0<o.closest("th").length&&(i=o.closest("th"))),!i||"TD"!=i.tagName&&"TH"!=i.tagName)n&&o.get(0)!=n.get(0)&&o.parent().get(0)!=n.get(0)&&t.core.sameInstance(n)&&F();else{if(o=e(i),0===t.$el.find(o).length)return!1;var c=o.offset().left-1,u=c+o.outerWidth();if(Math.abs(r.pageX-c)<=t.opts.tableResizerOffset||Math.abs(u-r.pageX)<=t.opts.tableResizerOffset){var d,f,p,h,m,g=w(a),v=E(i,g),y=k(v.row,v.col,g),b=a.offset().top,_=a.outerHeight()-1;"rtl"!=t.opts.direction?r.pageX-c<=t.opts.tableResizerOffset?(p=c,0<v.col?(h=c-W(v.col-1,g)+t.opts.tableResizingLimit,m=c+W(v.col,g)-t.opts.tableResizingLimit,d=v.col-1,f=v.col):(d=null,f=0,h=a.offset().left-1-parseInt(a.css("margin-left"),10),m=a.offset().left-1+a.width()-g[0].length*t.opts.tableResizingLimit)):u-r.pageX<=t.opts.tableResizerOffset&&(p=u,y.col<g[y.row].length&&g[y.row][y.col+1]?(h=u-W(y.col,g)+t.opts.tableResizingLimit,m=u+W(y.col+1,g)-t.opts.tableResizingLimit,d=y.col,f=y.col+1):(d=y.col,f=null,h=a.offset().left-1+g[0].length*t.opts.tableResizingLimit,m=s.offset().left-1+s.width()+parseFloat(s.css("padding-left")))):u-r.pageX<=t.opts.tableResizerOffset?(p=u,0<v.col?(h=u-W(v.col,g)+t.opts.tableResizingLimit,m=u+W(v.col-1,g)-t.opts.tableResizingLimit,d=v.col,f=v.col-1):(d=null,f=0,h=a.offset().left+g[0].length*t.opts.tableResizingLimit,m=s.offset().left-1+s.width()+parseFloat(s.css("padding-left")))):r.pageX-c<=t.opts.tableResizerOffset&&(p=c,y.col<g[y.row].length&&g[y.row][y.col+1]?(h=c-W(y.col+1,g)+t.opts.tableResizingLimit,m=c+W(y.col,g)-t.opts.tableResizingLimit,d=y.col+1,f=y.col):(d=y.col,f=null,h=s.offset().left+parseFloat(s.css("padding-left")),m=a.offset().left-1+a.width()-g[0].length*t.opts.tableResizingLimit)),n||(t.shared.$table_resizer||(t.shared.$table_resizer=e('<div class="fr-table-resizer"><div></div></div>')),n=t.shared.$table_resizer,t.events.$on(n,"mousedown",function(e){return!t.core.sameInstance(n)||(0<X().length&&I(),1==e.which?(t.selection.save(),l=!0,n.addClass("fr-moving"),T(),t.edit.off(),n.find("div").css("opacity",1),!1):void 0)}),t.events.$on(n,"mousemove",function(e){if(!t.core.sameInstance(n))return!0;l&&(t.opts.iframe&&(e.pageX-=t.$iframe.offset().left),Y(e))}),t.events.on("shared.destroy",function(){n.html("").removeData().remove(),n=null},!0),t.events.on("destroy",function(){t.$el.find(".fr-selected-cell").removeClass("fr-selected-cell"),n.hide().appendTo(e("body:first"))},!0)),n.data("table",a),n.data("first",d),n.data("second",f),n.data("instance",t),t.$wp.append(n);var x=p-t.win.pageXOffset-t.opts.tableResizerOffset-t.$wp.offset().left,S=b-t.$wp.offset().top+t.$wp.scrollTop();t.opts.iframe&&(x+=t.$iframe.offset().left,S+=t.$iframe.offset().top,h+=t.$iframe.offset().left,m+=t.$iframe.offset().left),n.data("max-left",h),n.data("max-right",m),n.data("origin",p-t.win.pageXOffset),n.css("top",S),n.css("left",x),n.css("height",_),n.find("div").css("height",_),n.css("padding-left",t.opts.tableResizerOffset),n.css("padding-right",t.opts.tableResizerOffset),n.show()}else t.core.sameInstance(n)&&F()}}(i,o),!t.opts.tableInsertHelper||t.popups.areVisible()||t.$tb.hasClass("fr-inline")&&t.$tb.is(":visible")||function(n,i){if(0===X().length){var o,a,s;if(i&&("HTML"==i.tagName||"BODY"==i.tagName||t.node.isElement(i)))for(o=1;o<=t.opts.tableInsertHelperOffset;o++){if(a=t.doc.elementFromPoint(n.pageX-t.win.pageXOffset,n.pageY-t.win.pageYOffset+o),e(a).hasClass("fr-tooltip"))return;if(a&&("TH"==a.tagName||"TD"==a.tagName||"TABLE"==a.tagName)&&(e(a).parents(".fr-wrapper").length||t.opts.iframe))return U(n,e(a).closest("table"));if(s=t.doc.elementFromPoint(n.pageX-t.win.pageXOffset+o,n.pageY-t.win.pageYOffset),e(s).hasClass("fr-tooltip"))return;if(s&&("TH"==s.tagName||"TD"==s.tagName||"TABLE"==s.tagName)&&(e(s).parents(".fr-wrapper").length||t.opts.iframe))return q(n,e(s).closest("table"))}t.core.sameInstance(r)&&B()}}(i,o)}function H(){if(l){var e=n.data("table").offset().top-t.win.pageYOffset;t.opts.iframe&&(e+=t.$iframe.offset().top-t.helpers.scrollTop()),n.css("top",e)}}function W(t,n){var r,i=e(n[0][t]).outerWidth();for(r=1;r<n.length;r++)i=Math.min(i,e(n[r][t]).outerWidth());return i}function $(e,t,n){var r,i=0;for(r=e;r<=t;r++)i+=W(r,n);return i}function Y(e){if(1<X().length&&o&&T(),!1===o&&!1===i&&!1===l)s&&clearTimeout(s),t.edit.isDisabled()&&!t.popups.isVisible("table.edit")||(s=setTimeout(z,30,e));else if(l){var r=e.pageX-t.win.pageXOffset;t.opts.iframe&&(r+=t.$iframe.offset().left);var a=n.data("max-left"),c=n.data("max-right");a<=r&&r<=c?n.css("left",r-t.opts.tableResizerOffset-t.$wp.offset().left):r<a&&parseFloat(n.css("left"),10)>a-t.opts.tableResizerOffset?n.css("left",a-t.opts.tableResizerOffset-t.$wp.offset().left):c<r&&parseFloat(n.css("left"),10)<c-t.opts.tableResizerOffset&&n.css("left",c-t.opts.tableResizerOffset-t.$wp.offset().left)}else o&&B()}function V(n){t.node.isEmpty(n.get(0))?n.prepend(e.FE.MARKERS):n.prepend(e.FE.START_MARKER).append(e.FE.END_MARKER)}function K(){t.shared.$ti_helper||(t.shared.$ti_helper=e('<div class="fr-insert-helper"><a class="fr-floating-btn" role="button" tabIndex="-1" title="'+t.language.translate("Insert")+'"><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M22,16.75 L16.75,16.75 L16.75,22 L15.25,22.000 L15.25,16.75 L10,16.75 L10,15.25 L15.25,15.25 L15.25,10 L16.75,10 L16.75,15.25 L22,15.25 L22,16.75 Z"/></svg></a></div>'),t.events.bindClick(t.shared.$ti_helper,"a",function(){var e=r.data("selected-cell"),n=r.data("position"),i=r.data("instance")||t;"before"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),i.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"after"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),i.table.insertColumn(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"above"==n?(t.undo.saveStep(),e.addClass("fr-selected-cell"),i.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()):"below"==n&&(t.undo.saveStep(),e.addClass("fr-selected-cell"),i.table.insertRow(n),e.removeClass("fr-selected-cell"),t.undo.saveStep()),B()}),t.events.on("shared.destroy",function(){t.shared.$ti_helper.html("").removeData().remove(),t.shared.$ti_helper=null},!0),t.events.$on(t.shared.$ti_helper,"mousemove",function(e){e.stopPropagation()},!0),t.events.$on(e(t.o_win),"scroll",function(){B()},!0),t.events.$on(t.$wp,"scroll",function(){B()},!0)),r=t.shared.$ti_helper,t.events.on("destroy",function(){r=null}),t.tooltip.bind(t.$box,".fr-insert-helper > a.fr-floating-btn")}function G(){a=null,clearTimeout(s)}function X(){return t.el.querySelectorAll(".fr-selected-cell")}function Q(){var n=X();if(n.length){for(var r=n[0];r&&"TABLE"!=r.tagName&&r.parentNode!=t.el;)r=r.parentNode;return r&&"TABLE"==r.tagName?e(r):e([])}return e([])}return{_init:function(){if(!t.$wp)return!1;if(!t.helpers.isMobile()){l=i=o=!1,t.events.$on(t.$el,"mousedown",M),t.popups.onShow("image.edit",function(){S(),i=o=!1}),t.popups.onShow("link.edit",function(){S(),i=o=!1}),t.events.on("commands.mousedown",function(e){0<e.parents(".fr-toolbar").length&&S()}),t.events.$on(t.$el,"mouseenter","th, td",L),t.events.$on(t.$win,"mouseup",j),t.opts.iframe&&t.events.$on(e(t.o_win),"mouseup",j),t.events.$on(t.$win,"mousemove",Y),t.events.$on(e(t.o_win),"scroll",H),t.events.on("contentChanged",function(){0<X().length&&(c(),t.$el.find("img").on("load.selected-cells",function(){e(this).off("load.selected-cells"),0<X().length&&c()}))}),t.events.$on(e(t.o_win),"resize",function(){S()}),t.events.on("toolbar.esc",function(){if(0<X().length)return t.events.disableBlur(),t.events.focus(),!1},!0),t.events.$on(e(t.o_win),"keydown",function(){o&&i&&(i=o=!1,t.$el.removeClass("fr-no-selection"),t.edit.on(),t.selection.setAtEnd(t.$el.find(".fr-selected-cell:last").get(0)),t.selection.restore(),S())}),t.events.$on(t.$el,"keydown",function(n){n.shiftKey?!1===function(n){var r=X();if(0<r.length){var i,o,a=w(),s=n.which;1==r.length?o=i=r[0]:(i=t.el.querySelector(".fr-cell-fixed"),o=t.el.querySelector(".fr-cell-handler"));var l=E(o,a);if(e.FE.KEYCODE.ARROW_RIGHT==s){if(l.col<a[0].length-1)return A(i,a[l.row][l.col+1]),!1}else if(e.FE.KEYCODE.ARROW_DOWN==s){if(l.row<a.length-1)return A(i,a[l.row+1][l.col]),!1}else if(e.FE.KEYCODE.ARROW_LEFT==s){if(0<l.col)return A(i,a[l.row][l.col-1]),!1}else if(e.FE.KEYCODE.ARROW_UP==s&&0<l.row)return A(i,a[l.row-1][l.col]),!1}}(n)&&setTimeout(function(){c()},0):function(n){var r=n.which,i=t.selection.blocks();if(i.length&&("TD"==(i=i[0]).tagName||"TH"==i.tagName)){for(var o=i;o&&"TABLE"!=o.tagName&&o.parentNode!=t.el;)o=o.parentNode;if(o&&"TABLE"==o.tagName&&(e.FE.KEYCODE.ARROW_LEFT==r||e.FE.KEYCODE.ARROW_UP==r||e.FE.KEYCODE.ARROW_RIGHT==r||e.FE.KEYCODE.ARROW_DOWN==r)&&(0<X().length&&I(),t.browser.webkit&&(e.FE.KEYCODE.ARROW_UP==r||e.FE.KEYCODE.ARROW_DOWN==r))){var a=t.selection.ranges(0).startContainer;if(a.nodeType==Node.TEXT_NODE&&(e.FE.KEYCODE.ARROW_UP==r&&(a.previousSibling&&"BR"!==a.previousSibling.tagName||a.previousSibling&&"BR"===a.previousSibling.tagName&&a.previousSibling.previousSibling)||e.FE.KEYCODE.ARROW_DOWN==r&&(a.nextSibling&&"BR"!==a.nextSibling.tagName||a.nextSibling&&"BR"===a.nextSibling.tagName&&a.nextSibling.nextSibling)))return;n.preventDefault(),n.stopPropagation();var s=w(e(o)),l=E(i,s);e.FE.KEYCODE.ARROW_UP==r?D(l,o,s):e.FE.KEYCODE.ARROW_DOWN==r&&R(l,o,s),t.selection.restore()}}}(n)}),t.events.on("keydown",function(n){if(!1===function(n){if(n.which==e.FE.KEYCODE.TAB){var r;if(0<X().length)r=t.$el.find(".fr-selected-cell:last");else{var i=t.selection.element();"TD"==i.tagName||"TH"==i.tagName?r=e(i):i!=t.el&&(0<e(i).parentsUntil(t.$el,"td").length?r=e(i).parents("td:first"):0<e(i).parentsUntil(t.$el,"th").length&&(r=e(i).parents("th:first")))}if(r)return n.preventDefault(),!!(0===t.selection.get().focusOffset&&0<e(t.selection.element()).parentsUntil(t.$el,"ol, ul").length&&(0<e(t.selection.element()).closest("li").prev().length||e(t.selection.element()).is("li")&&0<e(t.selection.element()).prev().length))||(I(),n.shiftKey?0<r.prev().length?V(r.prev()):0<r.closest("tr").length&&0<r.closest("tr").prev().length?V(r.closest("tr").prev().find("td:last")):0<r.closest("tbody").length&&0<r.closest("table").find("thead tr").length&&V(r.closest("table").find("thead tr th:last")):0<r.next().length?V(r.next()):0<r.closest("tr").length&&0<r.closest("tr").next().length?V(r.closest("tr").next().find("td:first")):0<r.closest("thead").length&&0<r.closest("table").find("tbody tr").length?V(r.closest("table").find("tbody tr td:first")):(r.addClass("fr-selected-cell"),m("below"),S(),V(r.closest("tr").next().find("td:first"))),t.selection.restore(),!1)}}(n))return!1;var r=X();if(0<r.length){if(0<r.length&&t.keys.ctrlKey(n)&&n.which==e.FE.KEYCODE.A)return S(),t.popups.isVisible("table.edit")&&t.popups.hide("table.edit"),r=[],!0;if(n.which==e.FE.KEYCODE.ESC&&t.popups.isVisible("table.edit"))return S(),t.popups.hide("table.edit"),n.preventDefault(),n.stopPropagation(),n.stopImmediatePropagation(),!(r=[]);if(1<r.length&&(n.which==e.FE.KEYCODE.BACKSPACE||n.which==e.FE.KEYCODE.DELETE)){t.undo.saveStep();for(var i=0;i<r.length;i++)e(r[i]).html("<br>"),i==r.length-1&&e(r[i]).prepend(e.FE.MARKERS);return t.selection.restore(),t.undo.saveStep(),!(r=[])}if(1<r.length&&n.which!=e.FE.KEYCODE.F10&&!t.keys.isBrowserAction(n))return n.preventDefault(),!(r=[])}else if(!(r=[])===function(n){if(n.altKey&&n.which==e.FE.KEYCODE.SPACE){var r,i=t.selection.element();if("TD"==i.tagName||"TH"==i.tagName?r=i:0<e(i).closest("td").length?r=e(i).closest("td").get(0):0<e(i).closest("th").length&&(r=e(i).closest("th").get(0)),r)return n.preventDefault(),A(r,r),c(),!1}}(n))return!1},!0);var n=[];t.events.on("html.beforeGet",function(){n=X();for(var e=0;e<n.length;e++)n[e].className=(n[e].className||"").replace(/fr-selected-cell/g,"")}),t.events.on("html.afterGet",function(){for(var e=0;e<n.length;e++)n[e].className=(n[e].className?n[e].className.trim()+" ":"")+"fr-selected-cell";n=[]}),d(!0),p(!0)}t.events.on("destroy",G)},insert:function(n,r){var i,o,a="<table "+(t.opts.tableDefaultWidth?'style="width: '+t.opts.tableDefaultWidth+';" ':"")+'class="fr-inserted-table"><tbody>',s=100/r;for(i=0;i<n;i++){for(a+="<tr>",o=0;o<r;o++)a+="<td"+(t.opts.tableDefaultWidth?' style="width: '+s.toFixed(4)+'%;"':"")+">",0===i&&0===o&&(a+=e.FE.MARKERS),a+="<br></td>";a+="</tr>"}a+="</tbody></table>",t.html.insert(a),t.selection.restore();var l=t.$el.find(".fr-inserted-table");l.removeClass("fr-inserted-table"),t.events.trigger("table.inserted",[l.get(0)])},remove:h,insertRow:m,deleteRow:function(){var n=Q();if(0<n.length){var r,i,o,a=w(),s=C(a);if(0===s.min_i&&s.max_i==a.length-1)h();else{for(r=s.max_i;r>=s.min_i;r--){for(o=e(n.find("tr").not(n.find("table tr")).get(r)),i=0;i<a[r].length;i++)if(0===i||a[r][i]!=a[r][i-1]){var l=e(a[r][i]);if(1<parseInt(l.attr("rowspan"),10)){var c=parseInt(l.attr("rowspan"),10)-1;1==c?l.removeAttr("rowspan"):l.attr("rowspan",c)}if(r<a.length-1&&a[r][i]==a[r+1][i]&&(0===r||a[r][i]!=a[r-1][i])){for(var u=a[r][i],d=i;0<d&&a[r][d]==a[r][d-1];)d--;0===d?e(n.find("tr").not(n.find("table tr")).get(r+1)).prepend(u):e(a[r+1][d-1]).after(u)}}var f=o.parent();o.remove(),0===f.find("tr").length&&f.remove(),a=w(n)}b(0,a.length-1,0,a[0].length-1,n),0<s.min_i?t.selection.setAtEnd(a[s.min_i-1][0]):t.selection.setAtEnd(a[0][0]),t.selection.restore(),t.popups.hide("table.edit")}}},insertColumn:function(n){var r=Q();if(0<r.length){var i,o=w(),a=C(o);i="before"==n?a.min_j:a.max_j;var s,l=100/o[0].length,u=100/(o[0].length+1);r.find("th, td").each(function(){(s=e(this)).data("old-width",s.outerWidth()/r.outerWidth()*100)}),r.find("tr").not(r.find("table tr")).each(function(t){for(var r,a=e(this),s=0,c=0;s-1<i;){if(!(r=a.find("> th, > td").get(c))){r=null;break}r==o[t][s]?(s+=parseInt(e(r).attr("colspan"),10)||1,c++):(s+=parseInt(e(o[t][s]).attr("colspan"),10)||1,"after"==n&&(r=0===c?-1:a.find("> th, > td").get(c-1)))}var d,f=e(r);if("after"==n&&i<s-1||"before"==n&&0<i&&o[t][i]==o[t][i-1]){if(0===t||0<t&&o[t][i]!=o[t-1][i]){var p=parseInt(f.attr("colspan"),10)+1;f.attr("colspan",p),f.css("width",(f.data("old-width")*u/l+u).toFixed(4)+"%"),f.removeData("old-width")}}else d=0<a.find("th").length?'<th style="width: '+u.toFixed(4)+'%;"><br></th>':'<td style="width: '+u.toFixed(4)+'%;"><br></td>',-1==r?a.prepend(d):null==r?a.append(d):"before"==n?f.before(d):"after"==n&&f.after(d)}),r.find("th, td").each(function(){(s=e(this)).data("old-width")&&(s.css("width",(s.data("old-width")*u/l).toFixed(4)+"%"),s.removeData("old-width"))}),t.popups.isVisible("table.edit")&&c()}},deleteColumn:function(){var n=Q();if(0<n.length){var r,i,o,a=w(),s=C(a);if(0===s.min_j&&s.max_j==a[0].length-1)h();else{var l=0;for(r=0;r<a.length;r++)for(i=0;i<a[0].length;i++)(o=e(a[r][i])).hasClass("fr-selected-cell")||(o.data("old-width",o.outerWidth()/n.outerWidth()*100),(i<s.min_j||i>s.max_j)&&(l+=o.outerWidth()/n.outerWidth()*100));for(l/=a.length,i=s.max_j;i>=s.min_j;i--)for(r=0;r<a.length;r++)if(0===r||a[r][i]!=a[r-1][i])if(o=e(a[r][i]),1<(parseInt(o.attr("colspan"),10)||1)){var c=parseInt(o.attr("colspan"),10)-1;1==c?o.removeAttr("colspan"):o.attr("colspan",c),o.css("width",(100*(o.data("old-width")-W(i,a))/l).toFixed(4)+"%"),o.removeData("old-width")}else{var u=e(o.parent().get(0));o.remove(),0===u.find("> th, > td").length&&(0===u.prev().length||0===u.next().length||u.prev().find("> th[rowspan], > td[rowspan]").length<u.prev().find("> th, > td").length)&&u.remove()}b(0,a.length-1,0,a[0].length-1,n),0<s.min_j?t.selection.setAtEnd(a[s.min_i][s.min_j-1]):t.selection.setAtEnd(a[s.min_i][0]),t.selection.restore(),t.popups.hide("table.edit"),n.find("th, td").each(function(){(o=e(this)).data("old-width")&&(o.css("width",(100*o.data("old-width")/l).toFixed(4)+"%"),o.removeData("old-width"))})}}},mergeCells:function(){if(1<X().length&&(0===t.$el.find("th.fr-selected-cell").length||0===t.$el.find("td.fr-selected-cell").length)){x();var n,r,i=C(w()),o=t.$el.find(".fr-selected-cell"),a=e(o[0]),s=a.parent().find(".fr-selected-cell"),l=a.closest("table"),u=a.html(),d=0;for(n=0;n<s.length;n++)d+=e(s[n]).outerWidth();for(a.css("width",Math.min(100,d/l.outerWidth()*100).toFixed(4)+"%"),i.min_j<i.max_j&&a.attr("colspan",i.max_j-i.min_j+1),i.min_i<i.max_i&&a.attr("rowspan",i.max_i-i.min_i+1),n=1;n<o.length;n++)"<br>"!=(r=e(o[n])).html()&&""!==r.html()&&(u+="<br>"+r.html()),r.remove();a.html(u),t.selection.setAtEnd(a.get(0)),t.selection.restore(),t.toolbar.enable(),v(i.min_i,i.max_i,l);var f=l.find("tr:empty");for(n=f.length-1;0<=n;n--)e(f[n]).remove();g(i.min_j,i.max_j,l),c()}},splitCellVertically:function(){if(1==X().length){var n=t.$el.find(".fr-selected-cell"),r=parseInt(n.attr("colspan"),10)||1,i=n.parent().outerWidth(),o=n.outerWidth(),a=n.clone().html("<br>"),s=w(),l=E(n.get(0),s);if(1<r){var c=Math.ceil(r/2);o=$(l.col,l.col+c-1,s)/i*100;var u=$(l.col+c,l.col+r-1,s)/i*100;1<c?n.attr("colspan",c):n.removeAttr("colspan"),1<r-c?a.attr("colspan",r-c):a.removeAttr("colspan"),n.css("width",o.toFixed(4)+"%"),a.css("width",u.toFixed(4)+"%")}else{var d;for(d=0;d<s.length;d++)if(0===d||s[d][l.col]!=s[d-1][l.col]){var f=e(s[d][l.col]);if(!f.is(n)){var p=(parseInt(f.attr("colspan"),10)||1)+1;f.attr("colspan",p)}}o=o/i*100/2,n.css("width",o.toFixed(4)+"%"),a.css("width",o.toFixed(4)+"%")}n.after(a),S(),t.popups.hide("table.edit")}},splitCellHorizontally:function(){if(1==X().length){var n=t.$el.find(".fr-selected-cell"),r=n.parent(),i=n.closest("table"),o=parseInt(n.attr("rowspan"),10),a=w(),s=E(n.get(0),a),l=n.clone().html("<br>");if(1<o){var c=Math.ceil(o/2);1<c?n.attr("rowspan",c):n.removeAttr("rowspan"),1<o-c?l.attr("rowspan",o-c):l.removeAttr("rowspan");for(var u=s.row+c,d=0===s.col?s.col:s.col-1;0<=d&&(a[u][d]==a[u][d-1]||0<u&&a[u][d]==a[u-1][d]);)d--;-1==d?e(i.find("tr").not(i.find("table tr")).get(u)).prepend(l):e(a[u][d]).after(l)}else{var f,p=e("<tr>").append(l);for(f=0;f<a[0].length;f++)if(0===f||a[s.row][f]!=a[s.row][f-1]){var h=e(a[s.row][f]);h.is(n)||h.attr("rowspan",(parseInt(h.attr("rowspan"),10)||1)+1)}r.after(p)}S(),t.popups.hide("table.edit")}},addHeader:function(){var t=Q();if(0<t.length&&0===t.find("th").length){var n,r="<thead><tr>",i=0;for(t.find("tr:first > td").each(function(){var t=e(this);i+=parseInt(t.attr("colspan"),10)||1}),n=0;n<i;n++)r+="<th><br></th>";r+="</tr></thead>",t.prepend(r),c()}},removeHeader:function(){var e=Q(),n=e.find("thead");if(0<n.length)if(0===e.find("tbody tr").length)h();else if(n.remove(),0<X().length)c();else{t.popups.hide("table.edit");var r=e.find("tbody tr:first td:first").get(0);r&&(t.selection.setAtEnd(r),t.selection.restore())}},setBackground:_,showInsertPopup:function(){var e=t.$tb.find('.fr-command[data-cmd="insertTable"]'),n=t.popups.get("table.insert");if(n||(n=d()),!n.hasClass("fr-active")){t.popups.refresh("table.insert"),t.popups.setContainer("table.insert",t.$tb);var r=e.offset().left+e.outerWidth()/2,i=e.offset().top+(t.opts.toolbarBottom?10:e.outerHeight()-10);t.popups.show("table.insert",r,i,e.outerHeight())}},showEditPopup:c,showColorsPopup:function n(){var r,i,o,a,s=w();if(s){var l=t.popups.get("table.colors");l||(l=function(){var r="";0<t.opts.tableColorsButtons.length&&(r='<div class="fr-buttons fr-table-colors-buttons">'+t.button.buildList(t.opts.tableColorsButtons)+"</div>");var i="";t.opts.colorsHEXInput&&(i='<div class="fr-table-colors-hex-layer fr-active fr-layer" id="fr-table-colors-hex-layer-'+t.id+'"><div class="fr-input-line"><input maxlength="7" id="fr-table-colors-hex-layer-text-'+t.id+'" type="text" placeholder="'+t.language.translate("HEX Color")+'" tabIndex="1" aria-required="true"></div><div class="fr-action-buttons"><button type="button" class="fr-command fr-submit" data-cmd="tableCellBackgroundCustomColor" tabIndex="2" role="button">'+t.language.translate("OK")+"</button></div></div>");var o,a={buttons:r,colors:function(){for(var e='<div class="fr-table-colors">',n=0;n<t.opts.tableColors.length;n++)0!==n&&n%t.opts.tableColorsStep==0&&(e+="<br>"),"REMOVE"!=t.opts.tableColors[n]?e+='<span class="fr-command" style="background: '+t.opts.tableColors[n]+';" tabIndex="-1" role="button" data-cmd="tableCellBackgroundColor" data-param1="'+t.opts.tableColors[n]+'"><span class="fr-sr-only">'+t.language.translate("Color")+" "+t.opts.tableColors[n]+"&nbsp;&nbsp;&nbsp;</span></span>":e+='<span class="fr-command" data-cmd="tableCellBackgroundColor" tabIndex="-1" role="button" data-param1="REMOVE" title="'+t.language.translate("Clear Formatting")+'">'+t.icon.create("tableColorRemove")+'<span class="fr-sr-only">'+t.language.translate("Clear Formatting")+"</span></span>";return e+="</div>"}(),custom_color:i},s=t.popups.create("table.colors",a);return t.events.$on(t.$wp,"scroll.table-colors",function(){t.popups.isVisible("table.colors")&&n()}),o=s,t.events.on("popup.tab",function(n){var r=e(n.currentTarget);if(!t.popups.isVisible("table.colors")||!r.is("span"))return!0;var i=n.which,a=!0;if(e.FE.KEYCODE.TAB==i){var s=o.find(".fr-buttons");a=!t.accessibility.focusToolbar(s,!!n.shiftKey)}else if(e.FE.KEYCODE.ARROW_UP==i||e.FE.KEYCODE.ARROW_DOWN==i||e.FE.KEYCODE.ARROW_LEFT==i||e.FE.KEYCODE.ARROW_RIGHT==i){var l=r.parent().find("span.fr-command"),c=l.index(r),u=t.opts.colorsStep,d=Math.floor(l.length/u),f=c%u,p=Math.floor(c/u),h=p*u+f,m=d*u;e.FE.KEYCODE.ARROW_UP==i?h=((h-u)%m+m)%m:e.FE.KEYCODE.ARROW_DOWN==i?h=(h+u)%m:e.FE.KEYCODE.ARROW_LEFT==i?h=((h-1)%m+m)%m:e.FE.KEYCODE.ARROW_RIGHT==i&&(h=(h+1)%m);var g=e(l.get(h));t.events.disableBlur(),g.focus(),a=!1}else e.FE.KEYCODE.ENTER==i&&(t.button.exec(r),a=!1);return!1===a&&(n.preventDefault(),n.stopPropagation()),a},!0),s}()),t.popups.setContainer("table.colors",t.$sc);var c=O(s),u=(c.left+c.right)/2,d=c.bottom;r=t.popups.get("table.colors"),i=t.$el.find(".fr-selected-cell:first"),o=t.helpers.RGBToHex(i.css("background-color")),a=r.find(".fr-table-colors-hex-layer input"),r.find(".fr-selected-color").removeClass("fr-selected-color fr-active-item"),r.find('span[data-param1="'+o+'"]').addClass("fr-selected-color fr-active-item"),a.val(o).trigger("change"),t.popups.show("table.colors",u,d,c.bottom-c.top)}},back:function(){0<X().length?c():(t.popups.hide("table.insert"),t.toolbar.showInline())},verticalAlign:function(e){t.$el.find(".fr-selected-cell").css("vertical-align",e)},horizontalAlign:function(e){t.$el.find(".fr-selected-cell").css("text-align",e)},applyStyle:function(e,t,n,r){if(0<t.length){if(!n){var i=Object.keys(r);i.splice(i.indexOf(e),1),t.removeClass(i.join(" "))}t.toggleClass(e)}},selectedTable:Q,selectedCells:X,customColor:function(){var e=t.popups.get("table.colors").find(".fr-table-colors-hex-layer input");e.length&&_(e.val())},selectCells:A}},e.FE.DefineIcon("insertTable",{NAME:"table"}),e.FE.RegisterCommand("insertTable",{title:"Insert Table",undo:!1,focus:!0,refreshOnCallback:!1,popup:!0,callback:function(){this.popups.isVisible("table.insert")?(this.$el.find(".fr-marker").length&&(this.events.disableBlur(),this.selection.restore()),this.popups.hide("table.insert")):this.table.showInsertPopup()},plugin:"table"}),e.FE.RegisterCommand("tableInsert",{callback:function(e,t,n){this.table.insert(t,n),this.popups.hide("table.insert")}}),e.FE.DefineIcon("tableHeader",{NAME:"header",FA5NAME:"heading"}),e.FE.RegisterCommand("tableHeader",{title:"Table Header",focus:!1,toggle:!0,callback:function(){this.popups.get("table.edit").find('.fr-command[data-cmd="tableHeader"]').hasClass("fr-active")?this.table.removeHeader():this.table.addHeader()},refresh:function(e){var t=this.table.selectedTable();0<t.length&&(0===t.find("th").length?e.removeClass("fr-active").attr("aria-pressed",!1):e.addClass("fr-active").attr("aria-pressed",!0))}}),e.FE.DefineIcon("tableRows",{NAME:"bars"}),e.FE.RegisterCommand("tableRows",{type:"dropdown",focus:!1,title:"Row",options:{above:"Insert row above",below:"Insert row below",delete:"Delete row"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableRows.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableRows" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"above"==t||"below"==t?this.table.insertRow(t):this.table.deleteRow()}}),e.FE.DefineIcon("tableColumns",{NAME:"bars fa-rotate-90"}),e.FE.RegisterCommand("tableColumns",{type:"dropdown",focus:!1,title:"Column",options:{before:"Insert column before",after:"Insert column after",delete:"Delete column"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableColumns.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableColumns" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"before"==t||"after"==t?this.table.insertColumn(t):this.table.deleteColumn()}}),e.FE.DefineIcon("tableCells",{NAME:"square-o",FA5NAME:"square"}),e.FE.RegisterCommand("tableCells",{type:"dropdown",focus:!1,title:"Cell",options:{merge:"Merge cells","vertical-split":"Vertical split","horizontal-split":"Horizontal split"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCells.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCells" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(n[r])+"</a></li>");return t+="</ul>"},callback:function(e,t){"merge"==t?this.table.mergeCells():"vertical-split"==t?this.table.splitCellVertically():this.table.splitCellHorizontally()},refreshOnShow:function(e,t){1<this.$el.find(".fr-selected-cell").length?(t.find('a[data-param1="vertical-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="horizontal-split"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="merge"]').removeClass("fr-disabled").attr("aria-disabled",!1)):(t.find('a[data-param1="merge"]').addClass("fr-disabled").attr("aria-disabled",!0),t.find('a[data-param1="vertical-split"]').removeClass("fr-disabled").attr("aria-disabled",!1),t.find('a[data-param1="horizontal-split"]').removeClass("fr-disabled").attr("aria-disabled",!1))}}),e.FE.DefineIcon("tableRemove",{NAME:"trash"}),e.FE.RegisterCommand("tableRemove",{title:"Remove Table",focus:!1,callback:function(){this.table.remove()}}),e.FE.DefineIcon("tableStyle",{NAME:"paint-brush"}),e.FE.RegisterCommand("tableStyle",{title:"Table Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableStyle" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell").closest("table"),this.opts.tableMultipleStyles,this.opts.tableStyles)},refreshOnShow:function(t,n){var r=this.$el.find(".fr-selected-cell").closest("table");r&&n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}),e.FE.DefineIcon("tableCellBackground",{NAME:"tint"}),e.FE.RegisterCommand("tableCellBackground",{title:"Cell Background",focus:!1,popup:!0,callback:function(){this.table.showColorsPopup()}}),e.FE.RegisterCommand("tableCellBackgroundColor",{undo:!0,focus:!1,callback:function(e,t){this.table.setBackground(t)}}),e.FE.DefineIcon("tableBack",{NAME:"arrow-left"}),e.FE.RegisterCommand("tableBack",{title:"Back",undo:!1,focus:!1,back:!0,callback:function(){this.table.back()},refresh:function(e){0!==this.table.selectedCells().length||this.opts.toolbarInline?(e.removeClass("fr-hidden"),e.next(".fr-separator").removeClass("fr-hidden")):(e.addClass("fr-hidden"),e.next(".fr-separator").addClass("fr-hidden"))}}),e.FE.DefineIcon("tableCellVerticalAlign",{NAME:"arrows-v",FA5NAME:"arrows-alt-v"}),e.FE.RegisterCommand("tableCellVerticalAlign",{type:"dropdown",focus:!1,title:"Vertical Align",options:{Top:"Align Top",Middle:"Align Middle",Bottom:"Align Bottom"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCellVerticalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellVerticalAlign" data-param1="'+r.toLowerCase()+'" title="'+this.language.translate(n[r])+'">'+this.language.translate(r)+"</a></li>");return t+="</ul>"},callback:function(e,t){this.table.verticalAlign(t)},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.$el.find(".fr-selected-cell").css("vertical-align")+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellHorizontalAlign",{NAME:"align-left"}),e.FE.DefineIcon("align-left",{NAME:"align-left"}),e.FE.DefineIcon("align-right",{NAME:"align-right"}),e.FE.DefineIcon("align-center",{NAME:"align-center"}),e.FE.DefineIcon("align-justify",{NAME:"align-justify"}),e.FE.RegisterCommand("tableCellHorizontalAlign",{type:"dropdown",focus:!1,title:"Horizontal Align",options:{left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},html:function(){var t='<ul class="fr-dropdown-list" role="presentation">',n=e.FE.COMMANDS.tableCellHorizontalAlign.options;for(var r in n)n.hasOwnProperty(r)&&(t+='<li role="presentation"><a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="tableCellHorizontalAlign" data-param1="'+r+'" title="'+this.language.translate(n[r])+'">'+this.icon.create("align-"+r)+'<span class="fr-sr-only">'+this.language.translate(n[r])+"</span></a></li>");return t+="</ul>"},callback:function(e,t){this.table.horizontalAlign(t)},refresh:function(t){var n=this.table.selectedCells();n.length&&t.find("> *:first").replaceWith(this.icon.create("align-"+this.helpers.getAlignment(e(n[0]))))},refreshOnShow:function(e,t){t.find('.fr-command[data-param1="'+this.helpers.getAlignment(this.$el.find(".fr-selected-cell:first"))+'"]').addClass("fr-active").attr("aria-selected",!0)}}),e.FE.DefineIcon("tableCellStyle",{NAME:"magic"}),e.FE.RegisterCommand("tableCellStyle",{title:"Cell Style",type:"dropdown",focus:!1,html:function(){var e='<ul class="fr-dropdown-list" role="presentation">',t=this.opts.tableCellStyles;for(var n in t)t.hasOwnProperty(n)&&(e+='<li role="presentation"><a class="fr-command" tabIndex="-1" role="option" data-cmd="tableCellStyle" data-param1="'+n+'" title="'+this.language.translate(t[n])+'">'+this.language.translate(t[n])+"</a></li>");return e+="</ul>"},callback:function(e,t){this.table.applyStyle(t,this.$el.find(".fr-selected-cell"),this.opts.tableCellMultipleStyles,this.opts.tableCellStyles)},refreshOnShow:function(t,n){var r=this.$el.find(".fr-selected-cell:first");r&&n.find(".fr-command").each(function(){var t=e(this).data("param1"),n=r.hasClass(t);e(this).toggleClass("fr-active",n).attr("aria-selected",n)})}}),e.FE.RegisterCommand("tableCellBackgroundCustomColor",{title:"OK",undo:!0,callback:function(){this.table.customColor()}}),e.FE.DefineIcon("tableColorRemove",{NAME:"eraser"})})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.FE.URLRegEx="(^| |\\u00A0)("+e.FE.LinkRegEx+"|([a-z0-9+-_.]{1,}@[a-z0-9+-_.]{1,}\\.[a-z0-9+-_]{1,}))$",e.FE.PLUGINS.url=function(t){var n=null;function r(e,r,i){for(var o="";i.length&&"."==i[i.length-1];)o+=".",i=i.substring(0,i.length-1);var a=i;if(t.opts.linkConvertEmailAddress)t.helpers.isEmail(a)&&!/^mailto:.*/i.test(a)&&(a="mailto:"+a);else if(t.helpers.isEmail(a))return r+i;return/^((http|https|ftp|ftps|mailto|tel|sms|notes|data)\:)/i.test(a)||(a="//"+a),(r||"")+"<a"+(t.opts.linkAlwaysBlank?' target="_blank"':"")+(n?' rel="'+n+'"':"")+' data-fr-linked="true" href="'+a+'">'+i.replace(/&amp;/g,"&").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")+"</a>"+o}function i(){return new RegExp(e.FE.URLRegEx,"gi")}function o(e){return t.opts.linkAlwaysNoFollow&&(n="nofollow"),t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),e.replace(i(),r)}function a(e){var t=e.split(" ");return t[t.length-1]}function s(){var n=t.selection.ranges(0),r=n.startContainer;if(!r||r.nodeType!==Node.TEXT_NODE||n.startOffset!==(r.textContent||"").length)return!1;if(function e(n){return!!n&&("A"===n.tagName||!(!n.parentNode||n.parentNode==t.el)&&e(n.parentNode))}(r))return!1;if(i().test(a(r.textContent))){e(r).before(o(r.textContent));var s=e(r.parentNode).find("a[data-fr-linked]");s.removeAttr("data-fr-linked"),r.parentNode.removeChild(r),t.events.trigger("url.linked",[s.get(0)])}else if(r.textContent.split(" ").length<=2&&r.previousSibling&&"A"===r.previousSibling.tagName){var l=r.previousSibling.innerText+r.textContent;i().test(a(l))&&(e(r.previousSibling).replaceWith(o(l)),r.parentNode.removeChild(r))}}return{_init:function(){t.events.on("keypress",function(e){!t.selection.isCollapsed()||"."!=e.key&&")"!=e.key&&"("!=e.key||s()},!0),t.events.on("keydown",function(n){var r=n.which;!t.selection.isCollapsed()||r!=e.FE.KEYCODE.ENTER&&r!=e.FE.KEYCODE.SPACE||s()},!0),t.events.on("paste.beforeCleanup",function(e){if(t.helpers.isURL(e)){var n=null;return t.opts.linkAlwaysBlank&&(t.opts.linkNoOpener&&(n?n+=" noopener":n="noopener"),t.opts.linkNoReferrer&&(n?n+=" noreferrer":n="noreferrer")),"<a"+(t.opts.linkAlwaysBlank?' target="_blank"':"")+(n?' rel="'+n+'"':"")+' href="'+e+'" >'+e+"</a>"}})}}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i,o;
/*!
 * froala_editor v2.9.5 (https://www.froala.com/wysiwyg-editor)
 * License https://froala.com/wysiwyg-editor/terms/
 * Copyright 2014-2019 Froala Labs
 */i=[n(54)],void 0===(o="function"==typeof(r=function(e){e.extend(e.FE.DEFAULTS,{wordDeniedTags:[],wordDeniedAttrs:[],wordAllowedStyleProps:["font-family","font-size","background","color","width","text-align","vertical-align","background-color","padding","margin","height","margin-top","margin-left","margin-right","margin-bottom","text-decoration","font-weight","font-style","text-indent","border","border-.*","line-height"],wordPasteModal:!0,wordPasteKeepFormatting:!0}),e.FE.PLUGINS.wordPaste=function(t){var n,r,i="word_paste";function o(n){var o=t.opts.wordAllowedStyleProps;n||(t.opts.wordAllowedStyleProps=[]),0===r.indexOf("<colgroup>")&&(r="<table>"+r+"</table>"),r=function(n,r){0<=n.indexOf("<html")&&(n=n.replace(/[.\s\S\w\W<>]*(<html[^>]*>[.\s\S\w\W<>]*<\/html>)[.\s\S\w\W<>]*/i,"$1")),function(e){for(var t=e.split("v:shape"),n=1;n<t.length;n++){var r=t[n],i=r.split(' id="')[1];if(i&&1<i.length){i=i.split('"')[0];var o=r.split(' o:spid="')[1];o&&1<o.length&&(o=o.split('"')[0],v[i]=o)}}}(n);var i=(new DOMParser).parseFromString(n,"text/html"),o=i.head,d=i.body,p=function(e){var t={},n=e.getElementsByTagName("style");if(n.length){var r=n[0],i=r.innerHTML.match(/[\S ]+\s+{[\s\S]+?}/gi);if(i)for(var o=0;o<i.length;o++){var a=i[o],s=a.replace(/([\S ]+\s+){[\s\S]+?}/gi,"$1"),l=a.replace(/[\S ]+\s+{([\s\S]+?)}/gi,"$1");s=s.replace(/^[\s]|[\s]$/gm,""),l=l.replace(/^[\s]|[\s]$/gm,""),s=s.replace(/\n|\r|\n\r/g,""),l=l.replace(/\n|\r|\n\r/g,"");for(var c=s.split(", "),u=0;u<c.length;u++)t[c[u]]=l}}return t}(o);s(d,function(t){if(t.nodeType==Node.TEXT_NODE&&/\n|\u00a0|\r/.test(t.data)){if(!/\S| /.test(t.data)&&!/[\u00a0]+/.test(t.data))return t.data==e.FE.UNICODE_NBSP?(t.data="​",!0):1==t.data.length&&10==t.data.charCodeAt(0)?(t.data=" ",!0):(a(t),!1);t.data=t.data.replace(/\n|\r/gi," ")}return!0}),s(d,function(n){return n.nodeType!=Node.ELEMENT_NODE||"V:IMAGEDATA"!=n.tagName&&"IMG"!=n.tagName||function(n,r){if(r){var i;if("IMG"==n.tagName){var o=n.getAttribute("src");if(!o||-1==o.indexOf("file://"))return;if(0===o.indexOf("file://")&&t.helpers.isURL(n.getAttribute("alt")))return n.setAttribute("src",n.getAttribute("alt"));(i=v[n.getAttribute("v:shapes")])||(i=n.getAttribute("v:shapes"),n.parentNode&&n.parentNode.parentNode&&0<=n.parentNode.parentNode.innerHTML.indexOf("msEquation")&&(i=null))}else i=n.parentNode.getAttribute("o:spid");if(n.removeAttribute("height"),i){var a;h={},m(a=r,"i","\\shppict"),m(a,"s","\\shp{");var s=h[i.substring(7)];if(s){var l=function(e){for(var t=e.match(/[0-9a-f]{2}/gi),n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(parseInt(t[r],16)));var i=n.join("");return btoa(i)}(s.image_hex),c="data:"+s.image_type+";base64,"+l;"IMG"===n.tagName?(n.src=c,n.setAttribute("data-fr-image-pasted",!0)):e(n.parentNode).before('<img data-fr-image-pasted="true" src="'+c+'" style="'+n.parentNode.getAttribute("style")+'">').remove()}}}}(n,r),!0});for(var y=d.querySelectorAll("ul > ul, ul > ol, ol > ul, ol > ol"),b=y.length-1;0<=b;b--)y[b].previousElementSibling&&"LI"===y[b].previousElementSibling.tagName&&y[b].previousElementSibling.appendChild(y[b]);s(d,function(e){if(e.nodeType==Node.TEXT_NODE)return e.data=e.data.replace(/<br>(\n|\r)/gi,"<br>"),!1;if(e.nodeType==Node.ELEMENT_NODE){if(l(e)){var t=e.parentNode,n=e.previousSibling,r=function e(t,n,r){var i,o,a,s,u,d=/[0-9a-zA-Z]./gi,f=!1,p=t.querySelector('span[style="mso-list:Ignore"]');p&&(f=f||d.test(p.textContent));for(var h=f?"ol":"ul",m="<"+h+">";t;){if(!l(t)){if(t.outerHTML&&0<t.outerHTML.indexOf("mso-bookmark")&&0===(t.textContent||"").length){t=t.nextElementSibling;continue}break}var g=t.getAttribute("style").replace(/\n/gi,"").replace(/.*level([0-9]+?).*/gi,"$1");if((r=r||g)<g)u=e(t,n,g),m+=u.el.outerHTML,t=u.currentNode;else{if(g<r)break;t.firstElementChild&&t.firstElementChild.firstElementChild&&t.firstElementChild.firstElementChild.firstChild&&(d.lastIndex=0,o=d.test(t.firstElementChild.firstElementChild.firstChild.data||"")),i&&i.firstElementChild&&i.firstElementChild.firstElementChild&&i.firstElementChild.firstElementChild.firstChild&&(d.lastIndex=0,a=d.test(i.firstElementChild.firstElementChild.firstChild.data||"")),void 0===a||a===o?(s=c(t,n),m+="<li>"+s+"</li>"):(u=e(t,n,g),m+=u.el.outerHTML,t=u.currentNode);var v=t&&t.nextElementSibling;v&&(i=v.previousElementSibling),t&&t.parentNode&&t.parentNode.removeChild(t),t=v}}m+="</"+h+">";var y=document.createElement("div");y.innerHTML=m;var b=y.firstElementChild;return{el:b,currentNode:t}}(e,p).el,i=null;return(i=n?n.nextSibling:t.firstChild)?t.insertBefore(r,i):t.appendChild(r),!1}return"FONT"===e.tagName&&p["."+e.getAttribute("class")]&&(e=u(e,"span")),g(e,p)}if(e.nodeType==Node.COMMENT_NODE){if(-1<e.data.indexOf("[if !supportLineBreakNewLine]"))for(var o=e.nextSibling;o;)(o=e.nextSibling)&&a(o),o.data&&-1<o.data.indexOf("[endif]")&&(o=null);return a(e),!1}return!0}),s(d,function(e){if(e.nodeType==Node.ELEMENT_NODE){var t=e.tagName;if(!e.innerHTML&&-1==["BR","IMG"].indexOf(t)){for(var n=e.parentNode;n&&(a(e),!(e=n).innerHTML);)n=e.parentNode;return!1}!function(e){var t=e.getAttribute("style");if(t){(t=f(t))&&";"!=t.slice(-1)&&(t+=";");var n=t.match(/(^|\S+?):.+?;{1,1}/gi);if(n){for(var r={},i=0;i<n.length;i++){var o=n[i],a=o.split(":");2==a.length&&("text-align"==a[0]&&"SPAN"==e.tagName||(r[a[0]]=a[1]))}var s="";for(var l in r)if(r.hasOwnProperty(l)){if("font-size"==l&&"pt;"==r[l].slice(-3)){var c=null;try{c=parseFloat(r[l].slice(0,-3),10)}catch(e){}c&&(c=Math.round(1.33*c),r[l]=c+"px;")}s+=l+":"+r[l]}s&&e.setAttribute("style",s)}}}(e)}return!0}),s(d,function(e){if(e&&"A"===e.nodeName&&""===e.href){for(var t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)}return!0});var _=d.outerHTML,w=t.opts.htmlAllowedStyleProps;return t.opts.htmlAllowedStyleProps=t.opts.wordAllowedStyleProps,_=t.clean.html(_,t.opts.wordDeniedTags,t.opts.wordDeniedAttrs,!1),t.opts.htmlAllowedStyleProps=w,_}(r=r.replace(/<span[\n\r ]*style='mso-spacerun:yes'>([\r\n\u00a0 ]*)<\/span>/g,function(e,t){for(var n="",r=0;r++<t.length;)n+="&nbsp;";return n}),t.paste.getRtfClipboard());var d=t.doc.createElement("DIV");d.innerHTML=r,t.html.cleanBlankSpaces(d),r=d.innerHTML,r=(r=t.paste.cleanEmptyTagsAndDivs(r)).replace(/\u200b/g,""),t.modals.hide(i),t.paste.clean(r,!0,!0),t.opts.wordAllowedStyleProps=o}function a(e){e.parentNode&&e.parentNode.removeChild(e)}function s(e,t){if(t(e))for(var n=e.firstChild;n;){var r=n,i=n.previousSibling;n=n.nextSibling,s(r,t),r.previousSibling||r.nextSibling||r.parentNode||!n||i==n.previousSibling||!n.parentNode?r.previousSibling||r.nextSibling||r.parentNode||!n||n.previousSibling||n.nextSibling||n.parentNode||(i?n=i.nextSibling?i.nextSibling.nextSibling:null:e.firstChild&&(n=e.firstChild.nextSibling)):n=i?i.nextSibling:e.firstChild}}function l(e){if(!e.getAttribute("style")||!/mso-list:[\s]*l/gi.test(e.getAttribute("style").replace(/\n/gi,"")))return!1;try{if(!e.querySelector('[style="mso-list:Ignore"]'))return!!(e.outerHTML&&0<=e.outerHTML.indexOf("\x3c!--[if !supportLists]--\x3e"))}catch(e){return!1}return!0}function c(e,n){var r=e.cloneNode(!0);if(-1!=["H1","H2","H3","H4","H5","H6"].indexOf(e.tagName)){var i=document.createElement(e.tagName.toLowerCase());i.setAttribute("style",e.getAttribute("style")),i.innerHTML=r.innerHTML,r.innerHTML=i.outerHTML}s(r,function(e){if(e.nodeType==Node.COMMENT_NODE&&(t.browser.msie||t.browser.safari||t.browser.edge))try{if("[if !supportLists]"===e.data){for(e=e.nextSibling;e&&e.nodeType!==Node.COMMENT_NODE;){var i=e.nextSibling;e.parentNode.removeChild(e),e=i}e&&e.nodeType==Node.COMMENT_NODE&&e.parentNode.removeChild(e)}}catch(e){}var o,a;return e.nodeType==Node.ELEMENT_NODE&&("mso-list:Ignore"==e.getAttribute("style")&&e.parentNode.removeChild(e),e.setAttribute("style",(o="",a=r.getAttribute("style"),["line-height","font-family","font-size"].forEach(function(e){var t=a.match(new RegExp(e+":.*;"));t&&(o+=t[0]+";")}),o)),g(e,n)),!0});var o=r.innerHTML;return o=o.replace(/<!--[\s\S]*?-->/gi,"")}function u(e,t){for(var n=document.createElement(t),r=0;r<e.attributes.length;r++){var i=e.attributes[r].name;n.setAttribute(i,e.getAttribute(i))}return n.innerHTML=e.innerHTML,e.parentNode.replaceChild(n,e),n}function d(e){var t=e.getAttribute("align");t&&(e.style["text-align"]=t,e.removeAttribute("align"))}function f(e){return e.replace(/\n|\r|\n\r|&quot;/g,"")}function p(e,t,n){if(t){var r=e.getAttribute("style");r&&";"!=r.slice(-1)&&(r+=";"),t&&";"!=t.slice(-1)&&(t+=";"),t=t.replace(/\n/gi,"");var i=null;i=n?(r||"")+t:t+(r||""),e.setAttribute("style",i)}}var h=null;function m(e,t,n){for(var r=e.split(n),i=1;i<r.length;i++){var o=r[i];if(1<(o=o.split("shplid")).length){o=o[1];for(var a="",s=0;s<o.length&&"\\"!=o[s]&&"{"!=o[s]&&" "!=o[s]&&"\r"!=o[s]&&"\n"!=o[s];)a+=o[s],s++;var l=o.split("bliptag");if(l&&l.length<2)continue;var c=null;if(-1!=l[0].indexOf("pngblip")?c="image/png":-1!=l[0].indexOf("jpegblip")&&(c="image/jpeg"),!c)continue;var u,d=l[1].split("}");if(d&&d.length<2)continue;if(2<d.length&&-1!=d[0].indexOf("blipuid"))u=d[1].split(" ");else{if((u=d[0].split(" "))&&u.length<2)continue;u.shift()}var f=u.join("");h[t+a]={image_hex:f,image_type:c}}}}function g(n,r){var i=n.tagName,o=i.toLowerCase();if(n.firstElementChild&&("I"==n.firstElementChild.tagName?u(n.firstElementChild,"em"):"B"==n.firstElementChild.tagName&&u(n.firstElementChild,"strong")),-1!=["SCRIPT","APPLET","EMBED","NOFRAMES","NOSCRIPT"].indexOf(i))return a(n),!1;var s=-1,c=["META","LINK","XML","ST1:","O:","W:","FONT"];for(s=0;s<c.length;s++)if(-1!=i.indexOf(c[s]))return n.innerHTML&&(n.outerHTML=n.innerHTML),a(n),!1;if("TD"!=i){var h=n.getAttribute("class")||"MsoNormal";if(r&&h){var m=(h=f(h)).split(" ");for(s=0;s<m.length;s++){var g=[],v="."+m[s];g.push(v),v=o+v,g.push(v);for(var y=0;y<g.length;y++)r[g[y]]&&p(n,r[g[y]])}n.removeAttribute("class")}r&&r[o]&&p(n,r[o])}if(-1!=["P","H1","H2","H3","H4","H5","H6","PRE"].indexOf(i)){var b=n.getAttribute("class");if(b&&(r&&r[i.toLowerCase()+"."+b]&&p(n,r[i.toLowerCase()+"."+b]),-1!=b.toLowerCase().indexOf("mso"))){var _=f(b);(_=_.replace(/[0-9a-z-_]*mso[0-9a-z-_]*/gi,""))?n.setAttribute("class",_):n.removeAttribute("class")}var w=n.getAttribute("style");if(w){var E=w.match(/text-align:.+?[; "]{1,1}/gi);E&&E[E.length-1].replace(/(text-align:.+?[; "]{1,1})/gi,"$1")}d(n)}if("TR"==i&&function(n,r){t.node.clearAttributes(n);for(var i=n.firstElementChild,o=0,s=!1,c=null;i;){i.firstElementChild&&-1!=i.firstElementChild.tagName.indexOf("W:")&&(i.innerHTML=i.firstElementChild.innerHTML),(c=i.getAttribute("width"))||s||(s=!0),o+=parseInt(c,10),(!i.firstChild||i.firstChild&&i.firstChild.data==e.FE.UNICODE_NBSP)&&(i.firstChild&&a(i.firstChild),i.innerHTML="<br>");for(var u=i.firstElementChild,h=1==i.children.length;u;)"P"!=u.tagName||l(u)||h&&d(u),u=u.nextElementSibling;if(r){var m=i.getAttribute("class");if(m){var g=(m=f(m)).match(/xl[0-9]+/gi);if(g){var v="."+g[0];r[v]&&p(i,r[v])}}r.td&&p(i,r.td)}var y=i.getAttribute("style");y&&(y=f(y))&&";"!=y.slice(-1)&&(y+=";");var b=i.getAttribute("valign");if(!b&&y){var _=y.match(/vertical-align:.+?[; "]{1,1}/gi);_&&(b=_[_.length-1].replace(/vertical-align:(.+?)[; "]{1,1}/gi,"$1"))}var w=null;if(y){var E=y.match(/text-align:.+?[; "]{1,1}/gi);E&&(w=E[E.length-1].replace(/text-align:(.+?)[; "]{1,1}/gi,"$1")),"general"==w&&(w=null)}var k=null;if(y){var x=y.match(/background:.+?[; "]{1,1}/gi);x&&(k=x[x.length-1].replace(/background:(.+?)[; "]{1,1}/gi,"$1"))}var S=i.getAttribute("colspan"),T=i.getAttribute("rowspan");S&&i.setAttribute("colspan",S),T&&i.setAttribute("rowspan",T),b&&(i.style["vertical-align"]=b),w&&(i.style["text-align"]=w),k&&(i.style["background-color"]=k),c&&i.setAttribute("width",c),i=i.nextElementSibling}for(i=n.firstElementChild;i;)c=i.getAttribute("width"),s?i.removeAttribute("width"):i.setAttribute("width",100*parseInt(c,10)/o+"%"),i=i.nextElementSibling}(n,r),"A"!=i||n.attributes.getNamedItem("href")||n.attributes.getNamedItem("name")||!n.innerHTML||(n.outerHTML=n.innerHTML),"A"==i&&n.getAttribute("href")&&n.querySelector("img")){var k=n.querySelectorAll("span");for(s=0;s<k.length;s++)k[s].innerText||(k[s].outerHTML=k[s].innerHTML)}if("TD"!=i&&"TH"!=i||n.innerHTML||(n.innerHTML="<br>"),"TABLE"==i&&(n.style.width=n.style.width||"100%"),n.getAttribute("lang")&&n.removeAttribute("lang"),n.getAttribute("style")&&-1!=n.getAttribute("style").toLowerCase().indexOf("mso")){var x=f(n.getAttribute("style"));(x=x.replace(/[0-9a-z-_]*mso[0-9a-z-_]*:.+?(;{1,1}|$)/gi,""))?n.setAttribute("style",x):n.removeAttribute("style")}return!0}var v={};return{_init:function(){t.events.on("paste.wordPaste",function(a){return r=a,t.opts.wordPasteModal?function(){if(!n){var r='<h4><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74.95 73.23" style="height: 25px; vertical-align: text-bottom; margin-right: 5px; display: inline-block"><defs><style>.a{fill:#2a5699;}.b{fill:#fff;}</style></defs><path class="a" d="M615.15,827.22h5.09V834c9.11.05,18.21-.09,27.32.05a2.93,2.93,0,0,1,3.29,3.25c.14,16.77,0,33.56.09,50.33-.09,1.72.17,3.63-.83,5.15-1.24.89-2.85.78-4.3.84-8.52,0-17,0-25.56,0v6.81h-5.32c-13-2.37-26-4.54-38.94-6.81q0-29.8,0-59.59c13.05-2.28,26.11-4.5,39.17-6.83Z" transform="translate(-575.97 -827.22)"/><path class="b" d="M620.24,836.59h28.1v54.49h-28.1v-6.81h22.14v-3.41H620.24v-4.26h22.14V873.2H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24v-4.26h22.14v-3.41H620.24V846h22.14v-3.41H620.24Zm-26.67,15c1.62-.09,3.24-.16,4.85-.25,1.13,5.75,2.29,11.49,3.52,17.21,1-5.91,2-11.8,3.06-17.7,1.7-.06,3.41-.15,5.1-.26-1.92,8.25-3.61,16.57-5.71,24.77-1.42.74-3.55,0-5.24.09-1.13-5.64-2.45-11.24-3.47-16.9-1,5.5-2.29,10.95-3.43,16.42q-2.45-.13-4.92-.3c-1.41-7.49-3.07-14.93-4.39-22.44l4.38-.18c.88,5.42,1.87,10.82,2.64,16.25,1.2-5.57,2.43-11.14,3.62-16.71Z" transform="translate(-575.97 -827.22)"/></svg> '+t.language.translate("Word Paste Detected")+"</h4>",o=(l='<div class="fr-word-paste-modal" style="padding: 20px 20px 10px 20px;">',l+='<p style="text-align: left;">'+t.language.translate("The pasted content is coming from a Microsoft Word document. Do you want to keep the format or clean it up?")+"</p>",l+='<div style="text-align: right; margin-top: 50px;"><button class="fr-remove-word fr-command">'+t.language.translate("Clean")+'</button> <button class="fr-keep-word fr-command">'+t.language.translate("Keep")+"</button></div>",l+="</div>"),a=t.modals.create(i,r,o),s=a.$body;n=a.$modal,a.$modal.addClass("fr-middle"),t.events.bindClick(s,"button.fr-remove-word",function(){var e=n.data("instance")||t;e.wordPaste.clean()}),t.events.bindClick(s,"button.fr-keep-word",function(){var e=n.data("instance")||t;e.wordPaste.clean(!0)}),t.events.$on(e(t.o_win),"resize",function(){t.modals.resize(i)})}var l;t.modals.show(i),t.modals.resize(i)}():o(t.opts.wordPasteKeepFormatting),!1})},clean:o}}})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";var r,i=n(1180),o=n.n(i),a=n(4),s=n.n(a),l=n(54),c=n.n(l),u=n(18),d=n.n(u),f=n(6),p=n.n(f),h=n(44),m=n.n(h),g=n(40),v=n.n(g),y=n(1181),b=n.n(y),_=n(55),w=n.n(_),E=n(208),k=n.n(E),x=n(121),S=n.n(x),T=n(210),C=n.n(T),O=n(67),A=n.n(O),N=n(76),I=n.n(N),M=function(e){return w()(v()("none"),d()('<i class="fa fa-ban"></i>'),d()('<i class="fa fa-align-'.concat(e,'"></i>')))(e)},j=function(e,t){var n;return s()(n='<li role="presentation">\n    <a class="fr-command fr-title" tabIndex="-1" role="option" data-cmd="alignWithDefault" data-param1="'.concat(t,'">\n      ')).call(n,M(t),"\n    </a>\n  </li>")},L=function(e){return function(t){return m()([[v()("left"),function(){return c()(t).css("text-align","left")}],[v()("right"),function(){return c()(t).css("text-align","right")}],[v()("center"),function(){return c()(t).css("text-align","center")}],[v()("justify"),function(){return c()(t).css("text-align","justify")}],[I.a,function(){return c()(t).removeAttr("style")}]])(e)}};(r=c.a.FroalaEditor).PLUGINS.alignWithDefault=function(e){return{apply:function(t){var n=e.selection.blocks(),r=L(t);b()(r,n),e.selection.save(),e.selection.restore()},refresh:function(t){var n=e.selection.blocks();if(n.length){var r=e.helpers.getAlignment(c()(n[0])),i=M(r||"left");o()(t).call(t,"> *:first").replaceWith(i)}}}},r.DefineIcon("alignWithDefault",{NAME:"ban"}),r.RegisterCommand("alignWithDefault",{callback:function(e,t){this.alignWithDefault.apply(t)},html:function(){var e=r.COMMANDS.alignWithDefault.options,t=p()(k()(""),A.a,S()(j));return C()(/{html}/,t(e),'<ul class="fr-dropdown-list" role="presentation">{html}</ul>')},icon:"alignWithDefault",options:{none:"No Align",left:"Align Left",center:"Align Center",right:"Align Right",justify:"Align Justify"},plugin:"alignWithDefault",refresh:function(e){this.alignWithDefault.refresh(e)},title:"Align",type:"dropdown"})},function(e,t,n){var r=n(2036);e.exports=r},function(e,t,n){var r=n(2037),i=Array.prototype;e.exports=function(e){var t=e.find;return e===i||e instanceof Array&&t===i.find?r:t}},function(e,t,n){n(2038);var r=n(145);e.exports=r("Array").find},function(e,t,n){"use strict";var r=n(70),i=n(451).find,o=n(517),a=n(285),s=!0,l=a("find");"find"in[]&&Array(1).find(function(){s=!1}),r({target:"Array",proto:!0,forced:s||!l},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";var r,i=n(394),o=n.n(i),a=n(146),s=n.n(a),l=n(54),c=n.n(l);r=c.a.FroalaEditor,s()(r.DEFAULTS,{charCounterMax:-1,charCounterCount:!0}),r.PLUGINS.charCounterV2=function(e){var t;function n(){return(e.el.textContent||"").replace(/\u200B/g,"").length}function i(){e.events.trigger("charCounter.update")}function a(t){var i=e.opts.charCounterMax;if(!(i<0||n()<i)){var a=t.which;(!o()(e).ctrlKey(t)&&o()(e).isCharacter(a)||a===r.KEYCODE.IME)&&(t.preventDefault(),t.stopPropagation(),e.events.trigger("charCounter.exceeded"))}}function s(t){if(e.opts.charCounterMax<0)return t;var r=c()("<div>").html(t).text(),i=e.selection.text();return n()-i.length+r.length<=e.opts.charCounterMax?t:(e.events.trigger("charCounter.exceeded"),"")}function l(){if(e.opts.charCounterCount){var r=n()+(e.opts.charCounterMax>0?"/"+e.opts.charCounterMax:"");t.text(r),e.opts.toolbarBottom&&t.css("margin-bottom",e.$tb.outerHeight(!0));var i=e.$wp.get(0).offsetWidth-e.$wp.get(0).clientWidth;i>=0&&("rtl"==e.opts.direction?t.css("margin-left",i):t.css("margin-right",i))}}function u(){c()(e.o_win).off("resize.char"+e.id),t.removeData().remove(),t=null}return{_init:function(){e.$wp&&e.opts.charCounterCount&&((t=c()('<span class="fr-counter"></span>')).css("bottom",e.$wp.css("border-bottom-width")),e.$box.append(t),e.events.on("keydown",a,!0),e.events.on("paste.afterCleanup",s),e.events.on("keyup contentChanged input",i),e.events.on("charCounter.update",l),e.events.on("destroy",u),i())},count:n}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n(290),n(2044),n(215);e.exports=n(2047)()},function(e,t,n){e.exports=n(2045)},function(e,t,n){var r=n(2046);e.exports=r},function(e,t,n){n(670);var r=n(118);e.exports=r.Symbol.for},function(e,t,n){"use strict";var r=n(2048),i=n(2049),o=n(2050);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){var r=n(2053);e.exports=r},function(e,t,n){n(2054);var r=n(118);e.exports=r.parseInt},function(e,t,n){var r=n(70),i=n(2055);r({global:!0,forced:parseInt!=i},{parseInt:i})},function(e,t,n){var r=n(144),i=n(672).trim,o=n(526),a=r.parseInt,s=/^[+-]?0[Xx]/,l=8!==a(o+"08")||22!==a(o+"0x16");e.exports=l?function(e,t){var n=i(String(e));return a(n,t>>>0||(s.test(n)?16:10))}:a},function(e,t,n){},function(e,t,n){var r=n(2058),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(2059),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(693),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=c(n(0)),o=n(2061),a=c(n(2068)),s=c(n(2070)),l=n(551);function c(e){return e&&e.__esModule?e:{default:e}}var u=(0,l.canUseDOM)()&&n(2071),d=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return r.innerSliderRefHandler=function(e){return r.innerSlider=e},r.slickPrev=function(){return r.innerSlider.slickPrev()},r.slickNext=function(){return r.innerSlider.slickNext()},r.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.innerSlider.slickGoTo(e,t)},r.slickPause=function(){return r.innerSlider.pause("paused")},r.slickPlay=function(){return r.innerSlider.autoPlay("play")},r.state={breakpoint:null},r._responsiveMediaHandlers=[],r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.media=function(e,t){u.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})},t.prototype.componentWillMount=function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(n,r){var i=void 0;i=0===r?(0,a.default)({minWidth:0,maxWidth:n}):(0,a.default)({minWidth:t[r-1]+1,maxWidth:n}),(0,l.canUseDOM)()&&e.media(i,function(){e.setState({breakpoint:n})})});var n=(0,a.default)({minWidth:t.slice(-1)[0]});(0,l.canUseDOM)()&&this.media(n,function(){e.setState({breakpoint:null})})}},t.prototype.componentWillUnmount=function(){this._responsiveMediaHandlers.forEach(function(e){u.unregister(e.query,e.handler)})},t.prototype.render=function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":r({},s.default,this.props,t[0].settings):r({},s.default,this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=i.default.Children.toArray(this.props.children);a=a.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,u=0;u<a.length;u+=e.rows*e.slidesPerRow){for(var d=[],f=u;f<u+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var p=[],h=f;h<f+e.slidesPerRow&&(e.variableWidth&&a[h].props.style&&(c=a[h].props.style.width),!(h>=a.length));h+=1)p.push(i.default.cloneElement(a[h],{key:100*u+10*f+h,tabIndex:-1,style:{width:100/e.slidesPerRow+"%",display:"inline-block"}}));d.push(i.default.createElement("div",{key:10*u+f},p))}e.variableWidth?l.push(i.default.createElement("div",{key:u,style:{width:c}},d)):l.push(i.default.createElement("div",{key:u},d))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return i.default.createElement("div",{className:m},l)}return l.length<=e.slidesToShow&&(e.unslick=!0),i.default.createElement(o.InnerSlider,r({ref:this.innerSliderRefHandler},e),l)},t}(i.default.Component);t.default=d},function(e,t,n){"use strict";t.__esModule=!0,t.InnerSlider=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=m(n(0)),a=m(n(103)),s=m(n(2062)),l=m(n(2063)),c=m(n(2)),u=n(551),d=n(2064),f=n(2065),p=n(2066),h=m(n(2067));function m(e){return e&&e.__esModule?e:{default:e}}t.InnerSlider=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var m=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return m.listRefHandler=function(e){return m.list=e},m.trackRefHandler=function(e){return m.track=e},m.adaptHeight=function(){if(m.props.adaptiveHeight&&m.list){var e=m.list.querySelector('[data-index="'+m.state.currentSlide+'"]');m.list.style.height=(0,u.getHeight)(e)+"px"}},m.componentWillMount=function(){if(m.ssrInit(),m.props.onInit&&m.props.onInit(),m.props.lazyLoad){var e=(0,u.getOnDemandLazySlides)(i({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}},m.componentDidMount=function(){var e=i({listRef:m.list,trackRef:m.track},m.props);m.updateState(e,!0,function(){m.adaptHeight(),m.props.autoplay&&m.autoPlay("update")}),"progressive"===m.props.lazyLoad&&(m.lazyLoadTimer=setInterval(m.progressiveLazyLoad,1e3)),m.ro=new h.default(function(){m.state.animating?(m.onWindowResized(!1),m.callbackTimers.push(setTimeout(function(){return m.onWindowResized()},m.props.speed))):m.onWindowResized()}),m.ro.observe(m.list),Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=m.props.pauseOnFocus?m.onSlideFocus:null,e.onblur=m.props.pauseOnFocus?m.onSlideBlur:null}),window&&(window.addEventListener?window.addEventListener("resize",m.onWindowResized):window.attachEvent("onresize",m.onWindowResized))},m.componentWillUnmount=function(){m.animationEndCallback&&clearTimeout(m.animationEndCallback),m.lazyLoadTimer&&clearInterval(m.lazyLoadTimer),m.callbackTimers.length&&(m.callbackTimers.forEach(function(e){return clearTimeout(e)}),m.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",m.onWindowResized):window.detachEvent("onresize",m.onWindowResized),m.autoplayTimer&&clearInterval(m.autoplayTimer)},m.componentWillReceiveProps=function(e){var t=i({listRef:m.list,trackRef:m.track},e,m.state),n=!1,a=Object.keys(m.props),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;if(!e.hasOwnProperty(u)){n=!0;break}if("object"!==r(e[u])&&"function"!=typeof e[u]&&e[u]!==m.props[u]){n=!0;break}}m.updateState(t,n,function(){m.state.currentSlide>=o.default.Children.count(e.children)&&m.changeSlide({message:"index",index:o.default.Children.count(e.children)-e.slidesToShow,currentSlide:m.state.currentSlide}),e.autoplay?m.autoPlay("update"):m.pause("paused")})},m.componentDidUpdate=function(){if(m.checkImagesLoad(),m.props.onReInit&&m.props.onReInit(),m.props.lazyLoad){var e=(0,u.getOnDemandLazySlides)(i({},m.props,m.state));e.length>0&&(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e))}m.adaptHeight()},m.onWindowResized=function(e){m.debouncedResize&&m.debouncedResize.cancel(),m.debouncedResize=(0,l.default)(function(){return m.resizeWindow(e)},50),m.debouncedResize()},m.resizeWindow=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(a.default.findDOMNode(m.track)){var t=i({listRef:m.list,trackRef:m.track},m.props,m.state);m.updateState(t,e,function(){m.props.autoplay?m.autoPlay("update"):m.pause("paused")}),m.setState({animating:!1}),clearTimeout(m.animationEndCallback),delete m.animationEndCallback}},m.updateState=function(e,t,n){var r=(0,u.initializedState)(e);e=i({},e,r,{slideIndex:r.currentSlide});var a=(0,u.getTrackLeft)(e);e=i({},e,{left:a});var s=(0,u.getTrackCSS)(e);(t||o.default.Children.count(m.props.children)!==o.default.Children.count(e.children))&&(r.trackStyle=s),m.setState(r,n)},m.ssrInit=function(){if(m.props.variableWidth){var e=0,t=0,n=[],r=(0,u.getPreClones)(i({},m.props,m.state,{slideCount:m.props.children.length})),a=(0,u.getPostClones)(i({},m.props,m.state,{slideCount:m.props.children.length}));m.props.children.forEach(function(t){n.push(t.props.style.width),e+=t.props.style.width});for(var s=0;s<r;s++)t+=n[n.length-1-s],e+=n[n.length-1-s];for(var l=0;l<a;l++)e+=n[l];for(var c=0;c<m.state.currentSlide;c++)t+=n[c];var d={width:e+"px",left:-t+"px"};if(m.props.centerMode){var f=n[m.state.currentSlide]+"px";d.left="calc("+d.left+" + (100% - "+f+") / 2 ) "}m.setState({trackStyle:d})}else{var p=o.default.Children.count(m.props.children),h=i({},m.props,m.state,{slideCount:p}),g=(0,u.getPreClones)(h)+(0,u.getPostClones)(h)+p,v=100/m.props.slidesToShow*g,y=100/g,b=-y*((0,u.getPreClones)(h)+m.state.currentSlide)*v/100;m.props.centerMode&&(b+=(100-y*v/100)/2);var _={width:v+"%",left:b+"%"};m.setState({slideWidth:y+"%",trackStyle:_})}},m.checkImagesLoad=function(){var e=document.querySelectorAll(".slick-slide img"),t=e.length,n=0;Array.prototype.forEach.call(e,function(e){var r=function(){return++n&&n>=t&&m.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(){i(),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(m.props.lazyLoad?e.onload=function(){m.adaptHeight(),m.callbackTimers.push(setTimeout(m.onWindowResized,m.props.speed))}:(e.onload=r,e.onerror=function(){r(),m.props.onLazyLoadError&&m.props.onLazyLoadError()}))})},m.progressiveLazyLoad=function(){for(var e=[],t=i({},m.props,m.state),n=m.state.currentSlide;n<m.state.slideCount+(0,u.getPostClones)(t);n++)if(m.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=m.state.currentSlide-1;r>=-(0,u.getPreClones)(t);r--)if(m.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(m.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),m.props.onLazyLoad&&m.props.onLazyLoad(e)):m.lazyLoadTimer&&(clearInterval(m.lazyLoadTimer),delete m.lazyLoadTimer)},m.slideHandler=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=m.props,r=n.asNavFor,o=n.beforeChange,a=n.onLazyLoad,s=n.speed,l=n.afterChange,c=m.state.currentSlide,d=(0,u.slideHandler)(i({index:e},m.props,m.state,{trackRef:m.track,useCSS:m.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){o&&o(c,f.currentSlide);var h=f.lazyLoadedList.filter(function(e){return m.state.lazyLoadedList.indexOf(e)<0});a&&h.length>0&&a(h),m.setState(f,function(){r&&r.innerSlider.state.currentSlide!==c&&r.innerSlider.slideHandler(e),p&&(m.animationEndCallback=setTimeout(function(){var e=p.animating,t=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(p,["animating"]);m.setState(t,function(){m.callbackTimers.push(setTimeout(function(){return m.setState({animating:e})},10)),l&&l(f.currentSlide),delete m.animationEndCallback})},s))})}},m.changeSlide=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i({},m.props,m.state),r=(0,u.changeSlide)(n,e);(0===r||r)&&(!0===t?m.slideHandler(r,t):m.slideHandler(r))},m.clickHandler=function(e){!1===m.clickable&&(e.stopPropagation(),e.preventDefault()),m.clickable=!0},m.keyHandler=function(e){var t=(0,u.keyHandler)(e,m.props.accessibility,m.props.rtl);""!==t&&m.changeSlide({message:t})},m.selectHandler=function(e){m.changeSlide(e)},m.disableBodyScroll=function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}},m.enableBodyScroll=function(){window.ontouchmove=null},m.swipeStart=function(e){m.props.verticalSwiping&&m.disableBodyScroll();var t=(0,u.swipeStart)(e,m.props.swipe,m.props.draggable);""!==t&&m.setState(t)},m.swipeMove=function(e){var t=(0,u.swipeMove)(e,i({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));t&&(t.swiping&&(m.clickable=!1),m.setState(t))},m.swipeEnd=function(e){var t=(0,u.swipeEnd)(e,i({},m.props,m.state,{trackRef:m.track,listRef:m.list,slideIndex:m.state.currentSlide}));if(t){var n=t.triggerSlideHandler;delete t.triggerSlideHandler,m.setState(t),void 0!==n&&(m.slideHandler(n),m.props.verticalSwiping&&m.enableBodyScroll())}},m.slickPrev=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"previous"})},0))},m.slickNext=function(){m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"next"})},0))},m.slickGoTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";m.callbackTimers.push(setTimeout(function(){return m.changeSlide({message:"index",index:e,currentSlide:m.state.currentSlide},t)},0))},m.play=function(){var e;if(m.props.rtl)e=m.state.currentSlide-m.props.slidesToScroll;else{if(!(0,u.canGoNext)(i({},m.props,m.state)))return!1;e=m.state.currentSlide+m.props.slidesToScroll}m.slideHandler(e)},m.autoPlay=function(e){m.autoplayTimer&&clearInterval(m.autoplayTimer);var t=m.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;m.autoplayTimer=setInterval(m.play,m.props.autoplaySpeed+50),m.setState({autoplaying:"playing"})},m.pause=function(e){m.autoplayTimer&&(clearInterval(m.autoplayTimer),m.autoplayTimer=null);var t=m.state.autoplaying;"paused"===e?m.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||m.setState({autoplaying:"focused"}):"playing"===t&&m.setState({autoplaying:"hovered"})},m.onDotsOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onDotsLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onTrackOver=function(){return m.props.autoplay&&m.pause("hovered")},m.onTrackLeave=function(){return m.props.autoplay&&"hovered"===m.state.autoplaying&&m.autoPlay("leave")},m.onSlideFocus=function(){return m.props.autoplay&&m.pause("focused")},m.onSlideBlur=function(){return m.props.autoplay&&"focused"===m.state.autoplaying&&m.autoPlay("blur")},m.render=function(){var e,t,n,r=(0,c.default)("slick-slider",m.props.className,{"slick-vertical":m.props.vertical,"slick-initialized":!0}),a=i({},m.props,m.state),s=(0,u.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"]),l=m.props.pauseOnHover;if(s=i({},s,{onMouseEnter:l?m.onTrackOver:null,onMouseLeave:l?m.onTrackLeave:null,onMouseOver:l?m.onTrackOver:null,focusOnSelect:m.props.focusOnSelect?m.selectHandler:null}),!0===m.props.dots&&m.state.slideCount>=m.props.slidesToShow){var h=(0,u.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),g=m.props.pauseOnDotsHover;h=i({},h,{clickHandler:m.changeSlide,onMouseEnter:g?m.onDotsLeave:null,onMouseOver:g?m.onDotsOver:null,onMouseLeave:g?m.onDotsLeave:null}),e=o.default.createElement(f.Dots,h)}var v=(0,u.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=m.changeSlide,m.props.arrows&&(t=o.default.createElement(p.PrevArrow,v),n=o.default.createElement(p.NextArrow,v));var y=null;m.props.vertical&&(y={height:m.state.listHeight});var b=null;!1===m.props.vertical?!0===m.props.centerMode&&(b={padding:"0px "+m.props.centerPadding}):!0===m.props.centerMode&&(b={padding:m.props.centerPadding+" 0px"});var _=i({},y,b),w=m.props.touchMove,E={className:"slick-list",style:_,onClick:m.clickHandler,onMouseDown:w?m.swipeStart:null,onMouseMove:m.state.dragging&&w?m.swipeMove:null,onMouseUp:w?m.swipeEnd:null,onMouseLeave:m.state.dragging&&w?m.swipeEnd:null,onTouchStart:w?m.swipeStart:null,onTouchMove:m.state.dragging&&w?m.swipeMove:null,onTouchEnd:w?m.swipeEnd:null,onTouchCancel:m.state.dragging&&w?m.swipeEnd:null,onKeyDown:m.props.accessibility?m.keyHandler:null},k={className:r,dir:"ltr"};return m.props.unslick&&(E={className:"slick-list"},k={className:r}),o.default.createElement("div",k,m.props.unslick?"":t,o.default.createElement("div",i({ref:m.listRefHandler},E),o.default.createElement(d.Track,i({ref:m.trackRefHandler},s),m.props.children)),m.props.unslick?"":n,m.props.unslick?"":e)},m.list=null,m.track=null,m.state=i({},s.default,{currentSlide:m.props.initialSlide,slideCount:o.default.Children.count(m.props.children)}),m.callbackTimers=[],m.clickable=!0,m.debouncedResize=null,m}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default.Component)},function(e,t,n){"use strict";t.__esModule=!0;t.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0}},function(e,t,n){(function(t){var n="Expected a function",r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,g=function(){return f.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return r;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var i,o,a,s,l,c,u=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function b(t){var n=i,r=o;return i=o=void 0,u=t,s=e.apply(r,n)}function _(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-u>=a}function w(){var e=g();if(_(e))return E(e);l=setTimeout(w,function(e){var n=t-(e-c);return f?m(n,a-(e-u)):n}(e))}function E(e){return l=void 0,p&&i?b(e):(i=o=void 0,s)}function k(){var e=g(),n=_(e);if(i=arguments,o=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(w,t),d?b(e):s}(c);if(f)return l=setTimeout(w,t),b(c)}return void 0===l&&(l=setTimeout(w,t)),s}return t=y(t)||0,v(r)&&(d=!!r.leading,a=(f="maxWait"in r)?h(y(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),k.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=o=l=void 0},k.flush=function(){return void 0===l?s:E(g())},k}}).call(this,n(69))},function(e,t,n){"use strict";t.__esModule=!0,t.Track=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(0)),o=s(n(2)),a=n(551);function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){var t,n,r,i,o;return r=(o=e.rtl?e.slideCount-1-e.index:e.index)<0||o>=e.slideCount,e.centerMode?(i=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount==0,o>e.currentSlide-i-1&&o<=e.currentSlide+i&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":r,"slick-current":o===e.currentSlide}},c=function(e,t){return e.key||t},u=function(e){var t,n=[],s=[],u=[],d=i.default.Children.count(e.children),f=(0,a.lazyStartIndex)(e),p=(0,a.lazyEndIndex)(e);return i.default.Children.forEach(e.children,function(h,m){var g=void 0,v={message:"children",index:m,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};g=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(m)>=0?h:i.default.createElement("div",null);var y=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase,t.WebkitTransition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),t}(r({},e,{index:m})),b=g.props.className||"",_=l(r({},e,{index:m}));if(n.push(i.default.cloneElement(g,{key:"original"+c(g,m),"data-index":m,className:(0,o.default)(_,b),tabIndex:"-1","aria-hidden":!_["slick-active"],style:r({outline:"none"},g.props.style||{},y),onClick:function(t){g.props&&g.props.onClick&&g.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})),e.infinite&&!1===e.fade){var w=d-m;w<=(0,a.getPreClones)(e)&&d!==e.slidesToShow&&((t=-w)>=f&&(g=h),_=l(r({},e,{index:t})),s.push(i.default.cloneElement(g,{key:"precloned"+c(g,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},g.props.style||{},y),onClick:function(t){g.props&&g.props.onClick&&g.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}}))),d!==e.slidesToShow&&((t=d+m)<p&&(g=h),_=l(r({},e,{index:t})),u.push(i.default.cloneElement(g,{key:"postcloned"+c(g,t),"data-index":t,tabIndex:"-1",className:(0,o.default)(_,b),"aria-hidden":!_["slick-active"],style:r({},g.props.style||{},y),onClick:function(t){g.props&&g.props.onClick&&g.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(v)}})))}}),e.rtl?s.concat(n,u).reverse():s.concat(n,u)};t.Track=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=u(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return i.default.createElement("div",r({className:"slick-track",style:this.props.trackStyle},n),e)},t}(i.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.Dots=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}t.Dots=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.clickHandler=function(e,t){t.preventDefault(),this.props.clickHandler(e)},t.prototype.render=function(){var e,t=this,n=(e={slideCount:this.props.slideCount,slidesToScroll:this.props.slidesToScroll,slidesToShow:this.props.slidesToShow,infinite:this.props.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,a=this.props,s={onMouseEnter:a.onMouseEnter,onMouseOver:a.onMouseOver,onMouseLeave:a.onMouseLeave},l=Array.apply(null,Array(n+1).join("0").split("")).map(function(e,n){var r=n*t.props.slidesToScroll,a=n*t.props.slidesToScroll+(t.props.slidesToScroll-1),s=(0,o.default)({"slick-active":t.props.currentSlide>=r&&t.props.currentSlide<=a}),l={message:"dots",index:n,slidesToScroll:t.props.slidesToScroll,currentSlide:t.props.currentSlide},c=t.clickHandler.bind(t,l);return i.default.createElement("li",{key:n,className:s},i.default.cloneElement(t.props.customPaging(n),{onClick:c}))});return i.default.cloneElement(this.props.appendDots(l),r({className:this.props.dotsClass},s))},t}(i.default.PureComponent)},function(e,t,n){"use strict";t.__esModule=!0,t.NextArrow=t.PrevArrow=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(0)),o=s(n(2)),a=n(551);function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.PrevArrow=function(e){function t(){return l(this,t),c(this,e.apply(this,arguments))}return u(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?i.default.cloneElement(this.props.prevArrow,r({},n,a)):i.default.createElement("button",r({key:"0",type:"button"},n)," ","Previous")},t}(i.default.PureComponent),t.NextArrow=function(e){function t(){return l(this,t),c(this,e.apply(this,arguments))}return u(t,e),t.prototype.clickHandler=function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)},t.prototype.render=function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,a.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:(0,o.default)(e),style:{display:"block"},onClick:t},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?i.default.cloneElement(this.props.nextArrow,r({},n,s)):i.default.createElement("button",r({key:"1",type:"button"},n)," ","Next")},t}(i.default.PureComponent)},function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n+=1){var i=r[n];e.call(t,i[1],i[0])}},Object.defineProperties(t.prototype,n),t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},a=2,s=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){o(s)}function c(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}(this.refresh.bind(this),20)};c.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},c.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},c.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},c.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},c.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},c.prototype.disconnect_=function(){r&&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)},c.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),s.some(function(e){return!!~t.indexOf(e)})&&this.refresh()},c.getInstance=function(){return this.instance_||(this.instance_=new c),this.instance_},c.instance_=null;var u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n+=1){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=y(0,0,0,0);function p(e){return parseFloat(e)||0}function h(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.reduce(function(t,n){return t+p(e["border-"+n+"-width"])},0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=d(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n+=1){var i=r[n],o=e["padding-"+i];t[i]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),l=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=h(r,"left","right")+o),Math.round(l+a)!==n&&(l-=h(r,"top","bottom")+a)),!function(e){return e===d(e).document.documentElement}(e)){var c=Math.round(s+o)-t,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return y(i.left,i.top,s,l)}var g="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"==typeof e.getBBox};function v(e){return r?g(e)?function(e){var t=e.getBBox();return y(0,0,t.width,t.height)}(e):m(e):f}function y(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=y(0,0,0,0),this.target=e};b.prototype.isActive=function(){var e=v(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},b.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e};var _=function(e,t){var n,r,i,o,a,s,l,c=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),u(l,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),l);u(this,{target:e,contentRect:c})},w=function(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r};w.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new _(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0};var E="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(e){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=c.getInstance(),n=new w(e,t,this);E.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){return(t=E.get(this))[e].apply(t,arguments);var t}});var x=void 0!==i.ResizeObserver?i.ResizeObserver:k;t.default=x}.call(this,n(69))},function(e,t,n){var r=n(2069),i=function(e){var t="",n=Object.keys(e);return n.forEach(function(i,o){var a=e[i];(function(e){return/[height|width]$/.test(e)})(i=r(i))&&"number"==typeof a&&(a+="px"),t+=!0===a?i:!1===a?"not "+i:"("+i+": "+a+")",o<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(n,r){t+=i(n),r<e.length-1&&(t+=", ")}),t):i(e)}},function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r};var a={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return o.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return o.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0};t.default=a},function(e,t,n){var r=n(2072);e.exports=new r},function(e,t,n){var r=n(2073),i=n(957),o=i.each,a=i.isFunction,s=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),o(t,function(t){a(t)&&(t={match:t}),i[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},function(e,t,n){var r=n(2074),i=n(957).each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,function(t){t[e]()})}},e.exports=o},function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=p(o),s=n(1),l=p(n(552)),c=n(705),u=n(958),d=p(n(2079)),f=p(n(2080));function p(e){return e&&e.__esModule?e:{default:e}}var h=function(e){return null!=e},m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isDisabled:!1,isZoomed:!1,src:e.image.src},n._handleKeyDown=n._handleKeyDown.bind(n),n._handleLoad=n._handleLoad.bind(n),n._handleLoadError=n._handleLoadError.bind(n),n._handleUnzoom=n._handleUnzoom.bind(n),n._handleZoom=n._handleZoom.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),i(t,[{key:"componentWillReceiveProps",value:function(e){if(!h(this.props.isZoomed)&&h(e.isZoomed))throw new Error(l.default.errors.uncontrolled);if(h(this.props.isZoomed)&&!h(e.isZoomed))throw new Error(l.default.errors.controlled);this.props.isZoomed&&!e.isZoomed&&(this.isClosing=!0);var t=this.props.image.src,n=e.image.src;t!==n&&this.setState({src:n})}},{key:"componentDidUpdate",value:function(e,t){var n=h(e.isZoomed)?e.isZoomed:t.isZoomed,r=h(this.props.isZoomed)?this.props.isZoomed:this.state.isZoomed;n!==r&&!r&&this.portalInstance&&this.portalInstance.unzoom({force:!0})}},{key:"render",value:function(){var e=this,t=this.props,n=t.defaultStyles,i=t.image,o=t.isZoomed,s=t.shouldRespectMaxDimension,l=t.zoomImage,c=t.zoomMargin,u=this.state,p=u.isDisabled,m=u.isZoomed,g=u.src,v=r({},!p&&{tabIndex:0},i,{src:g,style:this._getImageStyle()},!p&&{onMouseDown:this._preventFocus,onClick:this._handleZoom,onKeyDown:this._handleKeyDown}),y=h(o)?o:m;return[a.default.createElement("img",r({},v,{key:"image",ref:function(t){e.image=t},onLoad:this._handleLoad,onError:this._handleLoadError})),this.image&&(y||this.isClosing)?a.default.createElement(d.default,{key:"portal",ref:function(t){e.portalInstance=t},controlledEventFn:this._getControlledEventFn(),allowAccessibilityClose:this._allowTabNavigation()},a.default.createElement(f.default,{defaultStyles:n,image:this.image,shouldRespectMaxDimension:s,zoomImage:l,zoomMargin:Number(c),onUnzoom:this._handleUnzoom})):null]}},{key:"_checkShouldDisableComponent",value:function(){var e=this.props,t=e.shouldRespectMaxDimension,n=e.zoomImage,r=t&&!n&&(0,c.isMaxDimension)(this.image);this.setState({isDisabled:r})}},{key:"_getImageStyle",value:function(){var e=this.isClosing,t=this.props,n=t.defaultStyles,i=t.image,o=t.isZoomed,a=this.state,s=a.isDisabled,c=a.isZoomed||o||e;return r({},l.default.styles.image,c&&{visibility:"hidden"},n.image,i.style,s&&{cursor:"inherit"})}},{key:"_handleLoad",value:function(e){this._checkShouldDisableComponent(),(this.props.image.onLoad||Function.prototype)(e)}},{key:"_handleLoadError",value:function(e){this.setState({isDisabled:!0}),(this.props.image.onError||Function.prototype)(e)}},{key:"_handleKeyDown",value:function(e){(0,u.isEnterOrSpaceBarKey)(e)&&(e.preventDefault(),this._handleZoom(e))}},{key:"_preventFocus",value:function(e){e.preventDefault()}},{key:"_handleZoom",value:function(e){!h(this.props.isZoomed)&&this.props.shouldHandleZoom(e)?this.setState({isZoomed:!0},this.props.onZoom):this.props.onZoom()}},{key:"_handleUnzoom",value:function(e,t){var n=this;return function(){var i=r({isZoomed:!1},n.props.shouldReplaceImage&&{src:e});delete n.isClosing,n.setState(i,n.props.onUnzoom),t&&n._allowTabNavigation()&&n.image.focus()}}},{key:"_getControlledEventFn",value:function(){return h(this.props.isZoomed)?this.props.onUnzoom:null}},{key:"_allowTabNavigation",value:function(){return-1!==this.image.tabIndex}}],[{key:"defaultProps",get:function(){return{shouldReplaceImage:!0,shouldRespectMaxDimension:!1,zoomMargin:40,defaultStyles:{zoomContainer:{},overlay:{},image:{},zoomImage:{}},shouldHandleZoom:function(){return!0},onZoom:function(){},onUnzoom:function(){}}}}]),t}();t.default=m,m.propTypes={image:(0,s.shape)({src:s.string.isRequired,alt:s.string,className:s.string,style:s.object}).isRequired,zoomImage:(0,s.shape)({src:s.string,alt:s.string,className:s.string,style:s.object}),defaultStyles:s.object,isZoomed:s.bool,shouldHandleZoom:s.func,shouldReplaceImage:s.bool,shouldRespectMaxDimension:s.bool,onZoom:s.func,onUnzoom:s.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),o=d(i),a=n(103),s=n(1),l=d(n(552)),c=n(705),u=n(958);function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.portal=(0,c.createPortalContainer)("div"),e.unzoom=e.unzoom.bind(e),e._handleScroll=e._handleScroll.bind(e),e._handleKeyDown=e._handleKeyDown.bind(e),e._handleResize=e._handleResize.bind(e),e._handleTouchStart=e._handleTouchStart.bind(e),e._handleTouchMove=e._handleTouchMove.bind(e),e._handleTouchEnd=e._handleTouchEnd.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){var e=this;this.pageYOffset=window.pageYOffset,this.loadTimeout=setTimeout(function(){window.addEventListener("scroll",e._handleScroll),window.addEventListener("keydown",e._handleKeyDown),window.addEventListener("ontouchstart",e._handleTouchStart),window.addEventListener("ontouchmove",e._handleTouchMove),window.addEventListener("ontouchend",e._handleTouchEnd),window.addEventListener("ontouchcancel",e._handleTouchEnd),window.addEventListener("resize",e._handleResize)},l.default.transitionDuration)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.loadTimeout),window.removeEventListener("scroll",this._handleScroll),window.removeEventListener("keydown",this._handleKeyDown),window.removeEventListener("ontouchstart",this._handleTouchStart),window.removeEventListener("ontouchmove",this._handleTouchMove),window.removeEventListener("ontouchend",this._handleTouchEnd),window.removeEventListener("ontouchcancel",this._handleTouchEnd),window.removeEventListener("resize",this._handleResize),(0,c.removePortalContainer)(this.portal)}},{key:"render",value:function(){return this.portal?(0,a.createPortal)(o.default.createElement("div",{onClick:this.unzoom},this._cloneChild()),this.portal):null}},{key:"unzoom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.force,n=e.allowRefocus;return this.props.controlledEventFn&&!t?this.props.controlledEventFn():this.child.unzoom(n)}},{key:"_cloneChild",value:function(){var e=this;return o.default.cloneElement(o.default.Children.only(this.props.children),{ref:function(t){e.child=t}})}},{key:"_handleKeyDown",value:function(e){if((0,u.isTabKey)(e))e.preventDefault();else{var t=this.props.allowAccessibilityClose&&(0,u.isEnterOrSpaceBarKey)(e),n=(0,u.isEscapeKey)(e);t&&e.preventDefault(),(t||n)&&this.unzoom({allowRefocus:!0})}}},{key:"_handleResize",value:function(){this.forceUpdate()}},{key:"_handleScroll",value:function(){this.forceUpdate(),Math.abs(window.pageYOffset-this.pageYOffset)>10&&this.unzoom()}},{key:"_handleTouchStart",value:function(e){this.yTouchPosition=e.touches[0].clientY}},{key:"_handleTouchMove",value:function(e){this.forceUpdate(),Math.abs(e.touches[0].clientY-this.yTouchPosition)>10&&this.unzoom()}},{key:"_handleTouchEnd",value:function(){delete this.yTouchPosition}}]),t}();t.default=f,f.propTypes={children:s.element.isRequired,getControlledEventFn:s.func}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=d(o),s=n(1),l=d(n(552)),c=n(705),u=d(n(2081));function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hasLoaded:!1,isZoomed:!0,src:e.image.currentSrc||e.image.src,tmpSrc:null},n.unzoom=n.unzoom.bind(n),n._handleImageLoad=n._handleImageLoad.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),i(t,[{key:"componentDidMount",value:function(){var e=this.props.zoomImage,t=e.src,n=e.srcSet;this.setState({hasLoaded:!0}),(t||n)&&(0,c.fetchImage)(this.props.zoomImage,this._handleImageLoad)}},{key:"componentDidUpdate",value:function(e,t){var n=this;!t.tmpSrc&&this.state.tmpSrc&&setTimeout(function(){n.setState({src:n.state.tmpSrc,tmpSrc:null})},100)}},{key:"render",value:function(){var e=this.props,t=e.defaultStyles,n=e.zoomImage,i=this.state,o=i.tmpSrc,s=i.isZoomed,l=i.src,c=this._getZoomImageStyle();return a.default.createElement("div",{style:this._getZoomContainerStyle()},a.default.createElement(u.default,{isVisible:s,defaultStyles:t}),a.default.createElement("img",r({},n,{src:l,style:c})),a.default.createElement(p,r({},n,{src:o,style:c})))}},{key:"unzoom",value:function(e){var t=this.props.onUnzoom(this.state.src,e);this.setState({isZoomed:!1},function(){return setTimeout(t,l.default.transitionDuration)})}},{key:"_handleImageLoad",value:function(e){this.state.isZoomed&&this.setState({tmpSrc:e.currentSrc||e.src})}},{key:"_getZoomContainerStyle",value:function(){return r({},l.default.styles.zoomContainer,this.props.defaultStyles.zoomContainer)}},{key:"_getZoomImageStyle",value:function(){var e=this.props,t=e.image,n=e.shouldRespectMaxDimension,i=e.src,o=e.zoomMargin,a=t.getBoundingClientRect(),s=a.top,u=a.left,d=t.width,f=t.height,p=t.naturalWidth,h=t.naturalHeight,m={top:s,left:u,width:d,height:f};if(!this.state.hasLoaded||!this.state.isZoomed)return r({},l.default.styles.zoomImage,this.props.defaultStyles.zoomImage,this.props.style,m);var g=document.body.clientWidth/2,v=window.innerHeight/2,y={transform:"translate3d("+(g-(a.left+d/2))+"px, "+(v-(a.top+f/2))+"px, 0) scale("+(n&&!i?(0,c.getMaxDimensionScale)({width:d,height:f,naturalWidth:p,naturalHeight:h,zoomMargin:o}):(0,c.getScale)({width:d,height:f,zoomMargin:o}))+")"};return r({},l.default.styles.zoomImage,this.props.defaultStyles.zoomImage,this.props.style,m,y)}}],[{key:"defaultProps",get:function(){return{zoomImage:{}}}}]),t}();t.default=f,f.propTypes={defaultStyles:s.object.isRequired,image:s.object.isRequired,shouldRespectMaxDimension:s.bool,zoomImage:(0,s.shape)({src:s.string,alt:s.string,className:s.string,style:s.object}).isRequired,zoomMargin:s.number.isRequired,onUnzoom:s.func.isRequired};var p=function(e){var t=e.src,n=e.style,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["src","style"]);return t?a.default.createElement("img",r({},i,{src:t,style:m(n)})):null},h={position:"fixed",visibility:"hidden"},m=function(e){return r({},e,h)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=c(o),s=n(1),l=c(n(552));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isVisible:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Component),i(t,[{key:"componentDidMount",value:function(){this.setState({isVisible:!0})}},{key:"componentWillReceiveProps",value:function(e){e.isVisible||this.setState({isVisible:!1})}},{key:"shouldComponentUpdate",value:function(e){return this.props.isVisible!==e.isVisible||this.state.isVisible!==e.isVisible}},{key:"render",value:function(){return a.default.createElement("div",{style:this._getStyle()})}},{key:"_getStyle",value:function(){var e=1&this.state.isVisible;return r({},l.default.styles.overlay,{opacity:e},this.props.defaultStyles.overlay)}}]),t}();t.default=u,u.propTypes={isVisible:s.bool.isRequired,defaultStyles:s.object.isRequired}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2085);e.exports=r},function(e,t,n){var r=n(2086),i=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===i||e instanceof String&&t===i.endsWith?r:t}},function(e,t,n){n(2087);var r=n(145);e.exports=r("String").endsWith},function(e,t,n){"use strict";var r,i=n(70),o=n(342).f,a=n(221),s=n(643),l=n(345),c=n(647),u=n(281),d="".endsWith,f=Math.min,p=c("endsWith");i({target:"String",proto:!0,forced:!!(u||p||(r=o(String.prototype,"endsWith"),!r||r.writable))&&!p},{endsWith:function(e){var t=String(l(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=a(t.length),i=void 0===n?r:f(a(n),r),o=String(e);return d?d.call(t,o,i):t.slice(i-o.length,i)===o}})},function(e,t,n){},function(e,t,n){var r=n(34),i=n(249);e.exports=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.last))},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)&&(this.last=t),e},r(function(t,n){return new e(t,n)})}()},function(e,t,n){},function(e,t,n){},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(286),i=n(553);e.exports=function(e){return i(e)&&r("empty",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(315),i=function(e){return function(t,n){return t.concat(e(n))}};e.exports=function(e,t,n){return n.reduce(i(r(e,t)),e.empty())}},function(e,t,n){},function(e,t,n){var r=n(34),i=n(249);e.exports=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},r(function(t,n){return new e(t,n)})}()},function(e,t){},function(e,t,n){(function(t){"undefined"!=typeof window?e.exports=window:void 0!==t?e.exports=t:"undefined"!=typeof self?e.exports=self:e.exports={}}).call(this,n(69))},function(e,t,n){var r=n(2099),i=n(2100);e.exports=function(e){if(!e)return{};var t={};return i(r(e).split("\n"),function(e){var n,i=e.indexOf(":"),o=r(e.slice(0,i)).toLowerCase(),a=r(e.slice(i+1));void 0===t[o]?t[o]=a:(n=t[o],"[object Array]"===Object.prototype.toString.call(n)?t[o].push(a):t[o]=[t[o],a])}),t}},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){var r=n(959);e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this);"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&t.call(n,e[r],r,e)}(e,t,n):"string"==typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)t.call(n,e.charAt(r),r,e)}(e,t,n):function(e,t,n){for(var r in e)o.call(e,r)&&t.call(n,e[r],r,e)}(e,t,n)};var i=Object.prototype.toString,o=Object.prototype.hasOwnProperty},function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function r(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function o(){this.values=n(null)}function a(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function s(e,t,n){var s=e;function l(){var t=i(e);if(null===t)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),c(),t.endTime=l(),c(),function(e,t){var r=new o;a(e,function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical",""),t.line=r.get("line","auto"),t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align","middle"),t.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(e,t)}r.prototype=n(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},d={rt:"ruby"};function f(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e){return l[e]}function o(e){for(;y=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(y[0],r);return e}function a(e,t){return!d[t.localName]||d[t.localName]===e.localName}function s(t,n){var r=c[t];if(!r)return null;var i=e.document.createElement(r);i.localName=r;var o=u[t];return o&&n&&(i[o]=n.trim()),i}for(var f,p=e.document.createElement("div"),h=p,m=[];null!==(f=n());)if("<"!==f[0])h.appendChild(e.document.createTextNode(o(f)));else{if("/"===f[1]){m.length&&m[m.length-1]===f.substr(2).replace(">","")&&(m.pop(),h=h.parentNode);continue}var g,v=i(f.substr(1,f.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),h.appendChild(g);continue}var y=f.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=s(y[1],y[3])))continue;if(!a(h,g))continue;y[2]&&(g.className=y[2].substr(1).replace("."," ")),m.push(y[1]),h.appendChild(g),h=g}return p}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function h(e){for(var t=0;t<p.length;t++){var n=p[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(h(n.charCodeAt(o)))return"rtl";return"ltr"}function g(){}function v(e,t,n){g.call(this),this.cue=t,this.cueDiv=f(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:m(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"middle":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function y(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function b(e,t,n,r){var i=new y(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var l;switch(o.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var c=i.lineHeight,u=c*Math.round(a),d=n[l]+c,f=s[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),a<0&&(u+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(f,u)}else{var p=i.lineHeight/n.height*100;switch(o.lineAlign){case"middle":a-=p/2;break;case"end":a-=p}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new y(t)}var h=function(e,t){for(var i,o=new y(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);a>l&&(i=new y(e),a=l),e=new y(o)}return i||o}(i,s);t.move(h.toCSSCompatValues(n))}function _(){}g.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},g.prototype.formatStyle=function(e,t){return 0===e?0:e+t},v.prototype=n(g.prototype),v.prototype.constructor=v,y.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},y.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},y.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},y.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},y.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},y.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},y.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},y.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},_.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},_.convertCueToDOMTree=function(e,t){return e&&t?f(e,t):null};_.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=y.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<t.length;l++)s=t[l],n=new v(e,s,a),r.appendChild(n.div),b(0,n,o,i),s.displayState=n.div,i.push(y.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},_.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof r))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function l(e){e.match(/X-TIMESTAMP-MAP/)?a(e,function(e,n){switch(e){case"X-TIMESTAMP-MAP":r=n,s=new o,a(r,function(e,t){switch(e){case"MPEGT":s.integer(e+"S",t);break;case"LOCA":s.set(e+"L",i(t))}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:s.get("MPEGTS"),LOCAL:s.get("LOCAL")})}var r,s},/=/):a(e,function(e,n){switch(e){case"Region":!function(e){var n=new o;if(a(e,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new o;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}},/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(c=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new r(r.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:c=n(),t.state){case"HEADER":/:/.test(c)?l(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{s(c,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==c.indexOf("--\x3e");if(!c||f&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c;continue;case"BADCUE":c||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new r(r.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=_},function(e,t){var n="auto",r={"":1,lr:1,rl:1},i={start:1,middle:1,end:1,left:1,right:1};function o(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function a(e,t,i){this.hasBeenReset=!1;var a="",s=!1,l=e,c=t,u=i,d=null,f="",p=!0,h="auto",m="start",g=50,v="middle",y=50,b="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},set:function(e){var t=function(e){return"string"==typeof e&&!!r[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");f=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(e){if("number"!=typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");h=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");m=t,this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=a},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}},function(e,t,n){"use strict";var r=n(962),i=n(961),o=function(){o.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new u(0,0),new u(0,1),new u(1,0),new u(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this)};o.prototype=new r,o.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=i.parseSei(e.escapedRBSP)).payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},o.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},o.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},o.prototype.flush=function(){return this.flushStream("flush")},o.prototype.partialFlush=function(){return this.flushStream("partialFlush")},o.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},o.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},o.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},o.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},o.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)};var a={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(e){return null===e?"":(e=a[e]||e,String.fromCharCode(e))},l=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],c=function(){for(var e=[],t=15;t--;)e.push("");return e},u=function(e,t){u.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=c();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=c();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=c()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=s((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=l.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=s(r),o+=s(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};u.prototype=new r,u.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},u.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=c(),this.nonDisplayed_=c(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},u.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},u.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},u.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},u.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},u.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},u.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},u.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},u.prototype.isNormalChar=function(e){return e>=32&&e<=127},u.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=c(),this.displayed_=c()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},u.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},u.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},u.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},u.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},u.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},u.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},e.exports={CaptionStream:o,Cea608Stream:u}},function(e,t,n){"use strict";var r=n(962),i=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=i(e.dts,n),e.pts=i(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};o.prototype=new r,e.exports={TimestampRolloverStream:o,handleRollover:i}},function(e,t,n){"use strict";var r=n(963),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},o=function(e){return!!(64&e[1])},a=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};e.exports={parseType:function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),n=4+a(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=o(e),r=4+a(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var l=r+s;t[(31&e[l+1])<<8|e[l+2]]=e[l],s+=5+((15&e[l+3])<<8|e[l+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[i(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+a(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+a(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),o}}},function(e,t,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},parseId3TagSize:function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&e[t+5])>>4?n+20:n+10},parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return r[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=i(e.subarray(10,14)));do{if((n=i(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var o=0;o<r.byteLength;o++)if(0===r[o]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,o))){var a=r.subarray(o+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t){var n,r,i,o,a,s,l;n=function(e){return 9e4*e},r=function(e,t){return e*t},i=function(e){return e/9e4},o=function(e,t){return e/t},a=function(e,t){return n(o(e,t))},s=function(e,t){return r(i(e),t)},l=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:o,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:l}},function(e,t,n){},function(e,t,n){var r=n(2111);e.exports=r},function(e,t,n){n(2112);var r=n(118);e.exports=r.Reflect.get},function(e,t,n){var r=n(70),i=n(164),o=n(205),a=n(193),s=n(342),l=n(440);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,u=arguments.length<3?t:arguments[2];return o(t)===u?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(u):i(c=l(t))?e(c,n,u):void 0}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(928),i=n(1070);e.exports=function(e){return i(r(e))}},function(e,t){var n=Math.floor,r=Math.random;e.exports=function(e,t){return e+n(r()*(t-e+1))}},function(e,t,n){var r=n(1070),i=n(2122);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(2123),i=n(384);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(956);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(2125),i=n(380),o=n(2126),a=n(381),s=n(251).type("Maybe"),l=n(315),c=n(680),u=n(454),d=n(868),f=n(93),p=n(194),h=r({Nothing:[],Just:["a"]}),m=h.Nothing,g=h.Just;b.Nothing=l(b,m),b.Just=l(b,g);var v=l(b,g),y=l(b,m);function b(e){if(!arguments.length)throw new TypeError("Maybe: Must wrap something, try using Nothing or Just constructors");var t=h.includes(e)?e:g(e),n=function(e){return r(c(e),u)};function r(e,n){if(!f(e)||!f(n))throw new TypeError("Maybe.either: Requires both left and right functions");return h.caseOf({Nothing:e,Just:n},t)}function i(e){if(!d(e))throw new TypeError("Maybe.sequence: Must wrap an Applicative");return e.map(b.of)}return{inspect:function(){return r(c("Nothing"),function(e){return"Just"+a(e)})},either:r,option:n,type:s,concat:function(e){if(!p(b,e))throw new TypeError("Maybe.concat: Maybe of Semigroup required");return r(b.Nothing,o(b,e))},equals:function(e){return p(b,e)&&r(c(e.either(c(!0),c(!1))),function(t){return e.either(c(!1),function(e){return e===t})})},coalesce:function(e,t){if(!f(e)||!f(t))throw new TypeError("Maybe.coalesce: Requires both left and right functions");return b.Just(r(e,t))},map:function(e){if(!f(e))throw new TypeError("Maybe.map: Function required");return r(b.Nothing,l(b.Just,e))},alt:function(e){if(!p(b,e))throw new TypeError("Maybe.alt: Maybe required");return r(c(e),b.Just)},zero:y,ap:function(e){var t=n(c(void 0));if(!f(t))throw new TypeError("Maybe.ap: Wrapped value must be a function");if(!p(b,e))throw new TypeError("Maybe.ap: Maybe required");return r(b.Nothing,e.map)},of:v,chain:function(e){if(!f(e))throw new TypeError("Maybe.chain: Function required");var t=r(b.Nothing,e);if(!p(b,t))throw new TypeError("Maybe.chain: Function must return a Maybe");return t},sequence:function(e){if(!f(e))throw new TypeError("Maybe.sequence: Applicative returning function required");return r(l(e,b.Nothing),i)},traverse:function(e,t){if(!f(t)||!f(e))throw new TypeError("Maybe.traverse: Applicative returning functions required for both arguments");var n=r(l(e,b.Nothing),t);if(!d(n))throw new TypeError("Maybe.traverse: Both functions must return an Applicative");return r(c(n),c(n.map(b)))}}}b.of=v,b.type=s,b.zero=y,b["@@implements"]=i(["alt","ap","chain","concat","equals","map","of","traverse","zero"]),e.exports=b},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(453),i=n(680),o=n(130),a=n(314),s=n(1071),l=n(93),c=n(313),u=n(378),d=function(e){return u(e)&&e.length};function f(e){return function(t,n){var r=n.tag,i=e[r()].reduce(function(e,t){return e.concat([n[t].value()])},[]);return t[r()].apply(null,i)}}var p=function(e){return function(t){return!!t&&l(t.tag)&&-1!==Object.keys(e).indexOf(t.tag())}};e.exports=function(e){if(!c(e)||s(e))throw new TypeError("defineUnion: Argument must be an Object containing definition lists");return Object.keys(e).reduce(function(t,n){var o=e[n];if(!a(o)||!o.reduce(function(e,t){return e&&d(t)},!0))throw new TypeError("defineUnion: Definitions must be a list of non-empty string identifiers");return t[n]=function(e,t){return function(){var n=r(arguments);return e.reduce(function(e,t,r){return e[t]={value:i(n[r])},e},{tag:i(t)})}}(o,n),t},{caseOf:o(f(e)),includes:o(p(e))})}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(194),i=n(553);e.exports=function(e,t){var n=e.type();return function(e){if(!i(e))throw new TypeError(n+".concat: Both containers must contain Semigroups of the same type");return t.map(function(t){if(!r(e,t))throw new TypeError(n+".concat: Both containers must contain Semigroups of the same type");return e.concat(t)})}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(2138),i=n(2139),o=n(2140);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,i,o,a){var s=i||"<<anonymous>>",l=a||r;if(null==n[r])return t?new Error("Required "+o+" `"+l+"` was not specified in `"+s+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,s,o,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return e&&e.ownerDocument||document},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r=c(n(1087)),i=c(n(1088)),o=c(n(0)),a=c(n(103)),s=c(n(1089)),l=c(n(1090));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,c=Array(i),d=0;d<i;d++)c[d]=arguments[d];return n=r=u(this,e.call.apply(e,[this].concat(c))),r._mountOverlayTarget=function(){r._overlayTarget||(r._overlayTarget=document.createElement("div"),r._portalContainerNode=(0,s.default)(r.props.container,(0,l.default)(r).body),r._portalContainerNode.appendChild(r._overlayTarget))},r._unmountOverlayTarget=function(){r._overlayTarget&&(r._portalContainerNode.removeChild(r._overlayTarget),r._overlayTarget=null),r._portalContainerNode=null},r._renderOverlay=function(){var e=r.props.children?o.default.Children.only(r.props.children):null;if(null!==e){r._mountOverlayTarget();var t=!r._overlayInstance;r._overlayInstance=a.default.unstable_renderSubtreeIntoContainer(r,e,r._overlayTarget,function(){t&&r.props.onRendered&&r.props.onRendered()})}else r._unrenderOverlay(),r._unmountOverlayTarget()},r._unrenderOverlay=function(){r._overlayTarget&&(a.default.unmountComponentAtNode(r._overlayTarget),r._overlayInstance=null)},r.getMountNode=function(){return r._overlayTarget},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this._isMounted=!0,this._renderOverlay()},t.prototype.componentDidUpdate=function(){this._renderOverlay()},t.prototype.componentWillReceiveProps=function(e){this._overlayTarget&&e.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=(0,s.default)(e.container,(0,l.default)(this).body),this._portalContainerNode.appendChild(this._overlayTarget))},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this._unrenderOverlay(),this._unmountOverlayTarget()},t.prototype.render=function(){return null},t}(o.default.Component);d.displayName="Portal",d.propTypes={container:r.default.oneOfType([i.default,r.default.func]),onRendered:r.default.func},t.default=d,e.exports=t.default},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/^#/,""),t=e.length;return 3===t||4===t?function(e){return r(e).map(function(e){return e+e}).join("")}(e):e};t.default=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var r=n(2163),i=n(2164),o=n(2165);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){var r=n(2168);e.exports=r},function(e,t,n){n(312);var r=n(2169),i=n(283),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.values;return e===o||e instanceof Array&&t===o.values||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(2170);e.exports=r},function(e,t,n){n(443);var r=n(145);e.exports=r("Array").values},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0));function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=function(e){var t=function(t,n){return r.default.createElement(e,i({},t,{forwardedRef:n}))},n=e.displayName||e.name;return t.displayName="withForwardedRef(".concat(n,")"),(0,r.forwardRef)(t)};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0));function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Responsive";return function(u){var d=function(n){function d(){var e,t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);for(var o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return n=this,(t=!(r=(e=s(d)).call.apply(e,[this].concat(a)))||"object"!==i(r)&&"function"!=typeof r?l(n):r).handleChange=t.handleChange.bind(l(t)),t.state={isMatch:!1},t}var f,p,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(d,r.Component),f=d,(p=[{key:"componentDidMount",value:function(){this.mql=window.matchMedia(e),this.mql.addListener(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.mql.removeListener(this.handleChange)}},{key:"handleChange",value:function(){this.setState({isMatch:this.mql.matches})}},{key:"render",value:function(){var e,n,i,a=this.props,s=this.state.isMatch;return r.default.createElement(u,o({},a,(i=s,(n=t)in(e={})?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e)))}}])&&a(f.prototype,p),h&&a(f,h),d}(),f=u.displayName||u.name;return d.displayName="".concat(n,"(").concat(f,")"),d}};t.default=u},function(e,t,n){"use strict";var r=n(2175),i=n(2176),o=n(2177);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,l){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,o,a,s,l],d=0;(c=new Error(t.replace(/%s/g,function(){return u[d++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n(126)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var e=function(e,t){return this.construct(e,t),this};return e.Chart=e,e}},function(e,t,n){"use strict";var r=n(554),i={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-i.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*i.easeInBounce(2*e):.5*i.easeOutBounce(2*e-1)+.5}};e.exports={effects:i},r.easingEffects=i},function(e,t,n){"use strict";var r=n(554);t=e.exports={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,i,o){if(o){var a=Math.min(o,i/2-1e-7,r/2-1e-7);e.moveTo(t+a,n),e.lineTo(t+r-a,n),e.arcTo(t+r,n,t+r,n+a,a),e.lineTo(t+r,n+i-a),e.arcTo(t+r,n+i,t+r-a,n+i,a),e.lineTo(t+a,n+i),e.arcTo(t,n+i,t,n+i-a,a),e.lineTo(t,n+a),e.arcTo(t,n,t+a,n,a),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,i)},drawPoint:function(e,t,n,r,i,o){var a,s,l,c,u,d;if(o=o||0,!t||"object"!=typeof t||"[object HTMLImageElement]"!==(a=t.toString())&&"[object HTMLCanvasElement]"!==a){if(!(isNaN(n)||n<=0)){switch(e.save(),e.translate(r,i),e.rotate(o*Math.PI/180),e.beginPath(),t){default:e.arc(0,0,n,0,2*Math.PI),e.closePath();break;case"triangle":u=(s=3*n/Math.sqrt(3))*Math.sqrt(3)/2,e.moveTo(-s/2,u/3),e.lineTo(s/2,u/3),e.lineTo(0,-2*u/3),e.closePath();break;case"rect":d=1/Math.SQRT2*n,e.rect(-d,-d,2*d,2*d);break;case"rectRounded":var f=n/Math.SQRT2,p=-f,h=-f,m=Math.SQRT2*n;this.roundedRect(e,p,h,m,m,.425*n);break;case"rectRot":d=1/Math.SQRT2*n,e.moveTo(-d,0),e.lineTo(0,d),e.lineTo(d,0),e.lineTo(0,-d),e.closePath();break;case"cross":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0);break;case"crossRot":l=Math.cos(Math.PI/4)*n,c=Math.sin(Math.PI/4)*n,e.moveTo(-l,-c),e.lineTo(l,c),e.moveTo(-l,c),e.lineTo(l,-c);break;case"star":e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-n,0),e.lineTo(n,0),l=Math.cos(Math.PI/4)*n,c=Math.sin(Math.PI/4)*n,e.moveTo(-l,-c),e.lineTo(l,c),e.moveTo(-l,c),e.lineTo(l,-c);break;case"line":e.moveTo(-n,0),e.lineTo(n,0);break;case"dash":e.moveTo(0,0),e.lineTo(n,0)}e.fill(),e.stroke(),e.restore()}}else e.drawImage(t,r-t.width/2,i-t.height/2,t.width,t.height)},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){if(n.steppedLine)return"after"===n.steppedLine&&!r||"after"!==n.steppedLine&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y),void e.lineTo(n.x,n.y);n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}};r.clear=t.clear,r.drawRoundedRectangle=function(e){e.beginPath(),t.roundedRect.apply(t,arguments)}},function(e,t,n){"use strict";var r=n(554);e.exports={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,o;return r.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,o=+e.left||0):t=n=i=o=+e||0,{top:t,right:n,bottom:i,left:o,height:t+i,width:o+n}},resolve:function(e,t,n){var i,o,a;for(i=0,o=e.length;i<o;++i)if(void 0!==(a=e[i])&&(void 0!==t&&"function"==typeof a&&(a=a(t)),void 0!==n&&r.isArray(a)&&(a=a[n]),void 0!==a))return a}}},function(e,t,n){"use strict";var r=n(1091),i=n(126),o=n(98),a=n(317);e.exports=function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,i){var a=document.defaultView,s=o._getParentNode(n),l=a.getComputedStyle(n)[r],c=a.getComputedStyle(s)[r],u=t(l),d=t(c),f=Number.POSITIVE_INFINITY;return u||d?Math.min(u?e(l,n,i):f,d?e(c,s,i):f):"none"}o.configMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){var i=t[e]||{},s=n[e];"scales"===e?t[e]=o.scaleMerge(i,s):"scale"===e?t[e]=o.merge(i,[a.getScaleDefaults(s.type),s]):o._merger(e,t,n,r)}})},o.scaleMerge=function(){return o.merge(o.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var i,s,l,c=n[e].length;for(t[e]||(t[e]=[]),i=0;i<c;++i)l=n[e][i],s=o.valueOrDefault(l.type,"xAxes"===e?"category":"linear"),i>=t[e].length&&t[e].push({}),!t[e][i].type||l.type&&l.type!==t[e][i].type?o.merge(t[e][i],[a.getScaleDefaults(s),l]):o.merge(t[e][i],l)}else o._merger(e,t,n,r)}})},o.where=function(e,t){if(o.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return o.each(e,function(e){t(e)&&n.push(e)}),n},o.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,i=e.length;r<i;++r)if(t.call(n,e[r],r,e))return r;return-1},o.findNextWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var i=e[r];if(t(i))return i}},o.findPreviousWhere=function(e,t,n){o.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var i=e[r];if(t(i))return i}},o.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},o.almostEquals=function(e,t,n){return Math.abs(e-t)<n},o.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},o.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},o.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},o.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0===(e=+e)||isNaN(e)?e:e>0?1:-1},o.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},o.toRadians=function(e){return e*(Math.PI/180)},o.toDegrees=function(e){return e*(180/Math.PI)},o.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},o.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},o.aliasPixel=function(e){return e%2==0?0:.5},o.splineCurve=function(e,t,n,r){var i=e.skip?t:e,o=t,a=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),c=s/(s+l),u=l/(s+l),d=r*(c=isNaN(c)?0:c),f=r*(u=isNaN(u)?0:u);return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}},o.EPSILON=Number.EPSILON||1e-14,o.splineCurveMonotone=function(e){var t,n,r,i,a,s,l,c,u,d=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),f=d.length;for(t=0;t<f;++t)if(!(r=d[t]).model.skip){if(n=t>0?d[t-1]:null,(i=t<f-1?d[t+1]:null)&&!i.model.skip){var p=i.model.x-r.model.x;r.deltaK=0!==p?(i.model.y-r.model.y)/p:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<f-1;++t)r=d[t],i=d[t+1],r.model.skip||i.model.skip||(o.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(a=r.mK/r.deltaK,s=i.mK/r.deltaK,(c=Math.pow(a,2)+Math.pow(s,2))<=9||(l=3/Math.sqrt(c),r.mK=a*l*r.deltaK,i.mK=s*l*r.deltaK)));for(t=0;t<f;++t)(r=d[t]).model.skip||(n=t>0?d[t-1]:null,i=t<f-1?d[t+1]:null,n&&!n.model.skip&&(u=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-u,r.model.controlPointPreviousY=r.model.y-u*r.mK),i&&!i.model.skip&&(u=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+u,r.model.controlPointNextY=r.model.y+u*r.mK))},o.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},o.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},o.niceNum=function(e,t){var n=Math.floor(o.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},o.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},o.getRelativePosition=function(e,t){var n,r,i=e.originalEvent||e,a=e.target||e.srcElement,s=a.getBoundingClientRect(),l=i.touches;l&&l.length>0?(n=l[0].clientX,r=l[0].clientY):(n=i.clientX,r=i.clientY);var c=parseFloat(o.getStyle(a,"padding-left")),u=parseFloat(o.getStyle(a,"padding-top")),d=parseFloat(o.getStyle(a,"padding-right")),f=parseFloat(o.getStyle(a,"padding-bottom")),p=s.right-s.left-c-d,h=s.bottom-s.top-u-f;return{x:n=Math.round((n-s.left-c)/p*a.width/t.currentDevicePixelRatio),y:r=Math.round((r-s.top-u)/h*a.height/t.currentDevicePixelRatio)}},o.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},o.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},o._calculatePadding=function(e,t,n){return(t=o.getStyle(e,t)).indexOf("%")>-1?n/parseInt(t,10):parseInt(t,10)},o._getParentNode=function(e){var t=e.parentNode;return t&&t.host&&(t=t.host),t},o.getMaximumWidth=function(e){var t=o._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-o._calculatePadding(t,"padding-left",n)-o._calculatePadding(t,"padding-right",n),i=o.getConstraintWidth(e);return isNaN(i)?r:Math.min(r,i)},o.getMaximumHeight=function(e){var t=o._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-o._calculatePadding(t,"padding-top",n)-o._calculatePadding(t,"padding-bottom",n),i=o.getConstraintHeight(e);return isNaN(i)?r:Math.min(r,i)},o.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},o.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,i=e.height,o=e.width;r.height=i*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},o.fontString=function(e,t,n){return t+" "+e+"px "+n},o.longestText=function(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.font=t;var s=0;o.each(n,function(t){null!=t&&!0!==o.isArray(t)?s=o.measureText(e,i,a,s,t):o.isArray(t)&&o.each(t,function(t){null==t||o.isArray(t)||(s=o.measureText(e,i,a,s,t))})});var l=a.length/2;if(l>n.length){for(var c=0;c<l;c++)delete i[a[c]];a.splice(0,l)}return s},o.measureText=function(e,t,n,r,i){var o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r},o.numberOfLabelLines=function(e){var t=1;return o.each(e,function(e){o.isArray(e)&&e.length>t&&(t=e.length)}),t},o.color=r?function(e){return e instanceof CanvasGradient&&(e=i.global.defaultColor),r(e)}:function(e){return console.error("Color.js not found!"),e},o.getHoverColor=function(e){return e instanceof CanvasPattern?e:o.color(e).saturate(.5).darken(.1).rgbString()}}},function(e,t,n){var r=n(2184),i=function(){return new c};for(var o in r){i[o+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),r[e](t)}}(o);var a=/(\w+)2(\w+)/.exec(o),s=a[1],l=a[2];(i[s]=i[s]||{})[l]=i[o]=function(e){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var n=r[e](t);if("string"==typeof n||void 0===n)return n;for(var i=0;i<n.length;i++)n[i]=Math.round(n[i]);return n}}(o)}var c=function(){this.convs={}};c.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},c.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},c.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=i[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){c.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=i},function(e,t){function n(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s==a?t=0:r==s?t=(i-o)/l:i==s?t=2+(o-r)/l:o==s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(a+s)/2,[t,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function i(e){var t,n,r=e[0],i=e[1],o=e[2],a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?t=0:r==s?t=(i-o)/l:i==s?t=2+(o-r)/l:o==s&&(t=4+(r-i)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],i=e[2];return[n(e)[0],100*(1/255*Math.min(t,Math.min(r,i))),100*(i=1-1/255*Math.max(t,Math.max(r,i)))]}function a(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]}function s(e){return x[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function c(e){var t=l(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function u(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i}function d(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));r*=255;switch(i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}}function f(e){var t,n,i,o,a=e[0]/360,s=e[1]/100,l=e[2]/100,c=s+l;switch(c>1&&(s/=c,l/=c),i=6*a-(t=Math.floor(6*a)),0!=(1&t)&&(i=1-i),o=s+i*((n=1-l)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function h(e){var t,n,r,i=e[0]/100,o=e[1]/100,a=e[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,t=(t=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function v(e){var t,n,r,i,o=e[0],a=e[1],s=e[2];return o<=8?i=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function y(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]}function _(e){return h(v(e))}function w(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function E(e){return k[e]}e.exports={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:c,rgb2lch:function(e){return y(c(e))},hsl2rgb:u,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;if(0===r)return[0,0,0];return[t,100*(2*(n*=(r*=2)<=1?r:2-r)/(r+n)),100*((r+n)/2)]},hsl2hwb:function(e){return o(u(e))},hsl2cmyk:function(e){return a(u(e))},hsl2keyword:function(e){return s(u(e))},hsv2rgb:d,hsv2hsl:function(e){var t,n,r=e[0],i=e[1]/100,o=e[2]/100;return t=i*o,[r,100*(t=(t/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(d(e))},hsv2cmyk:function(e){return a(d(e))},hsv2keyword:function(e){return s(d(e))},hwb2rgb:f,hwb2hsl:function(e){return n(f(e))},hwb2hsv:function(e){return i(f(e))},hwb2cmyk:function(e){return a(f(e))},hwb2keyword:function(e){return s(f(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return i(p(e))},cmyk2hwb:function(e){return o(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:E,keyword2hsl:function(e){return n(E(e))},keyword2hsv:function(e){return i(E(e))},keyword2hwb:function(e){return o(E(e))},keyword2cmyk:function(e){return a(E(e))},keyword2lab:function(e){return c(E(e))},keyword2xyz:function(e){return l(E(e))},xyz2rgb:h,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:v,lab2rgb:_,lab2lch:y,lch2lab:w,lch2xyz:function(e){return v(w(e))},lch2rgb:function(e){return _(w(e))}};var k={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},x={};for(var S in k)x[JSON.stringify(k[S])]=S},function(e,t,n){var r=n(2186);function i(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3})$/i);if(i){i=i[1];for(var o=0;o<t.length;o++)t[o]=parseInt(i[o]+i[o],16)}else if(i=e.match(/^#([a-fA-F0-9]{6})$/i)){i=i[1];for(o=0;o<t.length;o++)t[o]=parseInt(i.slice(2*o,2*o+2),16)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(i[o+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(i[o+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=r[i[1]]))return}for(o=0;o<t.length;o++)t[o]=u(t[o],0,255);return n=n||0==n?u(n,0,1):1,t[3]=n,t}}function o(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function a(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[u(parseInt(t[1]),0,360),u(parseFloat(t[2]),0,100),u(parseFloat(t[3]),0,100),u(isNaN(n)?1:n,0,1)]}}}function s(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function l(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function c(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function u(e,t,n){return Math.min(Math.max(t,e),n)}function d(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}e.exports={getRgba:i,getHsla:o,getRgb:function(e){var t=i(e);return t&&t.slice(0,3)},getHsl:function(e){var t=o(e);return t&&t.slice(0,3)},getHwb:a,getAlpha:function(e){var t=i(e);if(t)return t[3];if(t=o(e))return t[3];if(t=a(e))return t[3]},hexString:function(e){return"#"+d(e[0])+d(e[1])+d(e[2])},rgbString:function(e,t){if(t<1||e[3]&&e[3]<1)return s(e,t);return"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:s,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return l(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),i=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:l,hslString:function(e,t){if(t<1||e[3]&&e[3]<1)return c(e,t);return"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:c,hwbString:function(e,t){void 0===t&&(t=void 0!==e[3]?e[3]:1);return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return f[e.slice(0,3)]}};var f={};for(var p in r)f[r[p]]=p},function(e,t,n){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98);r._set("global",{elements:{arc:{backgroundColor:r.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=i.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=o.getAngleFromPoint(n,{x:e,y:t}),i=r.angle,a=r.distance,s=n.startAngle,l=n.endAngle;l<s;)l+=2*Math.PI;for(;i>l;)i-=2*Math.PI;for(;i<s;)i+=2*Math.PI;var c=i>=s&&i<=l,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e=this._chart.ctx,t=this._view,n=t.startAngle,r=t.endAngle;e.beginPath(),e.arc(t.x,t.y,t.outerRadius,n,r),e.arc(t.x,t.y,t.innerRadius,r,n,!0),e.closePath(),e.strokeStyle=t.borderColor,e.lineWidth=t.borderWidth,e.fillStyle=t.backgroundColor,e.fill(),e.lineJoin="bevel",t.borderWidth&&e.stroke()}})},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98),a=r.global;r._set("global",{elements:{line:{tension:.4,backgroundColor:a.defaultColor,borderWidth:3,borderColor:a.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=i.extend({draw:function(){var e,t,n,r,i=this._view,s=this._chart.ctx,l=i.spanGaps,c=this._children.slice(),u=a.elements.line,d=-1;for(this._loop&&c.length&&c.push(c[0]),s.save(),s.lineCap=i.borderCapStyle||u.borderCapStyle,s.setLineDash&&s.setLineDash(i.borderDash||u.borderDash),s.lineDashOffset=i.borderDashOffset||u.borderDashOffset,s.lineJoin=i.borderJoinStyle||u.borderJoinStyle,s.lineWidth=i.borderWidth||u.borderWidth,s.strokeStyle=i.borderColor||a.defaultColor,s.beginPath(),d=-1,e=0;e<c.length;++e)t=c[e],n=o.previousItem(c,e),r=t._view,0===e?r.skip||(s.moveTo(r.x,r.y),d=e):(n=-1===d?n:c[d],r.skip||(d!==e-1&&!l||-1===d?s.moveTo(r.x,r.y):o.canvas.lineTo(s,n._view,t._view),d=e));s.stroke(),s.restore()}})},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98),a=r.global.defaultColor;function s(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}r._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:a,borderColor:a,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=i.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:s,inXRange:s,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._model,i=this._chart.ctx,s=t.pointStyle,l=t.rotation,c=t.radius,u=t.x,d=t.y;t.skip||(void 0===e||n.x>=e.left&&1.01*e.right>=n.x&&n.y>=e.top&&1.01*e.bottom>=n.y)&&(i.strokeStyle=t.borderColor||a,i.lineWidth=o.valueOrDefault(t.borderWidth,r.global.elements.point.borderWidth),i.fillStyle=t.backgroundColor||a,o.canvas.drawPoint(i,s,c,u,d,l))}})},function(e,t,n){"use strict";var r=n(126),i=n(254);function o(e){return void 0!==e._view.width}function a(e){var t,n,r,i,a=e._view;if(o(e)){var s=a.width/2;t=a.x-s,n=a.x+s,r=Math.min(a.y,a.base),i=Math.max(a.y,a.base)}else{var l=a.height/2;t=Math.min(a.x,a.base),n=Math.max(a.x,a.base),r=a.y-l,i=a.y+l}return{left:t,top:r,right:n,bottom:i}}r._set("global",{elements:{rectangle:{backgroundColor:r.global.defaultColor,borderColor:r.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=i.extend({draw:function(){var e,t,n,r,i,o,a,s=this._chart.ctx,l=this._view,c=l.borderWidth;if(l.horizontal?(e=l.base,t=l.x,n=l.y-l.height/2,r=l.y+l.height/2,i=t>e?1:-1,o=1,a=l.borderSkipped||"left"):(e=l.x-l.width/2,t=l.x+l.width/2,n=l.y,i=1,o=(r=l.base)>n?1:-1,a=l.borderSkipped||"bottom"),c){var u=Math.min(Math.abs(e-t),Math.abs(n-r)),d=(c=c>u?u:c)/2,f=e+("left"!==a?d*i:0),p=t+("right"!==a?-d*i:0),h=n+("top"!==a?d*o:0),m=r+("bottom"!==a?-d*o:0);f!==p&&(n=h,r=m),h!==m&&(e=f,t=p)}s.beginPath(),s.fillStyle=l.backgroundColor,s.strokeStyle=l.borderColor,s.lineWidth=c;var g=[[e,r],[e,n],[t,n],[t,r]],v=["bottom","left","top","right"].indexOf(a,0);function y(e){return g[(v+e)%4]}-1===v&&(v=0);var b=y(0);s.moveTo(b[0],b[1]);for(var _=1;_<4;_++)b=y(_),s.lineTo(b[0],b[1]);s.fill(),c&&s.stroke()},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){var n=!1;if(this._view){var r=a(this);n=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}return n},inLabelRange:function(e,t){if(!this._view)return!1;var n=a(this);return o(this)?e>=n.left&&e<=n.right:t>=n.top&&t<=n.bottom},inXRange:function(e){var t=a(this);return e>=t.left&&e<=t.right},inYRange:function(e){var t=a(this);return e>=t.top&&e<=t.bottom},getCenterPoint:function(){var e,t,n=this._view;return o(this)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return e.width*Math.abs(e.y-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}})},function(e,t){e.exports={acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}}},function(e,t,n){"use strict";var r=n(98),i="$chartjs",o="chartjs-",a=o+"render-monitor",s=o+"render-animation",l=["animationstart","webkitAnimationStart"],c={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function u(e,t){var n=r.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var d=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function f(e,t,n){e.addEventListener(t,n,d)}function p(e,t,n){e.removeEventListener(t,n,d)}function h(e,t,n,r,i){return{type:e,chart:t,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function m(e,t,n){var c,u,d,p,m=e[i]||(e[i]={}),g=m.resizer=function(e){var t=document.createElement("div"),n=o+"size-monitor",r="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";t.style.cssText=r,t.className=n,t.innerHTML='<div class="'+n+'-expand" style="'+r+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+n+'-shrink" style="'+r+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var i=t.childNodes[0],a=t.childNodes[1];t._reset=function(){i.scrollLeft=1e6,i.scrollTop=1e6,a.scrollLeft=1e6,a.scrollTop=1e6};var s=function(){t._reset(),e()};return f(i,"scroll",s.bind(i,"expand")),f(a,"scroll",s.bind(a,"shrink")),t}((c=function(){if(m.resizer)return t(h("resize",n))},d=!1,p=[],function(){p=Array.prototype.slice.call(arguments),u=u||this,d||(d=!0,r.requestAnimFrame.call(window,function(){d=!1,c.apply(u,p)}))}));!function(e,t){var n=e[i]||(e[i]={}),o=n.renderProxy=function(e){e.animationName===s&&t()};r.each(l,function(t){f(e,t,o)}),n.reflow=!!e.offsetParent,e.classList.add(a)}(e,function(){if(m.resizer){var t=e.parentNode;t&&t!==g.parentNode&&t.insertBefore(g,t.firstChild),g._reset()}})}function g(e){var t=e[i]||{},n=t.resizer;delete t.resizer,function(e){var t=e[i]||{},n=t.renderProxy;n&&(r.each(l,function(t){p(e,t,n)}),delete t.renderProxy),e.classList.remove(a)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var e,t,n,r="from{opacity:0.99}to{opacity:1}";t="@-webkit-keyframes "+s+"{"+r+"}@keyframes "+s+"{"+r+"}."+a+"{-webkit-animation:"+s+" 0.001s;animation:"+s+" 0.001s;}",n=(e=this)._style||document.createElement("style"),e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),o=e.getAttribute("width");if(e[i]={initial:{height:r,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var a=u(e,"width");void 0!==a&&(e.width=a)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var s=u(e,"height");void 0!==a&&(e.height=s)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[i]){var n=t[i].initial;["height","width"].forEach(function(e){var i=n[e];r.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),r.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[i]}},addEventListener:function(e,t,n){var o=e.canvas;if("resize"!==t){var a=n[i]||(n[i]={});f(o,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=c[e.type]||e.type,i=r.getRelativePosition(e,t);return h(n,t,i.x,i.y,e)}(t,e))})}else m(o,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var o=((n[i]||{}).proxies||{})[e.id+"_"+t];o&&p(r,t,o)}else g(r)}},r.addEvent=f,r.removeEvent=p},function(e,t,n){"use strict";var r=n(1092),i=n(1093),o=n(126),a=n(98),s=n(1094),l=n(459),c=n(1095),u=n(1096),d=n(317),f=n(1097);e.exports=function(e){function t(e){return"top"===e||"bottom"===e}e.types={},e.instances={},e.controllers={},a.extend(e.prototype,{construct:function(t,n){var r=this;n=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=a.configMerge(o.global,o[e.type],e.options||{}),e}(n);var i=c.acquireContext(t,n),s=i&&i.canvas,l=s&&s.height,u=s&&s.width;r.id=a.uid(),r.ctx=i,r.canvas=s,r.config=n,r.width=u,r.height=l,r.aspectRatio=l?u/l:null,r.options=n.options,r._bufferedRender=!1,r.chart=r,r.controller=r,e.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(e){r.config.data=e}}),i&&s?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return u.notify(e,"beforeInit"),a.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),u.notify(e,"afterInit"),e},clear:function(){return a.canvas.clear(this),this},stop:function(){return i.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,i=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(a.getMaximumWidth(r))),s=Math.max(0,Math.floor(i?o/i:a.getMaximumHeight(r)));if((t.width!==o||t.height!==s)&&(r.width=t.width=o,r.height=t.height=s,r.style.width=o+"px",r.style.height=s+"px",a.retinaScale(t,n.devicePixelRatio),!e)){var l={width:o,height:s};u.notify(t,"resize",[l]),t.options.onResize&&t.options.onResize(t,l),t.stop(),t.update({duration:t.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;a.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),a.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,n=e.options,r=e.scales||{},i=[],o=Object.keys(r).reduce(function(e,t){return e[t]=!1,e},{});n.scales&&(i=i.concat((n.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),n.scale&&i.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(i,function(n){var i=n.options,s=i.id,l=a.valueOrDefault(i.type,n.dtype);t(i.position)!==t(n.dposition)&&(i.position=n.dposition),o[s]=!0;var c=null;if(s in r&&r[s].type===l)(c=r[s]).options=i,c.ctx=e.ctx,c.chart=e;else{var u=d.getScaleConstructor(l);if(!u)return;c=new u({id:s,type:l,options:i,ctx:e.ctx,chart:e}),r[c.id]=c}c.mergeTicksOptions(),n.isDefault&&(e.scale=c)}),a.each(o,function(e,t){e||delete r[t]}),e.scales=r,d.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,n=[],r=[];return a.each(t.data.datasets,function(i,o){var a=t.getDatasetMeta(o),s=i.type||t.config.type;if(a.type&&a.type!==s&&(t.destroyDatasetMeta(o),a=t.getDatasetMeta(o)),a.type=s,n.push(a.type),a.controller)a.controller.updateIndex(o),a.controller.linkScales();else{var l=e.controllers[a.type];if(void 0===l)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new l(t,o),r.push(a.controller)}},t),r},resetElements:function(){var e=this;a.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var n,r,i=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),r=(n=i).options,a.each(n.scales,function(e){l.removeBox(n,e)}),r=a.configMerge(e.defaults.global,e.defaults[n.config.type],r),n.options=n.config.options=r,n.ensureScalesHaveIDs(),n.buildOrUpdateScales(),n.tooltip._options=r.tooltips,n.tooltip.initialize(),u._invalidate(i),!1!==u.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var o=i.buildOrUpdateControllers();a.each(i.data.datasets,function(e,t){i.getDatasetMeta(t).controller.buildOrUpdateElements()},i),i.updateLayout(),i.options.animation&&i.options.animation.duration&&a.each(o,function(e){e.reset()}),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],u.notify(i,"afterUpdate"),i._bufferedRender?i._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:i.render(t)}},updateLayout:function(){!1!==u.notify(this,"beforeLayout")&&(l.update(this,this.width,this.height),u.notify(this,"afterScaleUpdate"),u.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==u.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);u.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==u.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),u.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=e.duration,o=e.lazy;if(!1!==u.notify(t,"beforeRender")){var s=t.options.animation,l=function(e){u.notify(t,"afterRender"),a.callback(s&&s.onComplete,[e],t)};if(s&&(void 0!==n&&0!==n||void 0===n&&0!==s.duration)){var c=new r({numSteps:(n||s.duration)/16.66,easing:e.easing||s.easing,render:function(e,t){var n=a.easing.effects[t.easing],r=t.currentStep,i=r/t.numSteps;e.draw(n(i),i,r)},onAnimationProgress:s.onProgress,onAnimationComplete:l});i.addAnimation(t,c,n,o)}else t.draw(),l(new r({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),a.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==u.notify(t,"beforeDraw",[e])&&(a.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.scale&&t.scale.draw(),t.drawDatasets(e),t._drawTooltip(e),u.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==u.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);u.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==u.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),u.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==u.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),u.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return s.modes.single(this,e)},getElementsAtEvent:function(e){return s.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return s.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=s.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return s.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var t,n,r=this,i=r.canvas;for(r.stop(),t=0,n=r.data.datasets.length;t<n;++t)r.destroyDatasetMeta(t);i&&(r.unbindEvents(),a.canvas.clear(r),c.releaseContext(r.ctx),r.canvas=null,r.ctx=null),u.notify(r,"destroy"),delete e.instances[r.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new f({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};a.each(e.options.events,function(r){c.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},c.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,a.each(t,function(t,n){c.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,i,o,a=n?"setHoverStyle":"removeHoverStyle";for(i=0,o=e.length;i<o;++i)(r=e[i])&&this.getDatasetMeta(r._datasetIndex).controller[a](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==u.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),u.notify(t,"afterEvent",[e]);var i=t._bufferedRequest;return i?t.render(i):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},i=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,i.mode,i),a.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,i.mode,!1),n.active.length&&i.mode&&n.updateHoverStyle(n.active,i.mode,!0),t=!a.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),e.Controller=e}},function(e,t,n){"use strict";var r=n(98);e.exports=function(e){var t=["push","pop","shift","splice","unshift"];function n(e,n){var r=e._chartjs;if(r){var i=r.listeners,o=i.indexOf(n);-1!==o&&i.splice(o,1),i.length>0||(t.forEach(function(t){delete e[t]}),delete e._chartjs)}}e.DatasetController=function(e,t){this.initialize(e,t)},r.extend(e.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(e=0,t=r.length;e<t;++e)i[e]=i[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,i,o=this,a=o.getDataset(),s=a.data||(a.data=[]);o._data!==s&&(o._data&&n(o._data,o),i=o,(e=s)._chartjs?e._chartjs.listeners.push(i):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),t.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),o=i.apply(this,t);return r.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),o}})})),o._data=s),o.resyncElements()},update:r.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,i=0;i<r;++i)n[i].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){r.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},o=r.valueAtIndexOrDefault,a=r.getHoverColor,s=e._model;e.$previousStyle={backgroundColor:s.backgroundColor,borderColor:s.borderColor,borderWidth:s.borderWidth},s.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:o(t.hoverBackgroundColor,n,a(s.backgroundColor)),s.borderColor=i.hoverBorderColor?i.hoverBorderColor:o(t.hoverBorderColor,n,a(s.borderColor)),s.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:o(t.hoverBorderWidth,n,s.borderWidth)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),e.DatasetController.extend=r.inherits}},function(e,t,n){"use strict";var r=n(98),i=n(460);e.exports=function(e){var t=r.noop;e.LinearScaleBase=i.extend({getRightValue:function(e){return"string"==typeof e?+e:i.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=r.sign(e.min),i=r.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var o=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),o!==a&&e.min>=e.max&&(o?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:r.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,i,o,a=[];if(e.stepSize&&e.stepSize>0)o=e.stepSize;else{var s=r.niceNum(t.max-t.min,!1);o=r.niceNum(s/(e.maxTicks-1),!0),void 0!==(i=e.precision)&&(n=Math.pow(10,i),o=Math.ceil(o*n)/n)}var l=Math.floor(t.min/o)*o,c=Math.ceil(t.max/o)*o;r.isNullOrUndef(e.min)||r.isNullOrUndef(e.max)||!e.stepSize||r.almostWhole((e.max-e.min)/e.stepSize,o/1e3)&&(l=e.min,c=e.max);var u=(c-l)/o;u=r.almostEquals(u,Math.round(u),o/1e3)?Math.round(u):Math.ceil(u),i=1,o<1&&(i=Math.pow(10,1-Math.floor(r.log10(o))),l=Math.round(l*i)/i,c=Math.round(c*i)/i),a.push(void 0!==e.min?e.min:l);for(var d=1;d<u;++d)a.push(Math.round((l+d*o)*i)/i);return a.push(void 0!==e.max?e.max:c),a}(i,e);e.handleDirectionalChanges(),e.max=r.max(o),e.min=r.min(o),t.reverse?(o.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),i.prototype.convertTicksToLabels.call(e)}})}},function(e,t,n){"use strict";var r=n(460),i=n(317);e.exports=function(){var e=r.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart.data,i=n.isHorizontal();return r.yLabels&&!i?n.getRightValue(r.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,i=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(i?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var a=r.getLabels().indexOf(e);t=-1!==a?a:t}if(r.isHorizontal()){var s=r.width/o,l=s*(t-r.minIndex);return i&&(l+=s/2),r.left+Math.round(l)}var c=r.height/o,u=c*(t-r.minIndex);return i&&(u+=c/2),r.top+Math.round(u)},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),i=t.isHorizontal(),o=(i?t.width:t.height)/r;return e-=i?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}});i.registerScaleType("category",e,{position:"bottom"})}},function(e,t,n){"use strict";var r=n(126),i=n(98),o=n(317),a=n(461);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.linear}},n=e.LinearScaleBase.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,o=e.isHorizontal();function a(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var s=t.stacked;if(void 0===s&&i.each(r,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};i.each(r,function(r,o){var s=n.getDatasetMeta(o),c=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[c]&&(l[c]={positiveValues:[],negativeValues:[]});var u=l[c].positiveValues,d=l[c].negativeValues;n.isDatasetVisible(o)&&a(s)&&i.each(r.data,function(n,r){var i=+e.getRightValue(n);isNaN(i)||s.data[r].hidden||(u[r]=u[r]||0,d[r]=d[r]||0,t.relativePoints?u[r]=100:i<0?d[r]+=i:u[r]+=i)})}),i.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),r=i.min(n),o=i.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?o:Math.max(e.max,o)})}else i.each(r,function(t,r){var o=n.getDatasetMeta(r);n.isDatasetVisible(r)&&a(o)&&i.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var e,t=this.options.ticks;if(this.isHorizontal())e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.width/50));else{var n=i.valueOrDefault(t.fontSize,r.global.defaultFontSize);e=Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.height/(2*n)))}return e},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),i=t.end-n;return t.isHorizontal()?t.left+t.width/i*(r-n):t.bottom-t.height/i*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,i=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*i},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}});o.registerScaleType("linear",n,t)}},function(e,t,n){"use strict";var r=n(98),i=n(460),o=n(317),a=n(461);e.exports=function(e){var t={position:"left",ticks:{callback:a.formatters.logarithmic}},n=i.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,i=n.data.datasets,o=e.isHorizontal();function a(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var s=t.stacked;if(void 0===s&&r.each(i,function(e,t){if(!s){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&a(r)&&void 0!==r.stack&&(s=!0)}}),t.stacked||s){var l={};r.each(i,function(i,o){var s=n.getDatasetMeta(o),c=[s.type,void 0===t.stacked&&void 0===s.stack?o:"",s.stack].join(".");n.isDatasetVisible(o)&&a(s)&&(void 0===l[c]&&(l[c]=[]),r.each(i.data,function(t,n){var r=l[c],i=+e.getRightValue(t);isNaN(i)||s.data[n].hidden||i<0||(r[n]=r[n]||0,r[n]+=i)}))}),r.each(l,function(t){if(t.length>0){var n=r.min(t),i=r.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?i:Math.max(e.max,i)}})}else r.each(i,function(t,i){var o=n.getDatasetMeta(i);n.isDatasetVisible(i)&&a(o)&&r.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||o.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks,n=r.valueOrDefault;e.min=n(t.min,e.min),e.max=n(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(r.log10(e.min))-1),e.max=Math.pow(10,Math.floor(r.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(r.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(r.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(r.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:t.min,max:t.max},o=e.ticks=function(e,t){var n,i,o=[],a=r.valueOrDefault,s=a(e.min,Math.pow(10,Math.floor(r.log10(t.min)))),l=Math.floor(r.log10(t.max)),c=Math.ceil(t.max/Math.pow(10,l));0===s?(n=Math.floor(r.log10(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(s),s=i*Math.pow(10,n)):(n=Math.floor(r.log10(s)),i=Math.floor(s/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(s),10==++i&&(i=1,u=++n>=0?1:u),s=Math.round(i*Math.pow(10,n)*u)/u}while(n<l||n===l&&i<c);var d=a(e.max,s);return o.push(d),o}(i,e);e.max=r.max(o),e.min=r.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),i.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(r.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(t){var n,i,o,a,s,l=this,c=l.options.ticks.reverse,u=r.log10,d=l._getFirstTickValue(l.minNotZero),f=0;return t=+l.getRightValue(t),c?(o=l.end,a=l.start,s=-1):(o=l.start,a=l.end,s=1),l.isHorizontal()?(n=l.width,i=c?l.right:l.left):(n=l.height,s*=-1,i=c?l.top:l.bottom),t!==o&&(0===o&&(n-=f=r.getValueOrDefault(l.options.ticks.fontSize,e.defaults.global.defaultFontSize),o=d),0!==t&&(f+=n/(u(a)-u(o))*(u(t)-u(o))),i+=s*f),i},getValueForPixel:function(t){var n,i,o,a,s=this,l=s.options.ticks.reverse,c=r.log10,u=s._getFirstTickValue(s.minNotZero);if(l?(i=s.end,o=s.start):(i=s.start,o=s.end),s.isHorizontal()?(n=s.width,a=l?s.right-t:t-s.left):(n=s.height,a=l?t-s.top:s.bottom-t),a!==i){if(0===i){var d=r.getValueOrDefault(s.options.ticks.fontSize,e.defaults.global.defaultFontSize);a-=d,n-=d,i=u}a*=c(o)-c(i),a/=n,a=Math.pow(10,c(i)+a)}return a}});o.registerScaleType("logarithmic",n,t)}},function(e,t,n){"use strict";var r=n(126),i=n(98),o=n(317),a=n(461);e.exports=function(e){var t=r.global,n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:a.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function s(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function l(e){var n=e.options.pointLabels,r=i.valueOrDefault(n.fontSize,t.defaultFontSize),o=i.valueOrDefault(n.fontStyle,t.defaultFontStyle),a=i.valueOrDefault(n.fontFamily,t.defaultFontFamily);return{size:r,style:o,family:a,font:i.fontString(r,o,a)}}function c(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n-5,end:t}:{start:t,end:t+n+5}}function u(e){return 0===e||180===e?"center":e<180?"left":"right"}function d(e,t,n,r){if(i.isArray(t))for(var o=n.y,a=1.5*r,s=0;s<t.length;++s)e.fillText(t[s],n.x,o),o+=a;else e.fillText(t,n.x,n.y)}function f(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function p(e){return i.isNumber(e)?e:0}var h=e.LinearScaleBase.extend({setDimensions:function(){var e=this,n=e.options,r=n.ticks;e.width=e.maxWidth,e.height=e.maxHeight,e.xCenter=Math.round(e.width/2),e.yCenter=Math.round(e.height/2);var o=i.min([e.height,e.width]),a=i.valueOrDefault(r.fontSize,t.defaultFontSize);e.drawingArea=n.display?o/2-(a/2+r.backdropPaddingY):o/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;i.each(t.data.datasets,function(o,a){if(t.isDatasetVisible(a)){var s=t.getDatasetMeta(a);i.each(o.data,function(t,i){var o=+e.getRightValue(t);isNaN(o)||s.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},getTickLimit:function(){var e=this.options.ticks,n=i.valueOrDefault(e.fontSize,t.defaultFontSize);return Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var t=this;e.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e,t;this.options.pointLabels.display?function(e){var t,n,r,o=l(e),a=Math.min(e.height/2,e.width/2),u={r:e.width,l:0,t:e.height,b:0},d={};e.ctx.font=o.font,e._pointLabelSizes=[];var f,p,h,m=s(e);for(t=0;t<m;t++){r=e.getPointPosition(t,a),f=e.ctx,p=o.size,h=e.pointLabels[t]||"",n=i.isArray(h)?{w:i.longestText(f,f.font,h),h:h.length*p+1.5*(h.length-1)*p}:{w:f.measureText(h).width,h:p},e._pointLabelSizes[t]=n;var g=e.getIndexAngle(t),v=i.toDegrees(g)%360,y=c(v,r.x,n.w,0,180),b=c(v,r.y,n.h,90,270);y.start<u.l&&(u.l=y.start,d.l=g),y.end>u.r&&(u.r=y.end,d.r=g),b.start<u.t&&(u.t=b.start,d.t=g),b.end>u.b&&(u.b=b.end,d.b=g)}e.setReductions(a,u,d)}(this):(e=this,t=Math.min(e.height/2,e.width/2),e.drawingArea=Math.round(t),e.setCenterPoint(0,0,0,0))},setReductions:function(e,t,n){var r=t.l/Math.sin(n.l),i=Math.max(t.r-this.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),a=-Math.max(t.b-this.height,0)/Math.cos(n.b);r=p(r),i=p(i),o=p(o),a=p(a),this.drawingArea=Math.min(Math.round(e-(r+i)/2),Math.round(e-(o+a)/2)),this.setCenterPoint(r,i,o,a)},setCenterPoint:function(e,t,n,r){var i=this,o=i.width-t-i.drawingArea,a=e+i.drawingArea,s=n+i.drawingArea,l=i.height-r-i.drawingArea;i.xCenter=Math.round((a+o)/2+i.left),i.yCenter=Math.round((s+l)/2+i.top)},getIndexAngle:function(e){return e*(2*Math.PI/s(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.round(Math.cos(n)*t)+this.xCenter,y:Math.round(Math.sin(n)*t)+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,n=e.options,r=n.gridLines,o=n.ticks,a=i.valueOrDefault;if(n.display){var c=e.ctx,p=this.getIndexAngle(0),h=a(o.fontSize,t.defaultFontSize),m=a(o.fontStyle,t.defaultFontStyle),g=a(o.fontFamily,t.defaultFontFamily),v=i.fontString(h,m,g);i.each(e.ticks,function(n,l){if(l>0||o.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]);if(r.display&&0!==l&&function(e,t,n,r){var o=e.ctx;if(o.strokeStyle=i.valueAtIndexOrDefault(t.color,r-1),o.lineWidth=i.valueAtIndexOrDefault(t.lineWidth,r-1),e.options.gridLines.circular)o.beginPath(),o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI),o.closePath(),o.stroke();else{var a=s(e);if(0===a)return;o.beginPath();var l=e.getPointPosition(0,n);o.moveTo(l.x,l.y);for(var c=1;c<a;c++)l=e.getPointPosition(c,n),o.lineTo(l.x,l.y);o.closePath(),o.stroke()}}(e,r,u,l),o.display){var d=a(o.fontColor,t.defaultFontColor);if(c.font=v,c.save(),c.translate(e.xCenter,e.yCenter),c.rotate(p),o.showLabelBackdrop){var f=c.measureText(n).width;c.fillStyle=o.backdropColor,c.fillRect(-f/2-o.backdropPaddingX,-u-h/2-o.backdropPaddingY,f+2*o.backdropPaddingX,h+2*o.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=d,c.fillText(n,0,-u),c.restore()}}}),(n.angleLines.display||n.pointLabels.display)&&function(e){var n=e.ctx,r=e.options,o=r.angleLines,a=r.pointLabels;n.lineWidth=o.lineWidth,n.strokeStyle=o.color;var c=e.getDistanceFromCenterForValue(r.ticks.reverse?e.min:e.max),p=l(e);n.textBaseline="top";for(var h=s(e)-1;h>=0;h--){if(o.display){var m=e.getPointPosition(h,c);n.beginPath(),n.moveTo(e.xCenter,e.yCenter),n.lineTo(m.x,m.y),n.stroke(),n.closePath()}if(a.display){var g=e.getPointPosition(h,c+5),v=i.valueAtIndexOrDefault(a.fontColor,h,t.defaultFontColor);n.font=p.font,n.fillStyle=v;var y=e.getIndexAngle(h),b=i.toDegrees(y);n.textAlign=u(b),f(b,e._pointLabelSizes[h],g),d(n,e.pointLabels[h]||"",g,p.size)}}}(e)}}});o.registerScaleType("radialLinear",h,n)}},function(e,t,n){"use strict";var r=n(358);r="function"==typeof r?r:window.moment;var i=n(126),o=n(98),a=n(460),s=n(317),l=Number.MIN_SAFE_INTEGER||-9007199254740991,c=Number.MAX_SAFE_INTEGER||9007199254740991,u={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},d=Object.keys(u);function f(e,t){return e-t}function p(e){var t,n,r,i={},o=[];for(t=0,n=e.length;t<n;++t)i[r=e[t]]||(i[r]=!0,o.push(r));return o}function h(e,t,n,r){var i=function(e,t,n){for(var r,i,o,a=0,s=e.length-1;a>=0&&a<=s;){if(i=e[(r=a+s>>1)-1]||null,o=e[r],!i)return{lo:null,hi:o};if(o[t]<n)a=r+1;else{if(!(i[t]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=i.lo?i.hi?i.lo:e[e.length-2]:e[0],a=i.lo?i.hi?i.hi:e[e.length-1]:e[1],s=a[t]-o[t],l=s?(n-o[t])/s:0,c=(a[r]-o[r])*l;return o[r]+c}function m(e,t){var n=t.parser,i=t.parser||t.format;return"function"==typeof n?n(e):"string"==typeof e&&"string"==typeof i?r(e,i):(e instanceof r||(e=r(e)),e.isValid()?e:"function"==typeof i?i(e):e)}function g(e,t){if(o.isNullOrUndef(e))return null;var n=t.options.time,r=m(t.getRightValue(e),n);return r.isValid()?(n.round&&r.startOf(n.round),r.valueOf()):null}function v(e){for(var t=d.indexOf(e)+1,n=d.length;t<n;++t)if(u[d[t]].common)return d[t]}function y(e,t,n,i){var a,s=i.time,l=s.unit||function(e,t,n,r){var i,o,a,s=d.length;for(i=d.indexOf(e);i<s-1;++i)if(a=(o=u[d[i]]).steps?o.steps[o.steps.length-1]:c,o.common&&Math.ceil((n-t)/(a*o.size))<=r)return d[i];return d[s-1]}(s.minUnit,e,t,n),f=v(l),p=o.valueOrDefault(s.stepSize,s.unitStepSize),h="week"===l&&s.isoWeekday,m=i.ticks.major.enabled,g=u[l],y=r(e),b=r(t),_=[];for(p||(p=function(e,t,n,r){var i,o,a,s=t-e,l=u[n],c=l.size,d=l.steps;if(!d)return Math.ceil(s/(r*c));for(i=0,o=d.length;i<o&&(a=d[i],!(Math.ceil(s/(c*a))<=r));++i);return a}(e,t,l,n)),h&&(y=y.isoWeekday(h),b=b.isoWeekday(h)),y=y.startOf(h?"day":l),(b=b.startOf(h?"day":l))<t&&b.add(1,l),a=r(y),m&&f&&!h&&!s.round&&(a.startOf(f),a.add(~~((y-a)/(g.size*p))*p,l));a<b;a.add(p,l))_.push(+a);return _.push(+a),_}e.exports=function(){var e=a.extend({initialize:function(){if(!r)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),a.prototype.initialize.call(this)},update:function(){var e=this.options;return e.time&&e.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),a.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),a.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,a,s,u=this,d=u.chart,h=u.options.time,m=h.unit||"day",v=c,y=l,b=[],_=[],w=[];for(e=0,n=d.data.labels.length;e<n;++e)w.push(g(d.data.labels[e],u));for(e=0,n=(d.data.datasets||[]).length;e<n;++e)if(d.isDatasetVisible(e))if(a=d.data.datasets[e].data,o.isObject(a[0]))for(_[e]=[],t=0,i=a.length;t<i;++t)s=g(a[t],u),b.push(s),_[e][t]=s;else b.push.apply(b,w),_[e]=w.slice(0);else _[e]=[];w.length&&(w=p(w).sort(f),v=Math.min(v,w[0]),y=Math.max(y,w[w.length-1])),b.length&&(b=p(b).sort(f),v=Math.min(v,b[0]),y=Math.max(y,b[b.length-1])),v=g(h.min,u)||v,y=g(h.max,u)||y,v=v===c?+r().startOf(m):v,y=y===l?+r().endOf(m)+1:y,u.min=Math.min(v,y),u.max=Math.max(v+1,y),u._horizontal=u.isHorizontal(),u._table=[],u._timestamps={data:b,datasets:_,labels:w}},buildTicks:function(){var e,t,n,i=this,o=i.min,a=i.max,s=i.options,l=s.time,c=[],f=[];switch(s.ticks.source){case"data":c=i._timestamps.data;break;case"labels":c=i._timestamps.labels;break;case"auto":default:c=y(o,a,i.getLabelCapacity(o),s)}for("ticks"===s.bounds&&c.length&&(o=c[0],a=c[c.length-1]),o=g(l.min,i)||o,a=g(l.max,i)||a,e=0,t=c.length;e<t;++e)(n=c[e])>=o&&n<=a&&f.push(n);return i.min=o,i.max=a,i._unit=l.unit||function(e,t,n,i){var o,a,s=r.duration(r(i).diff(r(n)));for(o=d.length-1;o>=d.indexOf(t);o--)if(a=d[o],u[a].common&&s.as(a)>=e.length)return a;return d[t?d.indexOf(t):0]}(f,l.minUnit,i.min,i.max),i._majorUnit=v(i._unit),i._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var i,o,a,s,l,c=[],u=[t];for(i=0,o=e.length;i<o;++i)(s=e[i])>t&&s<n&&u.push(s);for(u.push(n),i=0,o=u.length;i<o;++i)l=u[i+1],a=u[i-1],s=u[i],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:i/(o-1)});return c}(i._timestamps.data,o,a,s.distribution),i._offsets=function(e,t,n,r,i){var o,a,s=0,l=0;return i.offset&&t.length&&(i.time.min||(o=t.length>1?t[1]:r,a=t[0],s=(h(e,"time",o,"pos")-h(e,"time",a,"pos"))/2),i.time.max||(o=t[t.length-1],a=t.length>1?t[t.length-2]:n,l=(h(e,"time",o,"pos")-h(e,"time",a,"pos"))/2)),{left:s,right:l}}(i._table,f,o,a,s),i._labelFormat=function(e,t){var n,r,i,o=e.length;for(n=0;n<o;n++){if(0!==(r=m(e[n],t)).millisecond())return"MMM D, YYYY h:mm:ss.SSS a";0===r.second()&&0===r.minute()&&0===r.hour()||(i=!0)}return i?"MMM D, YYYY h:mm:ss a":"MMM D, YYYY"}(i._timestamps.data,l),function(e,t){var n,i,o,a,s=[];for(n=0,i=e.length;n<i;++n)o=e[n],a=!!t&&o===+r(o).startOf(t),s.push({value:o,major:a});return s}(f,i._majorUnit)},getLabelForIndex:function(e,t){var n=this.chart.data,r=this.options.time,i=n.labels&&e<n.labels.length?n.labels[e]:"",a=n.datasets[t].data[e];return o.isObject(a)&&(i=this.getRightValue(a)),r.tooltipFormat?m(i,r).format(r.tooltipFormat):"string"==typeof i?i:m(i,r).format(this._labelFormat)},tickFormatFunction:function(e,t,n,r){var i=this.options,a=e.valueOf(),s=i.time.displayFormats,l=s[this._unit],c=this._majorUnit,u=s[c],d=e.clone().startOf(c).valueOf(),f=i.ticks.major,p=f.enabled&&c&&u&&a===d,h=e.format(r||(p?u:l)),m=p?f:i.ticks.minor,g=o.valueOrDefault(m.callback,m.userCallback);return g?g(h,t,n):h},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(r(e[t].value),t,e));return i},getPixelForOffset:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,i=h(t._table,"time",e,"pos");return r+n*(t._offsets.left+i)/(t._offsets.left+1+t._offsets.right)},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=g(e,this)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,i=t._horizontal?t.left:t.top,o=(n?(e-i)/n:0)*(t._offsets.left+1+t._offsets.left)-t._offsets.right,a=h(t._table,"pos",o,"time");return r(a)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=o.toRadians(t.maxRotation),a=Math.cos(r),s=Math.sin(r);return n*a+o.valueOrDefault(t.fontSize,i.global.defaultFontSize)*s},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,i=t.tickFormatFunction(r(e),0,[],n),o=t.getLabelWidth(i),a=t.isHorizontal()?t.width:t.height,s=Math.floor(a/o);return s>0?s:1}});s.registerScaleType("time",e,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},function(e,t,n){var r={"./en-au":1098,"./en-au.js":1098,"./en-ca":1099,"./en-ca.js":1099,"./en-gb":1100,"./en-gb.js":1100,"./en-ie":1101,"./en-ie.js":1101,"./en-il":1102,"./en-il.js":1102,"./en-nz":1103,"./en-nz.js":1103};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=2201},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(e,t){var n="";return e.length>0&&(e[0].yLabel?n=e[0].yLabel:t.labels.length>0&&e[0].index<t.labels.length&&(n=t.labels[e[0].index])),n},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": "+e.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:i.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,i=r.chart,a=r.getMeta(),s=r.getDataset(),l=e.custom||{},c=i.options.elements.rectangle;e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={datasetLabel:s.label,label:i.data.labels[t],borderSkipped:l.borderSkipped?l.borderSkipped:c.borderSkipped,backgroundColor:l.backgroundColor?l.backgroundColor:o.valueAtIndexOrDefault(s.backgroundColor,t,c.backgroundColor),borderColor:l.borderColor?l.borderColor:o.valueAtIndexOrDefault(s.borderColor,t,c.borderColor),borderWidth:l.borderWidth?l.borderWidth:o.valueAtIndexOrDefault(s.borderWidth,t,c.borderWidth)},r.updateElementGeometry(e,t,n),e.pivot()},updateElementGeometry:function(e,t,n){var r=this,i=e._model,o=r.getValueScale(),a=o.getBasePixel(),s=o.isHorizontal(),l=r._ruler||r.getRuler(),c=r.calculateBarValuePixels(r.index,t),u=r.calculateBarIndexPixels(r.index,t,l);i.horizontal=s,i.base=n?a:c.base,i.x=s?n?a:c.head:u.center,i.y=s?u.center:n?a:c.head,i.height=s?u.size:void 0,i.width=s?void 0:u.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},_getStacks:function(e){var t,n,r=this.chart,i=this.getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,a=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===i||!0===i&&-1===a.indexOf(n.stack)||void 0===i&&(void 0===n.stack||-1===a.indexOf(n.stack)))&&a.push(n.stack);return a},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this.getIndexScale(),r=this.getStackCount(),i=this.index,a=n.isHorizontal(),s=a?n.left:n.top,l=s+(a?n.width:n.height),c=[];for(e=0,t=this.getMeta().data.length;e<t;++e)c.push(n.getPixelForValue(null,e,i));return{min:o.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,i,o,a=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(i=1,o=t.length;i<o;++i)a=Math.min(a,t[i]-t[i-1]);for(i=0,o=s.length;i<o;++i)r=e.getPixelForTick(i),a=i>0?Math.min(a,r-n):a,n=r;return a}(n,c):-1,pixels:c,start:s,end:l,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,i,o,a,s,l=this.chart,c=this.getMeta(),u=this.getValueScale(),d=l.data.datasets,f=u.getRightValue(d[e].data[t]),p=u.options.stacked,h=c.stack,m=0;if(p||void 0===p&&void 0!==h)for(n=0;n<e;++n)(r=l.getDatasetMeta(n)).bar&&r.stack===h&&r.controller.getValueScaleId()===u.id&&l.isDatasetVisible(n)&&(i=u.getRightValue(d[n].data[t]),(f<0&&i<0||f>=0&&i>0)&&(m+=i));return o=u.getPixelForValue(m),{size:s=((a=u.getPixelForValue(m+f))-o)/2,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,i="flex"===r.barThickness?function(e,t,n){var r,i=t.pixels,o=i[e],a=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;return null===a&&(a=o-(null===s?t.end-o:s-o)),null===s&&(s=o+o-a),r=o-(o-a)/2*l,{chunk:(s-a)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,i,a=n.barThickness,s=t.stackCount,l=t.pixels[e];return o.isNullOrUndef(a)?(r=t.min*n.categoryPercentage,i=n.barPercentage):(r=a*s,i=1),{chunk:r/s,ratio:i,start:l-r/2}}(t,n,r),a=this.getStackIndex(e,this.getMeta().stack),s=i.start+i.chunk*a+i.chunk/2,l=Math.min(o.valueOrDefault(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:s-l/2,head:s+l/2,center:s,size:l}},draw:function(){var e=this.chart,t=this.getValueScale(),n=this.getMeta().data,r=this.getDataset(),i=n.length,a=0;for(o.canvas.clipArea(e.ctx,e.chartArea);a<i;++a)isNaN(t.getRightValue(r.data[a]))||n[a].draw();o.canvas.unclipArea(e.ctx)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}}),e.exports=function(e){e.controllers.bubble=e.DatasetController.extend({dataElementType:i.Point,update:function(e){var t=this,n=t.getMeta().data;o.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,i=r.getMeta(),o=e.custom||{},a=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),l=r._resolveElementOptions(e,t),c=r.getDataset().data[t],u=r.index,d=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,t,u),f=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=a,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(d)||isNaN(f),x:d,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=o.valueOrDefault(n.hoverBackgroundColor,o.getHoverColor(n.backgroundColor)),t.borderColor=o.valueOrDefault(n.hoverBorderColor,o.getHoverColor(n.borderColor)),t.borderWidth=o.valueOrDefault(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,i,a=this.chart,s=a.data.datasets[this.index],l=e.custom||{},c=a.options.elements.point,u=o.options.resolve,d=s.data[t],f={},p={chart:a,dataIndex:t,dataset:s,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=h.length;n<r;++n)f[i=h[n]]=u([l[i],s[i],c[i]],p,t);return f.radius=u([l.radius,d?d.r:void 0,s.radius,c.radius],p,t),f}})}},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&t.push(i[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var i=e.getDatasetMeta(0),a=t.datasets[0],s=i.data[r],l=s&&s.custom||{},c=o.valueAtIndexOrDefault,u=e.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:c(a.backgroundColor,r,u.backgroundColor),strokeStyle:l.borderColor?l.borderColor:c(a.borderColor,r,u.borderColor),lineWidth:l.borderWidth?l.borderWidth:c(a.borderWidth,r,u.borderWidth),hidden:isNaN(a.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return o.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}}),r._set("pie",o.clone(r.doughnut)),r._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:i.Arc,linkScales:o.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t=this,n=t.chart,r=n.chartArea,i=n.options,a=i.elements.arc,s=r.right-r.left-a.borderWidth,l=r.bottom-r.top-a.borderWidth,c=Math.min(s,l),u={x:0,y:0},d=t.getMeta(),f=i.cutoutPercentage,p=i.circumference;if(p<2*Math.PI){var h=i.rotation%(2*Math.PI),m=(h+=2*Math.PI*(h>=Math.PI?-1:h<-Math.PI?1:0))+p,g={x:Math.cos(h),y:Math.sin(h)},v={x:Math.cos(m),y:Math.sin(m)},y=h<=0&&m>=0||h<=2*Math.PI&&2*Math.PI<=m,b=h<=.5*Math.PI&&.5*Math.PI<=m||h<=2.5*Math.PI&&2.5*Math.PI<=m,_=h<=-Math.PI&&-Math.PI<=m||h<=Math.PI&&Math.PI<=m,w=h<=.5*-Math.PI&&.5*-Math.PI<=m||h<=1.5*Math.PI&&1.5*Math.PI<=m,E=f/100,k={x:_?-1:Math.min(g.x*(g.x<0?1:E),v.x*(v.x<0?1:E)),y:w?-1:Math.min(g.y*(g.y<0?1:E),v.y*(v.y<0?1:E))},x={x:y?1:Math.max(g.x*(g.x>0?1:E),v.x*(v.x>0?1:E)),y:b?1:Math.max(g.y*(g.y>0?1:E),v.y*(v.y>0?1:E))},S={width:.5*(x.x-k.x),height:.5*(x.y-k.y)};c=Math.min(s/S.width,l/S.height),u={x:-.5*(x.x+k.x),y:-.5*(x.y+k.y)}}n.borderWidth=t.getMaxBorderWidth(d.data),n.outerRadius=Math.max((c-n.borderWidth)/2,0),n.innerRadius=Math.max(f?n.outerRadius/100*f:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=u.x*n.outerRadius,n.offsetY=u.y*n.outerRadius,d.total=t.calculateTotal(),t.outerRadius=n.outerRadius-n.radiusLength*t.getRingIndex(t.index),t.innerRadius=Math.max(t.outerRadius-n.radiusLength,0),o.each(d.data,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,i=r.chart,a=i.chartArea,s=i.options,l=s.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=s.rotation,f=s.rotation,p=r.getDataset(),h=n&&l.animateRotate?0:e.hidden?0:r.calculateCircumference(p.data[t])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:r.innerRadius,g=n&&l.animateScale?0:r.outerRadius,v=o.valueAtIndexOrDefault;o.extend(e,{_datasetIndex:r.index,_index:t,_model:{x:c+i.offsetX,y:u+i.offsetY,startAngle:d,endAngle:f,circumference:h,outerRadius:g,innerRadius:m,label:v(p.label,t,i.data.labels[t])}});var y=e._model,b=e.custom||{},_=o.valueAtIndexOrDefault,w=this.chart.options.elements.arc;y.backgroundColor=b.backgroundColor?b.backgroundColor:_(p.backgroundColor,t,w.backgroundColor),y.borderColor=b.borderColor?b.borderColor:_(p.borderColor,t,w.borderColor),y.borderWidth=b.borderWidth?b.borderWidth:_(p.borderWidth,t,w.borderWidth),n&&l.animateRotate||(y.startAngle=0===t?s.rotation:r.getMeta().data[t-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return o.each(n.data,function(n,i){e=t.data[i],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){for(var t,n,r=0,i=this.index,o=e.length,a=0;a<o;a++)t=e[a]._model?e[a]._model.borderWidth:0,r=(n=e[a]._chart?e[a]._chart.config.data.datasets[i].hoverBorderWidth:0)>(r=t>r?t:r)?n:r;return r}})}},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(e){function t(e,t){return o.valueOrDefault(e.showLine,t.showLines)}e.controllers.line=e.DatasetController.extend({datasetElementType:i.Line,dataElementType:i.Point,update:function(e){var n,r,i,a=this,s=a.getMeta(),l=s.dataset,c=s.data||[],u=a.chart.options,d=u.elements.line,f=a.getScaleForId(s.yAxisID),p=a.getDataset(),h=t(p,u);for(h&&(i=l.custom||{},void 0!==p.tension&&void 0===p.lineTension&&(p.lineTension=p.tension),l._scale=f,l._datasetIndex=a.index,l._children=c,l._model={spanGaps:p.spanGaps?p.spanGaps:u.spanGaps,tension:i.tension?i.tension:o.valueOrDefault(p.lineTension,d.tension),backgroundColor:i.backgroundColor?i.backgroundColor:p.backgroundColor||d.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:p.borderWidth||d.borderWidth,borderColor:i.borderColor?i.borderColor:p.borderColor||d.borderColor,borderCapStyle:i.borderCapStyle?i.borderCapStyle:p.borderCapStyle||d.borderCapStyle,borderDash:i.borderDash?i.borderDash:p.borderDash||d.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:p.borderDashOffset||d.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:p.borderJoinStyle||d.borderJoinStyle,fill:i.fill?i.fill:void 0!==p.fill?p.fill:d.fill,steppedLine:i.steppedLine?i.steppedLine:o.valueOrDefault(p.steppedLine,d.stepped),cubicInterpolationMode:i.cubicInterpolationMode?i.cubicInterpolationMode:o.valueOrDefault(p.cubicInterpolationMode,d.cubicInterpolationMode)},l.pivot()),n=0,r=c.length;n<r;++n)a.updateElement(c[n],n,e);for(h&&0!==l._model.tension&&a.updateBezierControlPoints(),n=0,r=c.length;n<r;++n)c[n].pivot()},getPointBackgroundColor:function(e,t){var n=this.chart.options.elements.point.backgroundColor,r=this.getDataset(),i=e.custom||{};return i.backgroundColor?n=i.backgroundColor:r.pointBackgroundColor?n=o.valueAtIndexOrDefault(r.pointBackgroundColor,t,n):r.backgroundColor&&(n=r.backgroundColor),n},getPointBorderColor:function(e,t){var n=this.chart.options.elements.point.borderColor,r=this.getDataset(),i=e.custom||{};return i.borderColor?n=i.borderColor:r.pointBorderColor?n=o.valueAtIndexOrDefault(r.pointBorderColor,t,n):r.borderColor&&(n=r.borderColor),n},getPointBorderWidth:function(e,t){var n=this.chart.options.elements.point.borderWidth,r=this.getDataset(),i=e.custom||{};return isNaN(i.borderWidth)?!isNaN(r.pointBorderWidth)||o.isArray(r.pointBorderWidth)?n=o.valueAtIndexOrDefault(r.pointBorderWidth,t,n):isNaN(r.borderWidth)||(n=r.borderWidth):n=i.borderWidth,n},getPointRotation:function(e,t){var n=this.chart.options.elements.point.rotation,r=this.getDataset(),i=e.custom||{};return isNaN(i.rotation)?isNaN(r.pointRotation)&&!o.isArray(r.pointRotation)||(n=o.valueAtIndexOrDefault(r.pointRotation,t,n)):n=i.rotation,n},updateElement:function(e,t,n){var r,i,a=this,s=a.getMeta(),l=e.custom||{},c=a.getDataset(),u=a.index,d=c.data[t],f=a.getScaleForId(s.yAxisID),p=a.getScaleForId(s.xAxisID),h=a.chart.options.elements.point;void 0!==c.radius&&void 0===c.pointRadius&&(c.pointRadius=c.radius),void 0!==c.hitRadius&&void 0===c.pointHitRadius&&(c.pointHitRadius=c.hitRadius),r=p.getPixelForValue("object"==typeof d?d:NaN,t,u),i=n?f.getBasePixel():a.calculatePointY(d,t,u),e._xScale=p,e._yScale=f,e._datasetIndex=u,e._index=t,e._model={x:r,y:i,skip:l.skip||isNaN(r)||isNaN(i),radius:l.radius||o.valueAtIndexOrDefault(c.pointRadius,t,h.radius),pointStyle:l.pointStyle||o.valueAtIndexOrDefault(c.pointStyle,t,h.pointStyle),rotation:a.getPointRotation(e,t),backgroundColor:a.getPointBackgroundColor(e,t),borderColor:a.getPointBorderColor(e,t),borderWidth:a.getPointBorderWidth(e,t),tension:s.dataset._model?s.dataset._model.tension:0,steppedLine:!!s.dataset._model&&s.dataset._model.steppedLine,hitRadius:l.hitRadius||o.valueAtIndexOrDefault(c.pointHitRadius,t,h.hitRadius)}},calculatePointY:function(e,t,n){var r,i,o,a=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),c=0,u=0;if(l.options.stacked){for(r=0;r<n;r++)if(i=a.data.datasets[r],"line"===(o=a.getDatasetMeta(r)).type&&o.yAxisID===l.id&&a.isDatasetVisible(r)){var d=Number(l.getRightValue(i.data[t]));d<0?u+=d||0:c+=d||0}var f=Number(l.getRightValue(e));return f<0?l.getPixelForValue(u+f):l.getPixelForValue(c+f)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,i=this.getMeta(),a=this.chart.chartArea,s=i.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(i.dataset._model.spanGaps&&(s=s.filter(function(e){return!e._model.skip})),"monotone"===i.dataset._model.cubicInterpolationMode)o.splineCurveMonotone(s);else for(e=0,t=s.length;e<t;++e)n=s[e]._model,r=o.splineCurve(o.previousItem(s,e)._model,n,o.nextItem(s,e)._model,i.dataset._model.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,t=s.length;e<t;++e)(n=s[e]._model).controlPointPreviousX=l(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=l(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=l(n.controlPointNextX,a.left,a.right),n.controlPointNextY=l(n.controlPointNextY,a.top,a.bottom)},draw:function(){var e,n=this.chart,r=this.getMeta(),i=r.data||[],a=n.chartArea,s=i.length,l=0;for(t(this.getDataset(),n.options)&&(e=(r.dataset._model.borderWidth||0)/2,o.canvas.clipArea(n.ctx,{left:a.left,right:a.right,top:a.top-e,bottom:a.bottom+e}),r.dataset.draw(),o.canvas.unclipArea(n.ctx));l<s;++l)i[l].draw(a)},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},i=e._model;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius},i.backgroundColor=r.hoverBackgroundColor||o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,n,o.getHoverColor(i.backgroundColor)),i.borderColor=r.hoverBorderColor||o.valueAtIndexOrDefault(t.pointHoverBorderColor,n,o.getHoverColor(i.borderColor)),i.borderWidth=r.hoverBorderWidth||o.valueAtIndexOrDefault(t.pointHoverBorderWidth,n,i.borderWidth),i.radius=r.hoverRadius||o.valueAtIndexOrDefault(t.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius)}})}},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),i[o]&&t.push(i[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var i=e.getDatasetMeta(0),a=t.datasets[0],s=i.data[r].custom||{},l=o.valueAtIndexOrDefault,c=e.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(a.backgroundColor,r,c.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(a.borderColor,r,c.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(a.borderWidth,r,c.borderWidth),hidden:isNaN(a.data[r])||i.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,i,o=t.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:i.Arc,linkScales:o.noop,update:function(e){var t,n,r,i=this,a=i.getDataset(),s=i.getMeta(),l=i.chart.options.startAngle||0,c=i._starts=[],u=i._angles=[];for(i._updateRadius(),s.count=i.countVisibleElements(),t=0,n=a.data.length;t<n;t++)c[t]=l,r=i._computeAngle(t),u[t]=r,l+=r;o.each(s.data,function(t,n){i.updateElement(t,n,e)})},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,i=r.elements.arc,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max((o-i.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,i=r.chart,a=r.getDataset(),s=i.options,l=s.animation,c=i.scale,u=i.data.labels,d=c.xCenter,f=c.yCenter,p=s.startAngle,h=e.hidden?0:c.getDistanceFromCenterForValue(a.data[t]),m=r._starts[t],g=m+(e.hidden?0:r._angles[t]),v=l.animateScale?0:c.getDistanceFromCenterForValue(a.data[t]);o.extend(e,{_datasetIndex:r.index,_index:t,_scale:c,_model:{x:d,y:f,innerRadius:0,outerRadius:n?v:h,startAngle:n&&l.animateRotate?p:m,endAngle:n&&l.animateRotate?p:g,label:o.valueAtIndexOrDefault(u,t,u[t])}});var y=this.chart.options.elements.arc,b=e.custom||{},_=o.valueAtIndexOrDefault,w=e._model;w.backgroundColor=b.backgroundColor?b.backgroundColor:_(a.backgroundColor,t,y.backgroundColor),w.borderColor=b.borderColor?b.borderColor:_(a.borderColor,t,y.borderColor),w.borderWidth=b.borderWidth?b.borderWidth:_(a.borderWidth,t,y.borderWidth),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return o.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),i=t.getMeta();if(isNaN(r.data[e])||i.data[e].hidden)return 0;var a={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return o.options.resolve([t.chart.options.elements.arc.angle,2*Math.PI/n],a,e)}})}},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(e){e.controllers.radar=e.DatasetController.extend({datasetElementType:i.Line,dataElementType:i.Point,linkScales:o.noop,update:function(e){var t=this,n=t.getMeta(),r=n.dataset,i=n.data,a=r.custom||{},s=t.getDataset(),l=t.chart.options.elements.line,c=t.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),o.extend(n.dataset,{_datasetIndex:t.index,_scale:c,_children:i,_loop:!0,_model:{tension:a.tension?a.tension:o.valueOrDefault(s.lineTension,l.tension),backgroundColor:a.backgroundColor?a.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:s.borderWidth||l.borderWidth,borderColor:a.borderColor?a.borderColor:s.borderColor||l.borderColor,fill:a.fill?a.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:a.borderCapStyle?a.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:a.borderDash?a.borderDash:s.borderDash||l.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),o.each(i,function(n,r){t.updateElement(n,r,e)},t),t.updateBezierControlPoints()},updateElement:function(e,t,n){var r=this,i=e.custom||{},a=r.getDataset(),s=r.chart.scale,l=r.chart.options.elements.point,c=s.getPointPositionForValue(t,a.data[t]);void 0!==a.radius&&void 0===a.pointRadius&&(a.pointRadius=a.radius),void 0!==a.hitRadius&&void 0===a.pointHitRadius&&(a.pointHitRadius=a.hitRadius),o.extend(e,{_datasetIndex:r.index,_index:t,_scale:s,_model:{x:n?s.xCenter:c.x,y:n?s.yCenter:c.y,tension:i.tension?i.tension:o.valueOrDefault(a.lineTension,r.chart.options.elements.line.tension),radius:i.radius?i.radius:o.valueAtIndexOrDefault(a.pointRadius,t,l.radius),backgroundColor:i.backgroundColor?i.backgroundColor:o.valueAtIndexOrDefault(a.pointBackgroundColor,t,l.backgroundColor),borderColor:i.borderColor?i.borderColor:o.valueAtIndexOrDefault(a.pointBorderColor,t,l.borderColor),borderWidth:i.borderWidth?i.borderWidth:o.valueAtIndexOrDefault(a.pointBorderWidth,t,l.borderWidth),pointStyle:i.pointStyle?i.pointStyle:o.valueAtIndexOrDefault(a.pointStyle,t,l.pointStyle),rotation:i.rotation?i.rotation:o.valueAtIndexOrDefault(a.pointRotation,t,l.rotation),hitRadius:i.hitRadius?i.hitRadius:o.valueAtIndexOrDefault(a.pointHitRadius,t,l.hitRadius)}}),e._model.skip=i.skip?i.skip:isNaN(e._model.x)||isNaN(e._model.y)},updateBezierControlPoints:function(){var e=this.chart.chartArea,t=this.getMeta();o.each(t.data,function(n,r){var i=n._model,a=o.splineCurve(o.previousItem(t.data,r,!0)._model,i,o.nextItem(t.data,r,!0)._model,i.tension);i.controlPointPreviousX=Math.max(Math.min(a.previous.x,e.right),e.left),i.controlPointPreviousY=Math.max(Math.min(a.previous.y,e.bottom),e.top),i.controlPointNextX=Math.max(Math.min(a.next.x,e.right),e.left),i.controlPointNextY=Math.max(Math.min(a.next.y,e.bottom),e.top),n.pivot()})},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e.custom||{},r=e._index,i=e._model;e.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth,radius:i.radius},i.radius=n.hoverRadius?n.hoverRadius:o.valueAtIndexOrDefault(t.pointHoverRadius,r,this.chart.options.elements.point.hoverRadius),i.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o.valueAtIndexOrDefault(t.pointHoverBackgroundColor,r,o.getHoverColor(i.backgroundColor)),i.borderColor=n.hoverBorderColor?n.hoverBorderColor:o.valueAtIndexOrDefault(t.pointHoverBorderColor,r,o.getHoverColor(i.borderColor)),i.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o.valueAtIndexOrDefault(t.pointHoverBorderWidth,r,i.borderWidth)}})}},function(e,t,n){"use strict";n(126)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),e.exports=function(e){e.controllers.scatter=e.controllers.line}},function(e,t,n){"use strict";e.exports=function(e){e.Bar=function(t,n){return n.type="bar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Bubble=function(t,n){return n.type="bubble",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Doughnut=function(t,n){return n.type="doughnut",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Line=function(t,n){return n.type="line",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.PolarArea=function(t,n){return n.type="polarArea",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Radar=function(t,n){return n.type="radar",new e(t,n)}}},function(e,t,n){"use strict";e.exports=function(e){e.Scatter=function(t,n){return n.type="scatter",new e(t,n)}}},function(e,t,n){"use strict";e.exports={},e.exports.filler=n(2217),e.exports.legend=n(2218),e.exports.title=n(2219)},function(e,t,n){"use strict";var r=n(126),i=n(318),o=n(98);r._set("global",{plugins:{filler:{propagate:!0}}});var a={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),i=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=i.length||0;return o?function(e,t){return t<o&&i[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function s(e,t,n){var r,i=e._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function l(e){var t,n=e.el._model||{},r=e.el._scale||{},i=e.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if("number"==typeof o&&isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function c(e,t,n){var r,i=e[t].fill,o=[t];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function u(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),a[n](e))}function d(e){return e&&!e.skip}function f(e,t,n,r,i){var a;if(r&&i){for(e.moveTo(t[0].x,t[0].y),a=1;a<r;++a)o.canvas.lineTo(e,t[a-1],t[a]);for(e.lineTo(n[i-1].x,n[i-1].y),a=i-1;a>0;--a)o.canvas.lineTo(e,n[a],n[a-1],!0)}}e.exports={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,o,a,d=(e.data.datasets||[]).length,f=t.propagate,p=[];for(r=0;r<d;++r)a=null,(o=(n=e.getDatasetMeta(r)).dataset)&&o._model&&o instanceof i.Line&&(a={visible:e.isDatasetVisible(r),fill:s(o,r,d),chart:e,el:o}),n.$filler=a,p.push(a);for(r=0;r<d;++r)(a=p[r])&&(a.fill=c(p,r,f),a.boundary=l(a),a.mapper=u(a))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var i=e.ctx,a=n.el,s=a._view,l=a._children||[],c=n.mapper,u=s.backgroundColor||r.global.defaultColor;c&&u&&l.length&&(o.canvas.clipArea(i,e.chartArea),function(e,t,n,r,i,o){var a,s,l,c,u,p,h,m=t.length,g=r.spanGaps,v=[],y=[],b=0,_=0;for(e.beginPath(),a=0,s=m+!!o;a<s;++a)u=n(c=t[l=a%m]._view,l,r),p=d(c),h=d(u),p&&h?(b=v.push(c),_=y.push(u)):b&&_&&(g?(p&&v.push(c),h&&y.push(u)):(f(e,v,y,b,_),b=_=0,v=[],y=[]));f(e,v,y,b,_),e.closePath(),e.fillStyle=i,e.fill()}(i,l,c,s,u,a._loop),o.canvas.unclipArea(i))}}}},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98),a=n(459),s=o.noop;function l(e,t){return e.usePointStyle?t*Math.SQRT2:e.boxWidth}r._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return o.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:o.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var c=i.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var e=this,t=e.options.labels||{},n=o.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,a=e.ctx,s=r.global,c=o.valueOrDefault,u=c(n.fontSize,s.defaultFontSize),d=c(n.fontStyle,s.defaultFontStyle),f=c(n.fontFamily,s.defaultFontFamily),p=o.fontString(u,d,f),h=e.legendHitBoxes=[],m=e.minSize,g=e.isHorizontal();if(g?(m.width=e.maxWidth,m.height=i?10:0):(m.width=i?10:0,m.height=e.maxHeight),i)if(a.font=p,g){var v=e.lineWidths=[0],y=e.legendItems.length?u+n.padding:0;a.textAlign="left",a.textBaseline="top",o.each(e.legendItems,function(t,r){var i=l(n,u)+u/2+a.measureText(t.text).width;v[v.length-1]+i+n.padding>=e.width&&(y+=u+n.padding,v[v.length]=e.left),h[r]={left:0,top:0,width:i,height:u},v[v.length-1]+=i+n.padding}),m.height+=y}else{var b=n.padding,_=e.columnWidths=[],w=n.padding,E=0,k=0,x=u+b;o.each(e.legendItems,function(e,t){var r=l(n,u)+u/2+a.measureText(e.text).width;k+x>m.height&&(w+=E+n.padding,_.push(E),E=0,k=0),E=Math.max(E,r),k+=x,h[t]={left:0,top:0,width:r,height:u}}),w+=E,_.push(E),m.width+=w}e.width=m.width,e.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=r.global,a=i.elements.line,s=e.width,c=e.lineWidths;if(t.display){var u,d=e.ctx,f=o.valueOrDefault,p=f(n.fontColor,i.defaultFontColor),h=f(n.fontSize,i.defaultFontSize),m=f(n.fontStyle,i.defaultFontStyle),g=f(n.fontFamily,i.defaultFontFamily),v=o.fontString(h,m,g);d.textAlign="left",d.textBaseline="middle",d.lineWidth=.5,d.strokeStyle=p,d.fillStyle=p,d.font=v;var y=l(n,h),b=e.legendHitBoxes,_=e.isHorizontal();u=_?{x:e.left+(s-c[0])/2,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var w=h+n.padding;o.each(e.legendItems,function(r,l){var p=d.measureText(r.text).width,m=y+h/2+p,g=u.x,v=u.y;_?g+m>=s&&(v=u.y+=w,u.line++,g=u.x=e.left+(s-c[u.line])/2):v+w>e.bottom&&(g=u.x=g+e.columnWidths[u.line]+n.padding,v=u.y=e.top+n.padding,u.line++),function(e,n,r){if(!(isNaN(y)||y<=0)){d.save(),d.fillStyle=f(r.fillStyle,i.defaultColor),d.lineCap=f(r.lineCap,a.borderCapStyle),d.lineDashOffset=f(r.lineDashOffset,a.borderDashOffset),d.lineJoin=f(r.lineJoin,a.borderJoinStyle),d.lineWidth=f(r.lineWidth,a.borderWidth),d.strokeStyle=f(r.strokeStyle,i.defaultColor);var s=0===f(r.lineWidth,a.borderWidth);if(d.setLineDash&&d.setLineDash(f(r.lineDash,a.borderDash)),t.labels&&t.labels.usePointStyle){var l=h*Math.SQRT2/2,c=l/Math.SQRT2,u=e+c,p=n+c;o.canvas.drawPoint(d,r.pointStyle,l,u,p)}else s||d.strokeRect(e,n,y,h),d.fillRect(e,n,y,h);d.restore()}}(g,v,r),b[l].left=g,b[l].top=v,function(e,t,n,r){var i=h/2,o=y+i+e,a=t+i;d.fillText(n.text,o,a),n.hidden&&(d.beginPath(),d.lineWidth=2,d.moveTo(o,a),d.lineTo(o+r,a),d.stroke())}(g,v,r,p),_?u.x+=m+n.padding:u.y+=w})}},handleEvent:function(e){var t=this,n=t.options,r="mouseup"===e.type?"click":e.type,i=!1;if("mousemove"===r){if(!n.onHover)return}else{if("click"!==r)return;if(!n.onClick)return}var o=e.x,a=e.y;if(o>=t.left&&o<=t.right&&a>=t.top&&a<=t.bottom)for(var s=t.legendHitBoxes,l=0;l<s.length;++l){var c=s[l];if(o>=c.left&&o<=c.left+c.width&&a>=c.top&&a<=c.top+c.height){if("click"===r){n.onClick.call(t,e.native,t.legendItems[l]),i=!0;break}if("mousemove"===r){n.onHover.call(t,e.native,t.legendItems[l]),i=!0;break}}}return i}});function u(e,t){var n=new c({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.legend=n}e.exports={id:"legend",_element:c,beforeInit:function(e){var t=e.options.legend;t&&u(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(o.mergeIf(t,r.global.legend),n?(a.configure(e,n,t),n.options=t):u(e,t)):n&&(a.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}}},function(e,t,n){"use strict";var r=n(126),i=n(254),o=n(98),a=n(459),s=o.noop;r._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}});var l=i.extend({initialize:function(e){o.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:s,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:s,afterBuildLabels:s,beforeFit:s,fit:function(){var e=this,t=o.valueOrDefault,n=e.options,i=n.display,a=t(n.fontSize,r.global.defaultFontSize),s=e.minSize,l=o.isArray(n.text)?n.text.length:1,c=o.options.toLineHeight(n.lineHeight,a),u=i?l*c+2*n.padding:0;e.isHorizontal()?(s.width=e.maxWidth,s.height=u):(s.width=u,s.height=e.maxHeight),e.width=s.width,e.height=s.height},afterFit:s,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=o.valueOrDefault,i=e.options,a=r.global;if(i.display){var s,l,c,u=n(i.fontSize,a.defaultFontSize),d=n(i.fontStyle,a.defaultFontStyle),f=n(i.fontFamily,a.defaultFontFamily),p=o.fontString(u,d,f),h=o.options.toLineHeight(i.lineHeight,u),m=h/2+i.padding,g=0,v=e.top,y=e.left,b=e.bottom,_=e.right;t.fillStyle=n(i.fontColor,a.defaultFontColor),t.font=p,e.isHorizontal()?(l=y+(_-y)/2,c=v+m,s=_-y):(l="left"===i.position?y+m:_-m,c=v+(b-v)/2,s=b-v,g=Math.PI*("left"===i.position?-.5:.5)),t.save(),t.translate(l,c),t.rotate(g),t.textAlign="center",t.textBaseline="middle";var w=i.text;if(o.isArray(w))for(var E=0,k=0;k<w.length;++k)t.fillText(w[k],0,E,s),E+=h;else t.fillText(w,0,0,s);t.restore()}}});function c(e,t){var n=new l({ctx:e.ctx,options:t,chart:e});a.configure(e,n,t),a.addBox(e,n),e.titleBlock=n}e.exports={id:"title",_element:l,beforeInit:function(e){var t=e.options.title;t&&c(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(o.mergeIf(t,r.global.title),n?(a.configure(e,n,t),n.options=t):c(e,t)):n&&(a.removeBox(e,n),delete e.titleBlock)}}},function(e,t,n){var r=n(1104),i=n(1109),o=n(2254),a=n(2258),s=n(2276),l=n(292),c=n(1111),u=n(1113),d=1,f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,y){var b=l(e),_=l(t),w=b?p:s(e),E=_?p:s(t),k=(w=w==f?h:w)==h,x=(E=E==f?h:E)==h,S=w==E;if(S&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(S&&!k)return y||(y=new r),b||u(e)?i(e,t,n,g,v,y):o(e,t,w,n,g,v,y);if(!(n&d)){var T=k&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(T||C){var O=T?e.value():e,A=C?t.value():t;return y||(y=new r),v(O,A,n,g,y)}}return!!S&&(y||(y=new r),a(e,t,n,g,v,y))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(556),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t,n){var r=n(556);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(556);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(556);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(555);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(555),i=n(708),o=n(709),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(1106),i=n(2234),o=n(558),a=n(1108),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(557),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,i=n(2235),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(291)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(2238),i=n(555),o=n(708);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(2239),i=n(2240),o=n(2241),a=n(2242),s=n(2243);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(559);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(559),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(559),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(559),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(560);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(560);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(560);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(560);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(709),i=n(2250),o=n(2251);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(557),i=n(2255),o=n(1105),a=n(1109),s=n(2256),l=n(2257),c=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,k=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,x,S){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!x(new i(e),new i(t)));case d:case f:case m:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case h:var T=s;case v:var C=r&c;if(T||(T=l),e.size!=t.size&&!C)return!1;var O=S.get(e);if(O)return O==t;r|=u,S.set(e,t);var A=a(T(e),T(t),r,E,x,S);return S.delete(e),A;case b:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t,n){var r=n(291).Uint8Array;e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(2259),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var c=n&i,u=r(e),d=u.length;if(d!=r(t).length&&!c)return!1;for(var f=d;f--;){var p=u[f];if(!(c?p in t:o.call(t,p)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var m=!0;l.set(e,t),l.set(t,e);for(var g=c;++f<d;){var v=e[p=u[f]],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(!(void 0===b?v===y||s(v,y,n,a,l):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(2260),i=n(2262),o=n(561);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(2261),i=n(292);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(2263),i=n(2264),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(2266),i=n(1110),o=n(292),a=n(1111),s=n(1112),l=n(1113),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),f=!n&&!u&&!d&&l(e),p=n||u||d||f,h=p?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(462),i=n(463),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(462),i=n(710),o=n(463),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(1107),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(223)(e))},function(e,t,n){var r=n(2273),i=n(2274),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(2275)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(2277),i=n(708),o=n(2278),a=n(2279),s=n(2280),l=n(462),c=n(1108),u=c(r),d=c(i),f=c(o),p=c(a),h=c(s),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||o&&"[object Promise]"!=m(o.resolve())||a&&"[object Set]"!=m(new a)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(359)(n(291),"DataView");e.exports=r},function(e,t,n){var r=n(359)(n(291),"Promise");e.exports=r},function(e,t,n){var r=n(359)(n(291),"Set");e.exports=r},function(e,t,n){var r=n(359)(n(291),"WeakMap");e.exports=r},function(e,t,n){var r=n(2282)(n(2301));e.exports=r},function(e,t,n){var r=n(712),i=n(711),o=n(561);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(2284),i=n(2285),o=n(1115);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(1104),i=n(707),o=1,a=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++l<c;){var f=(d=n[l])[0],p=e[f],h=d[1];if(u&&d[2]){if(void 0===p&&!(f in e))return!1}else{var m=new r;if(s)var g=s(p,h,f,e,t,m);if(!(void 0===g?i(h,p,o|a,s,m):g))return!1}}return!0}},function(e,t,n){var r=n(1114),i=n(561);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(707),i=n(2287),o=n(2294),a=n(713),s=n(1114),l=n(1115),c=n(563),u=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,u|d)}}},function(e,t,n){var r=n(1116);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(2289),i=/^\./,o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=r(function(e){var t=[];return i.test(e)&&t.push(""),e.replace(o,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=s},function(e,t,n){var r=n(2290),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(709),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(2292);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(557),i=n(2293),o=n(292),a=n(562),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(2295),i=n(2296);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(1117),i=n(1110),o=n(292),a=n(1112),s=n(710),l=n(563);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(2299),i=n(2300),o=n(713),a=n(563);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(1116);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(2302),i=n(712),o=n(2303),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(2304);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(2305),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(558),i=n(562),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(2307);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(359),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(2309),i=n(2310),o=n(712),a=n(292);e.exports=function(e,t){return function(n,s){var l=a(n)?r:i,c=t?t():{};return l(n,e,o(s,2),c)}}},function(e,t){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(2311);e.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},function(e,t,n){var r=n(2312),i=n(2315)(r);e.exports=i},function(e,t,n){var r=n(2313),i=n(561);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(2314)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},function(e,t,n){var r=n(711);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.round(Math.sqrt((1-n)*Math.pow(e,2)+n*Math.pow(t,2)))};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Number(((1-n)*e+n*t).toFixed(2))};t.default=r},function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){var e=r(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],4),t=e[0],n=void 0===t?0:t,i=e[1],o=void 0===i?0:i,a=e[2],s=void 0===a?0:a,l=e[3],c=void 0===l?1:l,u=(1<<24|n<<16|o<<8|s).toString(16).slice(1),d=(255*c).toString(16).padStart(2,"0").slice(0,2);return"#".concat(u).concat(d)};t.default=i},function(e,t,n){var r=n(2322);e.exports=r},function(e,t,n){n(2323);var r=n(118);e.exports=r.parseFloat},function(e,t,n){var r=n(70),i=n(2324);r({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(e,t,n){var r=n(144),i=n(672).trim,o=n(526),a=r.parseFloat,s=1/a(o+"-0")!=-1/0;e.exports=s?function(e){var t=i(String(e)),n=a(t);return 0===n&&"-"==t.charAt(0)?-0:n}:a},function(e,t,n){var r=n(2326);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(2328),i=n(544),o=n(545),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(383),i=n(316),o="[object RegExp]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(2330),i=n(714),o=n(2331);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(1118)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+c,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(2333),i=n(714),o=n(2334);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[o+r+"?",r,a,s,n].join("|")+")",d=RegExp(i+"(?="+i+")|"+u+c,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(886),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){
/*!
 * @license
 * chartjs-plugin-datalabels
 * http://chartjs.org/
 * Version: 0.5.0
 *
 * Copyright 2018 Chart.js Contributors
 * Released under the MIT license
 * https://github.com/chartjs/chartjs-plugin-datalabels/blob/master/LICENSE.md
 */
e.exports=function(e){"use strict";var t=(e=e&&e.hasOwnProperty("default")?e.default:e).helpers,n=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),r={toTextLines:function(e){var n,r=[];for(e=[].concat(e);e.length;)"string"==typeof(n=e.pop())?r.unshift.apply(r,n.split("\n")):Array.isArray(n)?e.push.apply(e,n):t.isNullOrUndef(e)||r.unshift(""+n);return r},toFontString:function(e){return!e||t.isNullOrUndef(e.size)||t.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family},textSize:function(e,t,n){var r,i=[].concat(t),o=i.length,a=e.font,s=0;for(e.font=n.string,r=0;r<o;++r)s=Math.max(e.measureText(i[r]).width,s);return e.font=a,{height:o*n.lineHeight,width:s}},parseFont:function(n){var i=e.defaults.global,o=t.valueOrDefault(n.size,i.defaultFontSize),a={family:t.valueOrDefault(n.family,i.defaultFontFamily),lineHeight:t.options.toLineHeight(n.lineHeight,o),size:o,style:t.valueOrDefault(n.style,i.defaultFontStyle),weight:t.valueOrDefault(n.weight,null),string:""};return a.string=r.toFontString(a),a},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n,r,i,o,a=e.slice(),s=[];for(n=0,i=t.length;n<i;++n)o=t[n],-1===(r=a.indexOf(o))?s.push([o,1]):a.splice(r,1);for(n=0,i=a.length;n<i;++n)s.push([a[n],-1]);return s},rasterize:function(e){return Math.round(e*n)/n}};function i(e,t){var n=t.x,r=t.y;if(null===n)return{x:0,y:-1};if(null===r)return{x:1,y:0};var i=e.x-n,o=e.y-r,a=Math.sqrt(i*i+o*o);return{x:a?i/a:0,y:a?o/a:-1}}var o=0,a=1,s=2,l=4,c=8;function u(e,t,n){var r=o;return e<n.left?r|=a:e>n.right&&(r|=s),t<n.top?r|=c:t>n.bottom&&(r|=l),r}function d(e,t){var n,r,i=t.anchor,o=e;return t.clamp&&(o=function(e,t){for(var n,r,i,o=e.x0,d=e.y0,f=e.x1,p=e.y1,h=u(o,d,t),m=u(f,p,t);h|m&&!(h&m);)(n=h||m)&c?(r=o+(f-o)*(t.top-d)/(p-d),i=t.top):n&l?(r=o+(f-o)*(t.bottom-d)/(p-d),i=t.bottom):n&s?(i=d+(p-d)*(t.right-o)/(f-o),r=t.right):n&a&&(i=d+(p-d)*(t.left-o)/(f-o),r=t.left),n===h?h=u(o=r,d=i,t):m=u(f=r,p=i,t);return{x0:o,x1:f,y0:d,y1:p}}(o,t.area)),"start"===i?(n=o.x0,r=o.y0):"end"===i?(n=o.x1,r=o.y1):(n=(o.x0+o.x1)/2,r=(o.y0+o.y1)/2),function(e,t,n,r,i){switch(i){case"center":n=r=0;break;case"bottom":n=0,r=1;break;case"right":n=1,r=0;break;case"left":n=-1,r=0;break;case"top":n=0,r=-1;break;case"start":n=-n,r=-r;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),r=Math.sin(i)}return{x:e,y:t,vx:n,vy:r}}(n,r,e.vx,e.vy,t.align)}var f={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,r=Math.cos(n),i=Math.sin(n),o=e.innerRadius,a=e.outerRadius;return d({x0:e.x+r*o,y0:e.y+i*o,x1:e.x+r*a,y1:e.y+i*a,vx:r,vy:i},t)},point:function(e,t){var n=i(e,t.origin),r=n.x*e.radius,o=n.y*e.radius;return d({x0:e.x-r,y0:e.y-o,x1:e.x+r,y1:e.y+o,vx:n.x,vy:n.y},t)},rect:function(e,t){var n=i(e,t.origin),r=e.x,o=e.y,a=0,s=0;return e.horizontal?(r=Math.min(e.x,e.base),a=Math.abs(e.base-e.x)):(o=Math.min(e.y,e.base),s=Math.abs(e.base-e.y)),d({x0:r,y0:o+s,x1:r+a,y1:o,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=i(e,t.origin);return d({x0:e.x,y0:e.y,x1:e.x,y1:e.y,vx:n.x,vy:n.y},t)}},p=e.helpers,h=r.rasterize;function m(e){var t=e._model.horizontal,n=e._scale||t&&e._xScale||e._yScale;if(!n)return null;if(void 0!==n.xCenter&&void 0!==n.yCenter)return{x:n.xCenter,y:n.yCenter};var r=n.getBasePixel();return t?{x:r,y:null}:{x:null,y:r}}function g(e,t,n){var r=e.shadowBlur,i=n.stroked,o=h(n.x),a=h(n.y),s=h(n.w);i&&e.strokeText(t,o,a,s),n.filled&&(r&&i&&(e.shadowBlur=0),e.fillText(t,o,a,s),r&&i&&(e.shadowBlur=r))}var v=function(e,t,n,r){var i=this;i._config=e,i._index=r,i._model=null,i._rects=null,i._ctx=t,i._el=n};p.extend(v.prototype,{_modelize:function(t,n,i,o){var a,s=this._index,l=p.options.resolve,c=r.parseFont(l([i.font,{}],o,s)),u=l([i.color,e.defaults.global.defaultFontColor],o,s);return{align:l([i.align,"center"],o,s),anchor:l([i.anchor,"center"],o,s),area:o.chart.chartArea,backgroundColor:l([i.backgroundColor,null],o,s),borderColor:l([i.borderColor,null],o,s),borderRadius:l([i.borderRadius,0],o,s),borderWidth:l([i.borderWidth,0],o,s),clamp:l([i.clamp,!1],o,s),clip:l([i.clip,!1],o,s),color:u,display:t,font:c,lines:n,offset:l([i.offset,0],o,s),opacity:l([i.opacity,1],o,s),origin:m(this._el),padding:p.options.toPadding(l([i.padding,0],o,s)),positioner:(a=this._el,a instanceof e.elements.Arc?f.arc:a instanceof e.elements.Point?f.point:a instanceof e.elements.Rectangle?f.rect:f.fallback),rotation:l([i.rotation,0],o,s)*(Math.PI/180),size:r.textSize(this._ctx,n,c),textAlign:l([i.textAlign,"start"],o,s),textShadowBlur:l([i.textShadowBlur,0],o,s),textShadowColor:l([i.textShadowColor,u],o,s),textStrokeColor:l([i.textStrokeColor,u],o,s),textStrokeWidth:l([i.textStrokeWidth,0],o,s)}},update:function(e){var t,n,i,o=this,a=null,s=null,l=o._index,c=o._config,u=p.options.resolve([c.display,!0],e,l);u&&(t=e.dataset.data[l],n=p.valueOrDefault(p.callback(c.formatter,[t,e]),t),(i=p.isNullOrUndef(n)?[]:r.toTextLines(n)).length&&(a=o._modelize(u,i,c,e),s=function(e){var t=e.borderWidth||0,n=e.padding,r=e.size.height,i=e.size.width,o=-i/2,a=-r/2;return{frame:{x:o-n.left-t,y:a-n.top-t,w:i+n.width+2*t,h:r+n.height+2*t},text:{x:o,y:a,w:i,h:r}}}(a))),o._model=a,o._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n,i=e.ctx,o=this._model,a=this._rects;this.visible()&&(i.save(),o.clip&&(n=o.area,i.beginPath(),i.rect(n.left,n.top,n.right-n.left,n.bottom-n.top),i.clip()),i.globalAlpha=r.bound(0,o.opacity,1),i.translate(h(t.x),h(t.y)),i.rotate(o.rotation),function(e,t,n){var r=n.backgroundColor,i=n.borderColor,o=n.borderWidth;(r||i&&o)&&(e.beginPath(),p.canvas.roundedRect(e,h(t.x)+o/2,h(t.y)+o/2,h(t.w)-o,h(t.h)-o,n.borderRadius),e.closePath(),r&&(e.fillStyle=r,e.fill()),i&&o&&(e.strokeStyle=i,e.lineWidth=o,e.lineJoin="miter",e.stroke()))}(i,a.frame,o),function(e,t,n,r){var i,o=r.textAlign,a=r.color,s=!!a,l=r.font,c=t.length,u=r.textStrokeColor,d=r.textStrokeWidth,f=u&&d;if(c&&(s||f))for(n=function(e,t,n){var r=n.lineHeight,i=e.w,o=e.x,a=e.y+r/2;return"center"===t?o+=i/2:"end"!==t&&"right"!==t||(o+=i),{h:r,w:i,x:o,y:a}}(n,o,l),e.font=l.string,e.textAlign=o,e.textBaseline="middle",e.shadowBlur=r.textShadowBlur,e.shadowColor=r.textShadowColor,s&&(e.fillStyle=a),f&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=u),i=0,c=t.length;i<c;++i)g(e,t[i],{stroked:f,filled:s,w:n.w,x:n.x,y:n.y+n.h*i})}(i,o.lines,a.text,o),i.restore())}});var y=e.helpers,b=Number.MIN_SAFE_INTEGER||-9007199254740991,_=Number.MAX_SAFE_INTEGER||9007199254740991;function w(e,t,n){var r=Math.cos(n),i=Math.sin(n),o=t.x,a=t.y;return{x:o+r*(e.x-o)-i*(e.y-a),y:a+i*(e.x-o)+r*(e.y-a)}}function E(e,t){var n,r,i,o,a,s=_,l=b,c=t.origin;for(n=0;n<e.length;++n)r=e[n],i=r.x-c.x,o=r.y-c.y,a=t.vx*i+t.vy*o,s=Math.min(s,a),l=Math.max(l,a);return{min:s,max:l}}function k(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var x=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function S(e,t,n){var r=t.positioner(e,t),i=r.vx,o=r.vy;if(!i&&!o)return{x:r.x,y:r.y};var a=n.w,s=n.h,l=t.rotation,c=Math.abs(a/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),u=Math.abs(a/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(o));return c*=i*d,u*=o*d,c+=t.offset*i,u+=t.offset*o,{x:r.x+c,y:r.y+u}}y.extend(x.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this._rect;return!((e=w(e,this.center(),-this._rotation)).x<t.x-1||e.y<t.y-1||e.x>t.x+t.w+2||e.y>t.y+t.h+2)},intersects:function(e){var t,n,r,i=this._points(),o=e._points(),a=[k(i[0],i[1]),k(i[0],i[3])];for(this._rotation!==e._rotation&&a.push(k(o[0],o[1]),k(o[0],o[3])),t=0;t<a.length;++t)if(n=E(i,a[t]),r=E(o,a[t]),n.max<r.min||r.max<n.min)return!1;return!0},_points:function(){var e=this._rect,t=this._rotation,n=this.center();return[w({x:e.x,y:e.y},n,t),w({x:e.x+e.w,y:e.y},n,t),w({x:e.x+e.w,y:e.y+e.h},n,t),w({x:e.x,y:e.y+e.h},n,t)]}});var T={prepare:function(e){var t,n,r,i,o,a=[];for(t=0,r=e.length;t<r;++t)for(n=0,i=e[t].length;n<i;++n)o=e[t][n],a.push(o),o.$layout={_box:new x,_hidable:!1,_visible:!0,_set:t,_idx:n};return a.sort(function(e,t){var n=e.$layout,r=t.$layout;return n._idx===r._idx?n._set-r._set:r._idx-n._idx}),this.update(a),a},update:function(e){var t,n,r,i,o,a=!1;for(t=0,n=e.length;t<n;++t)r=e[t],i=r.model(),(o=r.$layout)._hidable=i&&"auto"===i.display,o._visible=r.visible(),a|=o._hidable;a&&function(e){var t,n,r,i,o,a;for(t=0,n=e.length;t<n;++t)r=e[t],(i=r.$layout)._visible&&(o=r.geometry(),a=S(r._el._model,r.model(),o),i._box.update(a,o,r.rotation()));!function(e,t){var n,r,i,o;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,r=n-1;r>=0&&i._visible;--r)(o=e[r].$layout)._visible&&i._box.intersects(o._box)&&t(i,o)}(e,function(e,t){var n=e._hidable,r=t._hidable;n&&r||r?t._visible=!1:n&&(e._visible=!1)})}(e)},lookup:function(e,t){var n,r;for(n=e.length-1;n>=0;--n)if((r=e[n].$layout)&&r._visible&&r._box.contains(t))return{dataset:r._set,label:e[n]};return null},draw:function(e,t){var n,r,i,o,a,s;for(n=0,r=t.length;n<r;++n)i=t[n],(o=i.$layout)._visible&&(a=i.geometry(),s=S(i._el._view,i.model(),a),o._box.update(s,a,i.rotation()),i.draw(e,s))}},C=e.helpers,O={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(e){if(C.isNullOrUndef(e))return null;var t,n,r,i=e;if(C.isObject(e))if(C.isNullOrUndef(e.label))if(C.isNullOrUndef(e.r))for(i="",t=Object.keys(e),r=0,n=t.length;r<n;++r)i+=(0!==r?", ":"")+t[r]+": "+e[t[r]];else i=e.r;else i=e.label;return""+i},listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},A=e.helpers,N="$datalabels";function I(e,t,n){var r=t&&t[n.dataset];if(r){var i=n.label,o=i.$context;!0===A.callback(r,[o])&&(e[N]._dirty=!0,i.update(o))}}function M(e,t){var n,r,i=e[N],o=i._listeners;if(o.enter||o.leave){if("mousemove"===t.type)r=T.lookup(i._labels,t);else if("mouseout"!==t.type)return;n=i._hovered,i._hovered=r,function(e,t,n,r){var i,o;(n||r)&&(n?r?n.label!==r.label&&(o=i=!0):o=!0:i=!0,o&&I(e,t.leave,n),i&&I(e,t.enter,r))}(e,o,n,r)}}e.defaults.global.plugins.datalabels=O,e.defaults.global.plugins.datalabels=O;var j={id:"datalabels",beforeInit:function(e){e[N]={_actives:[]}},beforeUpdate:function(e){var t=e[N];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var r,i,o,a=t.index,s=e[N],l=s._datasets[a]=[],c=e.isDatasetVisible(a),u=e.data.datasets[a],d=function(e,t){var n=e.datalabels;return!1===n?null:(!0===n&&(n={}),A.merge({},[t,n]))}(u,n),f=t.meta.data||[],p=f.length,h=e.ctx;for(h.save(),r=0;r<p;++r)i=f[r],c&&i&&!i.hidden&&!i._model.skip?(l.push(o=new v(d,h,i,r)),o.update(o.$context={active:!1,chart:e,dataIndex:r,dataset:u,datasetIndex:a})):o=null,i[N]=o;h.restore(),A.merge(s._listeners,d.listeners||{},{merger:function(e,n,r){n[e]=n[e]||{},n[e][t.index]=r[e],s._listened=!0}})},afterUpdate:function(e,t){e[N]._labels=T.prepare(e[N]._datasets,t)},afterDatasetsDraw:function(e){T.draw(e,e[N]._labels)},beforeEvent:function(e,t){if(e[N]._listened)switch(t.type){case"mousemove":case"mouseout":M(e,t);break;case"click":!function(e,t){var n=e[N],r=n._listeners.click,i=r&&T.lookup(n._labels,t);i&&I(e,r,i)}(e,t)}},afterEvent:function(e){var t,n,i,o,a=e[N],s=a._actives,l=a._actives=e.lastActive||[],c=r.arrayDiff(s,l);for(t=0,n=c.length;t<n;++t)(i=c[t])[1]&&(o=i[0][N])&&(o.$context.active=1===i[1],o.update(o.$context));(a._dirty||c.length)&&(T.update(a._labels),e.animating||e.render()),delete a._dirty}};return e.plugins.register(j),j}(n(363))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r={"./en-au":1120,"./en-au.js":1120,"./en-ca":1121,"./en-ca.js":1121,"./en-gb":1122,"./en-gb.js":1122,"./en-ie":1123,"./en-ie.js":1123,"./en-nz":1124,"./en-nz.js":1124};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=2352},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2358);e.exports=r},function(e,t,n){n(2359);var r=n(118);e.exports=r.Number.isNaN},function(e,t,n){n(70)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(565),i=n(564);e.exports=function e(t,n,o){return function(){for(var a=[],s=0,l=t,c=0;c<n.length||s<arguments.length;){var u;c<n.length&&(!i(n[c])||s>=arguments.length)?u=n[c]:(u=arguments[s],s+=1),a[c]=u,i(u)||(l-=1),c+=1}return l<=0?o.apply(this,a):r(l,e(t,a,o))}}},function(e,t){e.exports=function(e,t){return function(){return t.call(this,e.apply(this,arguments))}}},function(e,t,n){var r=n(716)(n(717));e.exports=r},function(e,t,n){var r=n(290),i=n(293),o=n(718),a=n(2364),s=i(function(e){return!!o(e)||!!e&&("object"===r(e)&&(!a(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});e.exports=s},function(e,t){e.exports=function(e){return"[object String]"===Object.prototype.toString.call(e)}},function(e,t){var n=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();e.exports=function(e){return new n(e)}},function(e,t,n){var r=n(565),i=n(165)(function(e,t){return r(e.length,function(){return e.apply(t,arguments)})});e.exports=i},function(e,t,n){var r=n(1125),i=n(293)(r("tail",n(2368)(1,1/0)));e.exports=i},function(e,t,n){var r=n(30),i=n(1125),o=n(716)(i("slice",function(e,t,n){return r(Array.prototype).call(n,e,t)}));e.exports=o},function(e,t){e.exports=function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}},function(e,t,n){var r=n(165),i=n(1128),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t,n){var r=n(566),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return r("callee",e)}}();e.exports=o},function(e,t,n){var r=n(30),i=n(165),o=n(2373),a=n(715),s=n(2374),l=i(function(e,t){return a(e+1,function(){var n=arguments[e];if(null!=n&&o(n[t]))return n[t].apply(n,r(Array.prototype).call(arguments,0,e));throw new TypeError(s(n)+' does not have a method named "'+t+'"')})});e.exports=l},function(e,t){e.exports=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(293),i=n(2375),o=r(function(e){return i(e,[])});e.exports=o},function(e,t,n){var r=n(290),i=n(30),o=n(2376),a=n(4),s=n(2381),l=n(1127),c=n(2400),u=n(2401),d=n(567),f=n(2402);e.exports=function e(t,n){var p,h=function(r){var i=a(n).call(n,[t]);return s(r,i)?"<Circular>":e(r,i)},m=function(e,t){var n;return l(function(t){return c(t)+": "+h(e[t])},o(n=i(t).call(t)).call(n))};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+l(h,t).join(", ")+"))";case"[object Array]":return"["+a(p=l(h,t)).call(p,m(t,f(function(e){return/^\d+$/.test(e)},d(t)))).join(", ")+"]";case"[object Boolean]":return"object"===r(t)?"new Boolean("+h(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?h(NaN):c(u(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"===r(t)?"new Number("+h(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"===r(t)?"new String("+h(t.valueOf())+")":c(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var g=t.toString();if("[object Object]"!==g)return g}return"{"+m(t,d(t)).join(", ")+"}"}}},function(e,t,n){e.exports=n(2377)},function(e,t,n){var r=n(2378);e.exports=r},function(e,t,n){var r=n(2379),i=Array.prototype;e.exports=function(e){var t=e.sort;return e===i||e instanceof Array&&t===i.sort?r:t}},function(e,t,n){n(2380);var r=n(145);e.exports=r("Array").sort},function(e,t,n){"use strict";var r=n(70),i=n(279),o=n(222),a=n(137),s=n(450),l=[],c=l.sort,u=a(function(){l.sort(void 0)}),d=a(function(){l.sort(null)}),f=s("sort");r({target:"Array",proto:!0,forced:u||!d||!f},{sort:function(e){return void 0===e?c.call(o(this)):c.call(o(this),i(e))}})},function(e,t,n){var r=n(2382);e.exports=function(e,t){return r(t,e,0)>=0}},function(e,t,n){var r=n(290),i=n(256),o=n(2383);e.exports=function(e,t,n){var a,s;if("function"==typeof i(e))switch(r(t)){case"number":if(0===t){for(a=1/t;n<e.length;){if(0===(s=e[n])&&1/s===a)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return i(e).call(e,t,n);case"string":case"boolean":case"function":case"undefined":return i(e).call(e,t,n);case"object":if(null===t)return i(e).call(e,t,n)}for(;n<e.length;){if(o(e[n],t))return n;n+=1}return-1}},function(e,t,n){var r=n(165),i=n(2384),o=r(function(e,t){return i(e,t,[],[])});e.exports=o},function(e,t,n){var r=n(180),i=n(4),o=n(2385),a=n(290),s=n(30),l=n(2390),c=n(2391),u=n(2392),d=n(566),f=n(2393),p=n(567),h=n(2399);function m(e,t,n,r){var i=l(e),o=l(t);function a(e,t){return g(e,t,s(n).call(n),s(r).call(r))}return!c(function(e,t){return!c(a,t,e)},o,i)}function g(e,t,n,s){if(f(e,t))return!0;var l=h(e);if(l!==h(t))return!1;if(null==e||null==t)return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(l){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===u(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(a(e)!==a(t)||!f(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!f(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=n.length-1;c>=0;){if(n[c]===e)return s[c]===t;c-=1}switch(l){case"Map":return e.size===t.size&&m(o(e).call(e),o(t).call(t),i(n).call(n,[e]),i(s).call(s,[t]));case"Set":return e.size===t.size&&m(r(e).call(e),r(t).call(t),i(n).call(n,[e]),i(s).call(s,[t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var v=p(e);if(v.length!==p(t).length)return!1;var y=i(n).call(n,[e]),b=i(s).call(s,[t]);for(c=v.length-1;c>=0;){var _=v[c];if(!d(_,t)||!g(t[_],e[_],y,b))return!1;c-=1}return!0}e.exports=g},function(e,t,n){e.exports=n(2386)},function(e,t,n){var r=n(2387);e.exports=r},function(e,t,n){n(312);var r=n(2388),i=n(283),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};e.exports=function(e){var t=e.entries;return e===o||e instanceof Array&&t===o.entries||a.hasOwnProperty(i(e))?r:t}},function(e,t,n){var r=n(2389);e.exports=r},function(e,t,n){n(443);var r=n(145);e.exports=r("Array").entries},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t){e.exports=function(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}},function(e,t){e.exports=function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}},function(e,t,n){var r=n(2394);e.exports="function"==typeof r?r:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){e.exports=n(2395)},function(e,t,n){var r=n(2396);e.exports=r},function(e,t,n){n(2397);var r=n(118);e.exports=r.Object.is},function(e,t,n){n(70)({target:"Object",stat:!0},{is:n(2398)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(30),i=n(293)(function(e){var t;return null===e?"Null":void 0===e?"Undefined":r(t=Object.prototype.toString.call(e)).call(t,8,-1)});e.exports=i},function(e,t){e.exports=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(e,t,n){var r=n(30),i=function(e){return(e<10?"0":"")+e},o="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){var t;return e.getUTCFullYear()+"-"+i(e.getUTCMonth()+1)+"-"+i(e.getUTCDate())+"T"+i(e.getUTCHours())+":"+i(e.getUTCMinutes())+":"+i(e.getUTCSeconds())+"."+r(t=(e.getUTCMilliseconds()/1e3).toFixed(3)).call(t,2,5)+"Z"};e.exports=o},function(e,t,n){var r=n(2403),i=n(165),o=n(2404),a=i(function(e,t){return o(r(e),t)});e.exports=a},function(e,t){e.exports=function(e){return function(){return!e.apply(this,arguments)}}},function(e,t,n){var r=n(165),i=n(1126),o=n(2405),a=n(2406),s=n(717),l=n(2407),c=n(567),u=r(i(["filter"],l,function(e,t){return a(t)?s(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},c(t)):o(e,t)}));e.exports=u},function(e,t){e.exports=function(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}},function(e,t){e.exports=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(165),i=n(1128),o=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=i.init,e.prototype["@@transducer/result"]=i.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),a=r(function(e,t){return new o(e,t)});e.exports=a},function(e,t,n){},function(e,t,n){
/** @license ISC License (c) copyright 2016 original and current authors */
var r=n(380),i=n(381),o=n(251).type("Pair"),a=n(93),s=n(194),l=n(553);function c(e,t){if(arguments.length<2)throw new TypeError("Pair: Must provide a first and second value");var n=function(){return e},r=function(){return t};return{inspect:function(){return"Pair("+i(e)+","+i(t)+" )"},fst:n,snd:r,toArray:function(){return[e,t]},type:o,merge:function(e){if(!a(e))throw new TypeError("Pair.merge: Binary function required");return e(n(),r())},equals:function(e){return s(c,e)&&e.fst()===n()&&e.snd()===r()},concat:function(e){if(!e||!s(c,e))throw new TypeError("Pair.concat: Pair required");var t=n(),i=r(),o=e.fst(),a=e.snd();if(!l(t)||!l(i))throw new TypeError("Pair.concat: Both Pairs must contain Semigroups of the same type");if(!s(t,o)||!s(i,a))throw new TypeError("Pair.concat: Both Pairs must contain Semigroups of the same type");return c(t.concat(o),i.concat(a))},swap:function(n,r){if(!a(n)||!a(r))throw new TypeError("Pair.swap: Requires both left and right functions");return c(r(t),n(e))},map:function(n){if(!a(n))throw new TypeError("Pair.map: Function required");return c(e,n(t))},bimap:function(n,r){if(!a(n)||!a(r))throw new TypeError("Pair.bimap: Function required for both arguments");return c(n(e),r(t))},ap:function(e){if(!s(c,e))throw new TypeError("Pair.ap: Pair required");var t=r();if(!a(t))throw new TypeError("Pair.ap: Function required for second value");var i=n(),o=e.fst();if(!l(i)||!s(i,o))throw new TypeError("Pair.ap: Semigroups of the same type is required for first values");return c(i.concat(o),t(e.snd()))},chain:function(e){var t=n();if(!a(e))throw new TypeError("Pair.chain: Function required");if(!l(t))throw new TypeError("Pair.chain: Semigroups of the same type required for first values");var i=e(r());if(!s(c,i))throw new TypeError("Pair.chain: Function must return a Pair");var o=i.fst();if(!s(t,o))throw new TypeError("Pair.chain: Semigroups of the same type required for first values");return c(t.concat(o),i.snd())},extend:function(n){if(!a(n))throw new TypeError("Pair.extend: Function required");return c(e,n(c(e,t)))}}}c.type=o,c["@@implements"]=r(["ap","bimap","chain","concat","extend","equals","map"]),e.exports=c},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(286);e.exports=function(e){return!!e&&r("contramap",e)}},function(e,t,n){
/** @license ISC License (c) copyright 2017 original and current authors */
var r=n(286);e.exports=function(e){return!!e&&r("compose",e)}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(2415);e.exports=r},function(e,t,n){var r=n(2416),i=Array.prototype;e.exports=function(e){var t=e.fill;return e===i||e instanceof Array&&t===i.fill?r:t}},function(e,t,n){n(2417);var r=n(145);e.exports=r("Array").fill},function(e,t,n){var r=n(70),i=n(2418),o=n(517);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(222),i=n(649),o=n(221);e.exports=function(e){for(var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(1129),i=n(697),o=n(384);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(2423),i=n(2434),o=n(1133);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(690),i=n(1130),o=1,a=2;e.exports=function(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;for(e=Object(e);l--;){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++l<c;){var f=(d=n[l])[0],p=e[f],h=d[1];if(u&&d[2]){if(void 0===p&&!(f in e))return!1}else{var m=new r;if(s)var g=s(p,h,f,e,t,m);if(!(void 0===g?i(h,p,o|a,s,m):g))return!1}}return!0}},function(e,t,n){var r=n(690),i=n(1131),o=n(2430),a=n(2433),s=n(546),l=n(253),c=n(694),u=n(925),d=1,f="[object Arguments]",p="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,y){var b=l(e),_=l(t),w=b?p:s(e),E=_?p:s(t),k=(w=w==f?h:w)==h,x=(E=E==f?h:E)==h,S=w==E;if(S&&c(e)){if(!c(t))return!1;b=!0,k=!1}if(S&&!k)return y||(y=new r),b||u(e)?i(e,t,n,g,v,y):o(e,t,w,n,g,v,y);if(!(n&d)){var T=k&&m.call(e,"__wrapped__"),C=x&&m.call(t,"__wrapped__");if(T||C){var O=T?e.value():e,A=C?t.value():t;return y||(y=new r),v(O,A,n,g,y)}}return!!S&&(y||(y=new r),a(e,t,n,g,v,y))}},function(e,t,n){var r=n(693),i=n(2426),o=n(2427);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(457),i=n(935),o=n(691),a=n(1131),s=n(2431),l=n(2432),c=1,u=2,d="[object Boolean]",f="[object Date]",p="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,k=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,x,S){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!x(new i(e),new i(t)));case d:case f:case m:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case h:var T=s;case v:var C=r&c;if(T||(T=l),e.size!=t.size&&!C)return!1;var O=S.get(e);if(O)return O==t;r|=u,S.set(e,t);var A=a(T(e),T(t),r,E,x,S);return S.delete(e),A;case b:if(k)return k.call(e)==k.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(933),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var c=n&i,u=r(e),d=u.length;if(d!=r(t).length&&!c)return!1;for(var f=d;f--;){var p=u[f];if(!(c?p in t:o.call(t,p)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var m=!0;l.set(e,t),l.set(t,e);for(var g=c;++f<d;){var v=e[p=u[f]],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(!(void 0===b?v===y||s(v,y,n,a,l):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(m=!1)}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(1132),i=n(384);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(1130),i=n(116),o=n(2436),a=n(704),s=n(1132),l=n(1133),c=n(550),u=1,d=2;e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,u|d)}}},function(e,t,n){var r=n(2437),i=n(2438);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(954),i=n(923),o=n(253),a=n(924),s=n(695),l=n(550);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var f=l(t[c]);if(!(d=null!=e&&n(e,f)))break;e=e[f]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(o(e)||i(e))}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(1118),i=n(2441),o=n(704),a=n(550);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t,n){var r=n(953);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(2443),i=n(1129),o=n(1119),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(0))&&"object"==typeof r&&"default"in r?r.default:r;function o(e){return o.warnAboutHMRDisabled&&(o.warnAboutHMRDisabled=!0,console.error("React-Hot-Loader: misconfiguration detected, using production version in non-production environment."),console.error("React-Hot-Loader: Hot Module Replacement is not enabled.")),i.Children.only(e.children)}o.warnAboutHMRDisabled=!1;var a=function e(){return e.shouldWrapWithAppContainer?function(e){return function(t){return i.createElement(o,null,i.createElement(e,t))}}:function(e){return e}};a.shouldWrapWithAppContainer=!1;t.AppContainer=o,t.hot=a,t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){},t.cold=function(e){return e},t.configureComponent=function(){}},function(e,t,n){"use strict";n.r(t);n(1300),n(1302),n(1303),n(1304),n(1305),n(1306),n(1307),n(1308),n(1309),n(1310),n(1311),n(1312),n(1313),n(1314),n(1315),n(1316),n(1317),n(1318),n(1319),n(1320),n(1321),n(1322),n(1323),n(1324),n(501),n(1325),n(1326),n(1327),n(1328),n(1329),n(1330),n(1331),n(1332),n(1333),n(1334),n(1335),n(1336),n(1337),n(1339),n(1340),n(1341),n(1342),n(1343),n(1344),n(1345),n(1346),n(1347),n(1348),n(1349),n(1350),n(1352),n(1353),n(1354),n(1355),n(1356),n(1357),n(1358),n(1359),n(1360),n(1361),n(1362),n(1363),n(1364),n(1366),n(1367),n(1368),n(1369),n(1370),n(1371),n(1373),n(1375),n(1377),n(1378),n(1379),n(1380),n(1381),n(1382),n(1383),n(1384),n(1385),n(1386),n(1387),n(1388),n(1389),n(1390),n(1391),n(1392),n(1393),n(1394),n(1395),n(1396),n(1398),n(1399),n(1402),n(1403),n(1404),n(1406),n(1407),n(1408),n(1409),n(1410),n(1411),n(1412),n(1413),n(1414),n(1415),n(1416),n(1417),n(1418),n(1419),n(1420),n(1421),n(1422),n(1423),n(1424),n(790),n(1425),n(1426),n(1427),n(1428),n(1429),n(1430),n(1431),n(1432),n(1433),n(1434),n(1435),n(1436),n(1437),n(1438),n(1439),n(1440),n(1441),n(1442),n(1443),n(1444),n(1445),n(1446),n(1447),n(1448),n(1449),n(1450),n(1451),n(1452),n(1453),n(1454),n(1455),n(1456),n(1457),n(1458),n(1459),n(1460),n(1461),n(1462),n(1463),n(1464),n(1465),n(1466),n(1467),n(1468),n(1469),n(1470),n(1471),n(1473),n(1474),n(1475),n(1476),n(1477),n(1478),n(1479),n(1480),n(1481),n(1482),n(1483),n(1484),n(1485),n(1486),n(1487),n(1489),n(1490),n(1491),n(1492),n(1495),n(798),n(799);var r=n(0),i=n.n(r),o=n(103),a=n(201),s=n(261),l=n(154),c=n.n(l),u=n(571),d=n.n(u),f=n(390),p=n(391),h=function(e){return"/"===e.charAt(0)?e:"/"+e},m=function(e){return"/"===e.charAt(0)?e.substr(1):e},g=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},v=function(e,t){return g(e,t)?e.substr(t.length):e},y=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},b=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=function(e,t,n,r){var i=void 0;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=_({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=Object(f.a)(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},E=function(){var e=null,t=[];return{setPrompt:function(t){return c()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):(c()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},k=!("undefined"==typeof window||!window.document||!window.document.createElement),x=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},S=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},T=function(e,t){return t(window.confirm(e))},C=("function"==typeof Symbol&&Symbol.iterator,Object.assign,Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),O={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+m(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:m,decodePath:h},slash:{encodePath:h,decodePath:h}},A=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},N=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d()(k,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?T:r,o=e.hashType,a=void 0===o?"slash":o,s=e.basename?y(h(e.basename)):"",l=O[a],u=l.encodePath,f=l.decodePath,m=function(){var e=f(A());return c()(!s||g(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=v(e,s)),w(e)},_=E(),I=function(e){C($,e),$.length=t.length,_.notifyListeners($.location,$.action)},M=!1,j=null,L=function(){var e,t,n=A(),r=u(n);if(n!==r)N(r);else{var i=m(),o=$.location;if(!M&&(t=i,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&Object(p.a)(e.state,t.state)))return;if(j===b(i))return;j=null,P(i)}},P=function(e){M?(M=!1,I()):_.confirmTransitionTo(e,"POP",i,function(t){t?I({action:"POP",location:e}):D(e)})},D=function(e){var t=$.location,n=U.lastIndexOf(b(t));-1===n&&(n=0);var r=U.lastIndexOf(b(e));-1===r&&(r=0);var i=n-r;i&&(M=!0,q(i))},R=A(),F=u(R);R!==F&&N(F);var B=m(),U=[b(B)],q=function(e){c()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},z=0,H=function(e){1===(z+=e)?x(window,"hashchange",L):0===z&&S(window,"hashchange",L)},W=!1,$={length:t.length,action:"POP",location:B,createHref:function(e){return"#"+u(s+b(e))},push:function(e,t){c()(void 0===t,"Hash history cannot push state; it is ignored");var n=w(e,void 0,void 0,$.location);_.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=b(n),r=u(s+t);if(A()!==r){j=t,function(e){window.location.hash=e}(r);var i=U.lastIndexOf(b($.location)),o=U.slice(0,-1===i?0:i+1);o.push(t),U=o,I({action:"PUSH",location:n})}else c()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),I()}})},replace:function(e,t){c()(void 0===t,"Hash history cannot replace state; it is ignored");var n=w(e,void 0,void 0,$.location);_.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=b(n),r=u(s+t);A()!==r&&(j=t,N(r));var i=U.indexOf(b($.location));-1!==i&&(U[i]=t),I({action:"REPLACE",location:n})}})},go:q,goBack:function(){return q(-1)},goForward:function(){return q(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=_.setPrompt(e);return W||(H(1),W=!0),function(){return W&&(W=!1,H(-1)),t()}},listen:function(e){var t=_.appendListener(e);return H(1),function(){H(-1),t()}}};return $},M=("function"==typeof Symbol&&Symbol.iterator,Object.assign,n(1506),n(81)),j=n(50),L=n(37),P=n.n(L),D=n(3),R=n.n(D),F=n(10),B=n(7),U=n(11),q=n(9),z=n(13),H=n(12),W=n(1293),$=n(1294),Y=n(84),V=n(257),K=n.n(V),G=n(1149),X=n.n(G),Q=n(489),Z=n(1152),J=n(1),ee=n.n(J),te=n(1153),ne=n.n(te),re=n(18),ie=n.n(re),oe=n(6),ae=n.n(oe),se=n(33),le=n.n(se),ce=n(392),ue=n.n(ce),de=n(86),fe=n.n(de)()(ue()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),ie()("#FFF")),pe=le()({color:fe}),he=ae()(function(e){var t=e.bodyTypeface,n=e.color,r=e.headingTypeface,o=e.uiTypeface;return i.a.createElement("div",{dangerouslySetInnerHTML:{__html:ne()({bodyTypeface:t,color:n,headingTypeface:r,uiTypeface:o})}})},pe);he.displayName="Branding",he.propTypes={bodyTypeface:ee.a.string,color:ee.a.string.isRequired,headingTypeface:ee.a.string,uiTypeface:ee.a.string};var me,ge=he,ve=n(1154),ye=n(80),be=n(66),_e=(n(1795),n(139)),we=n.n(_e),Ee=n(44),ke=n.n(Ee),xe=n(14),Se=n.n(xe),Te=n(76),Ce=n.n(Te),Oe=n(331),Ae=function(){return window.location.reload(!0)},Ne=function(){return i.a.createElement("div",{className:"curtain__container"},i.a.createElement("div",{className:"curtain"},i.a.createElement("div",{className:"curtain__spinner"}),i.a.createElement("div",{className:"curtain__text"},"Your course is loading.")))},Ie=function(){return i.a.createElement("div",{className:"curtain__container"},i.a.createElement("div",{className:"curtain"},i.a.createElement("div",{className:"curtain__title"},"Something went wrong."),i.a.createElement("div",{className:"curtain__description"},"Click to refresh and try again."),i.a.createElement(Oe.a,{headerDone:!0,onClick:Ae},"Refresh")))},Me=function(){return i.a.createElement("div",{className:"curtain__container"},i.a.createElement("div",{className:"curtain"},i.a.createElement("div",{className:"curtain__spinner curtain__spinner--reconnect"}),i.a.createElement("div",{className:"curtain__title"},"Your computer is offline."),i.a.createElement("div",{className:"curtain__description"},"Attempting to reconnect…")))},je=function(){return i.a.createElement("div",{className:"curtain__container"},i.a.createElement("div",{className:"curtain"},i.a.createElement("div",{className:"curtain__title"},"Your session has timed out."),i.a.createElement("div",{className:"curtain__description"},"Click refresh to restart your session."),i.a.createElement(Oe.a,{headerDone:!0,onClick:Ae},"Refresh")))},Le=Object(r.memo)(function(e){var t=e.status,n=Object(r.useState)(!1),i=Object(be.a)(n,2),o=i[0],a=i[1],s=function(){return a(!0)},l=Se()("status","error"),c=Se()("status","fatalError"),u=we()(l,Se()("reconnectFailed",!0));return Object(r.useEffect)(function(){return me=P()(s,1e4),function(){clearTimeout(me)}},[]),ke()([[c,Ie],[u,je],[l,Me],[Ce.a,Ne]])({status:t,reconnectFailed:o})}),Pe=n(2),De=n.n(Pe),Re=n(209),Fe=De()({bigHeadMode:Object(Re.a)("bigHeadMode")}),Be=n(301),Ue=n(732),qe=n(326),ze=n(262),He=n(198),We=n(1290),$e=n(157),Ye=n(761),Ve=n(266),Ke=n(1292),Ge=n(22),Xe=n(260),Qe=n(88),Ze=function(e){function t(e){var n,r,i,o;return Object(F.a)(this,t),(o=Object(U.a)(this,Object(q.a)(t).call(this,e))).state={previewType:"",failAttempt:!1,notFound:!1,showPasswordDialog:!0},o.onSharePasswordSubmit=R()(n=o.onSharePasswordSubmit).call(n,Object(z.a)(o)),o.onFavoriteAdded=R()(r=o.onFavoriteAdded).call(r,Object(z.a)(o)),o.onFavoriteRemoved=R()(i=o.onFavoriteRemoved).call(i,Object(z.a)(o)),o}return Object(H.a)(t,e),Object(B.a)(t,[{key:"componentWillMount",value:function(){var e;ye.a.isIe11&&document.documentElement.classList.add("ie11"),ye.a.isSafari9&&document.documentElement.classList.add("safari9"),ye.a.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),ye.a.isSafari&&"iframe"===this.props.match.params.mode&&X.a.enable(),window.addEventListener("message",R()(e=this.handleMessages).call(e,this)),Object(Ge.k)()}},{key:"componentDidMount",value:function(){this.startRedux()}},{key:"updateConnectionStatus",value:function(e){Object(j.a)(Object(Ve.b)(e))}},{key:"componentDidUpdate",value:function(e,t){var n=this.state.languageCode;!t.languageCode&&n&&(document.documentElement.lang=n)}},{key:"startRedux",value:function(){var e=this;this.unsubscribe=j.b.subscribe(function(){var t=j.b.getState(),n=t.course,r=t.courseLabels,i=t.courseProgress,o=t.search,a=t.sessionPreferences,s=t.status,l=s.courseLoaded,c=s.fontsLoaded,u=s.coverLoaded,d=s.notFound;d&&e.setState({notFound:d}),l&&!u&&e.preloadCover(),l&&c&&e.setState({course:n,courseProgress:i,labels:r.labels,languageCode:r.iso639Code,lessons:n.lessons,search:o,sessionPreferences:a})});Object(j.a)([Object(ze.c)(),Object(He.b)()]),Object($e.h)("favoriteAdded",this.onFavoriteAdded),Object($e.h)("favoriteRemoved",this.onFavoriteRemoved)}},{key:"componentWillUnmount",value:function(){var e;this.unsubscribe(),window.removeEventListener("message",R()(e=this.handleMessages).call(e,this)),Object($e.g)("favoriteAdded",this.onFavoriteAdded),Object($e.g)("favoriteRemoved",this.onFavoriteRemoved)}},{key:"handleMessages",value:function(e){var t=e.data,n=t.type,r=t.data;"preview:update"===n&&this.setState({previewType:r})}},{key:"onSharePasswordSubmit",value:function(e){var t=this;return Object(M.q)(e.value).then(function(n){n.isValid?t.setState({showPasswordDialog:!1}):(e.value="",t.setState({failAttempt:!0}))}).catch(function(e){return console.error("Verify password error",e)})}},{key:"onFavoriteAdded",value:function(){Object(j.a)(Object(Be.d)())}},{key:"onFavoriteRemoved",value:function(){Object(j.a)(Object(Be.e)())}},{key:"renderAppLayout",value:function(){var e=this.state,t=e.course,n=e.courseProgress,r=e.labels,o=e.lessons,a=e.previewType,s=e.search,l=e.sessionPreferences,c=this.props.location;if(!t)return null;var u=t.color,d=t.bodyTypeface,f=t.headingTypeface,p=t.uiTypeface,h=c.pathname.split("/")[1],m={key:c.pathname.split("/")[1],course:t,courseProgress:n,labels:r,lessons:o,location:c,previewType:a,search:s,sessionPreferences:l},g={bodyTypeface:d,color:u,headingTypeface:f,uiTypeface:p};return i.a.createElement(K.a,{title:Object(Xe.a)(t.title)},i.a.createElement("div",{id:"innerApp",className:Fe},i.a.createElement(ge,g),i.a.createElement(ve.a,{env:"runtime"},i.a.createElement(Y.TransitionGroup,{component:"div",className:"transition-group"},i.a.createElement(qe.a,{key:h},i.a.createElement(Z.a,{location:c},i.a.createElement(Q.a,{exact:!0,path:"/",component:Ye.a,childProps:m}),i.a.createElement(Q.a,{exact:!0,path:"/:mode",component:Ye.a,childProps:m}),i.a.createElement(Q.a,{exact:!0,path:"/lessons/:id",component:Ue.a,childProps:m}),i.a.createElement(Q.a,{path:"/lessons/:id/:mode",component:Ue.a,childProps:m})))))))}},{key:"coverImageSuccess",value:function(){Object(j.a)(Object(Ve.d)(!0))}},{key:"preloadCover",value:function(){var e=this,t=j.b.getState().course.coverImage.media,n=(void 0===t?{}:t).image,r=void 0===n?{}:n,i=r.key,o=r.src;if(i||o){var a=i?Object(Qe.a)(r):o,s=P()(this.coverImageSuccess,5e3),l=new Image;l.src=a,l.onload=function(){clearTimeout(s),e.coverImageSuccess()}}else this.coverImageSuccess()}},{key:"render",value:function(){var e=this.state,t=e.failAttempt,n=e.notFound,r=e.showPasswordDialog,o=j.b.getState(),a=o.status,s=a.courseLoaded,l=a.fontsLoaded,c=a.coverLoaded,u=o.course.hasPassword,d=r&&Object(M.i)()&&(!!u||Object(M.h)()),f=this.onSharePasswordSubmit,p=!(s&&l&&c);return n?i.a.createElement(We.a,null):p?i.a.createElement(Le,{status:status}):d?i.a.createElement(Ke.a,{failAttempt:t,onSubmit:f}):this.renderAppLayout()}}]),t}(r.Component);Object(W.setConfig)({ignoreSFC:!0,pureRender:!0});var Je=Object($.hot)(Ze),et=I();Object(M.j)(et),Object(o.render)(i.a.createElement(s.a,{store:j.b},i.a.createElement(a.b,{history:et},i.a.createElement(a.a,{path:"/",component:Je}))),document.getElementById("app"))}]);